我刚刚尝试了Shade插件,但是生成的jar总是被压缩的。
如何关闭jar压缩?
这里是pom:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<compress>false</compress>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>谢谢
法布里斯
发布于 2012-06-25 15:38:35
最后,在韦恩的answer的帮助下,我设法关闭了jar压缩
这个链接是:http://maven.apache.org/plugins/maven-shade-plugin/examples/use-shader-other-impl.html
https://stackoverflow.com/questions/11125628
复制相似问题