我刚试过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>
由于
和Fabrice
答案 0 :(得分:4)
好吧最后我在Wayne的answer
的帮助下成功关闭了jar压缩和此链接:http://maven.apache.org/plugins/maven-shade-plugin/examples/use-shader-other-impl.html