jarjar

Relocating fastxml.jackson classes to my.package.fastxml.jackson

女生的网名这么多〃 提交于 2019-12-02 08:46:15
问题 I'm trying to relocate the packages from "com.fasterxml.jackson" into my own package (ie, "mypackage.com.fasterxml.jackson") and then consume it in another JAR which I own. I've managed to run the maven-shade plugin to do it using this configuration: <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <shadedArtifactAttached>false<

Android: error including/repacking dependencies which reference javax core classes

梦想的初衷 提交于 2019-11-29 03:41:29
I'm working on an Android app using Maven as the build tool. I managed to set evertyhing up correctly (maven dependencies are exported to the apk etc.), however I have one remaining problem which is driving me crazy. I want to include a dependency on simpleframework's xml parser defined as follows in my POM file: <dependency> <groupId>org.simpleframework</groupId> <artifactId>simple-xml</artifactId> <version>2.5.3</version> </dependency> When I issue mvn install on the project, I get the following error (truncated): trouble processing "javax/xml/namespace/NameSpaceContext.class" ... I know the