0
我試圖使用Maven JarJar插件,但我遇到了問題。 我想要做的是將傑克遜圖書館作爲我的「隨心所欲」的一部分。使用Maven-JarJar插件
由於我找不到幫助,我正在嘗試猜測配置。你能看看,告訴我我做錯了什麼嗎?
這是配置:
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>jarjar-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jarjar</goal>
</goals>
<configuration>
<includes>
<include>com.fasterxml.jackson.core:jackson-core</include>
<include>com.fasterxml.jackson.core:jackson-databind</include>
<include>com.fasterxml.jackson.core:jackson-annotations</include>
</includes>
<rules>
<rule>
<pattern>com.fasterxml.jackson.**</pattern>
<result>${my.package.prefix}[email protected]</result>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
當我編譯,我得到以下信息:
Cleaning up unclosed ZipFile for archive C:\Work\Projects\XXXX\target\xxxx-1.0.0-SNAPSHOT.jar[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single (assemble-all) on project xxxx: Failed to create assembly: Error creating assembly archive jar-with-dependencies: Problem creating jar: jar:file:/C:/Work/Projects/XXXX/target/xxxx-1.0.0-SNAPSHOT.jar!/META-INF/aop.xml: JAR entry META-INF/aop.xml not found in C:\Work\Projects\XXXX\target\xxxx-1.0.0-SNAPSHOT.jar -> [Help 1]
我會感謝你的幫助!