<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.4</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>com.eku.prediagnosis.forum.app.StartForum</mainClass> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>META-INF/spring.handlers</resource> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>META-INF/spring.schemas</resource> </transformer> </transformers> </configuration> </execution> </executions> </plugin> </plugins> </build>
相关推荐
maven打包,指定入口类的jar包,具体的pom配置为:<plugin> <groupId>org.apache.maven.plugins <artifactId>maven-shade-plugin <version>3.1.0 <phase>package <goal>shade implementation=...
java运行依赖jar包
java运行依赖jar包
java运行依赖jar包
"Maven-shade-plugin"是Maven生态系统中的一个强大插件,它的主要作用是将所有依赖及其相关的资源打包成一个单一的可执行jar,这个过程被称为"fat jar"或"uber jar"。这个过程不仅可以解决jar包冲突,还可以通过...
java运行依赖jar包
maven-shade-plugin-1.0.1.jar
java运行依赖jar包
maven-shade-plugin-1.3.jar
maven-shade-plugin-1.3.3.jar
maven-shade-plugin-1.3.2.jar
maven-shade-plugin-1.3.1.jar
maven-shade-plugin-1.2.jar
maven-shade-plugin-1.2.2.jar
maven-shade-plugin-1.2.1.jar
maven-shade-plugin-1.1.jar
maven-shade-plugin-1.0.jar
Maven更新问题 今天Maven在更新的时候发现一直更新不成功,总结下解决方法。 在apache-maven-3.5.2/conf/setting.xml中加入以下配置即可解决 alimaven aliyun maven ...
maven-license-plugin-1.5.1.jar