maven项目打包时生成dependency-reduced-pom.xml
2017-05-15 09:43
615 查看
http://www.cnblogs.com/acm-bingzi/p/6693199.html
********************************************************
今天给maven项目打jar包,发现在pom.xml文件的同路径下,突然生出了一个dependency-reduced-pom.xml,也不知道这个文件是干什么的,看着别扭就想着删除了它。
后来知道是我在pom.xml中,使用了maven-shade-plugin插件打jar包,才导致了它的出现。添加上以下代码可以避免生成此文件:
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
如下:
把每一件简单的事情做好,就是不简单;把每一件平凡的事情做好,就是不平凡!相信自己,创造奇迹~~
********************************************************
今天给maven项目打jar包,发现在pom.xml文件的同路径下,突然生出了一个dependency-reduced-pom.xml,也不知道这个文件是干什么的,看着别扭就想着删除了它。
后来知道是我在pom.xml中,使用了maven-shade-plugin插件打jar包,才导致了它的出现。添加上以下代码可以避免生成此文件:
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
如下:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.4.3</version> <configuration> <createDependencyReducedPom>false</createDependencyReducedPom> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>Main</mainClass> </transformer> </transformers> </configuration> </execution> </executions> </plugin>
把每一件简单的事情做好,就是不简单;把每一件平凡的事情做好,就是不平凡!相信自己,创造奇迹~~
相关文章推荐
- maven项目打包时生成dependency-reduced-pom.xml
- 搭建Nexus Repository 3.6.0-02和配置apache-maven-3.5.2和本地的local Repository以及项目的pom.xml(IDEA 打包等)
- 通过Jar包生成Maven POM.xml的dependency
- maven之 web项目改造-根据jar包 生成pom.xml
- 根据已有项目jar文件生成maven的pom.xml
- 根据已有项目下lib包里jar文件生成maven的pom.xml 里面所有依赖
- 使用assembly将maven项目pom.xml中的jar包打包
- maven项目打包时去除dependency-reduced-pom.xml文件
- maven项目找不到pom.xml配置的dependency jar中的类问题解决方法
- 通过Jar包生成Maven POM.xml的dependency
- 使用assembly将maven项目pom.xml中的jar包打包
- 使用assembly将maven项目pom.xml中的jar包打包
- maven中打包项目为war包的pom.xml配置
- Maven将本地jar包生成pom文件,在项目中引用打包到本地仓库。
- 使用assembly将maven项目pom.xml中的jar包打包
- Maven将本地jar包生成pom文件,在项目中引用打包到本地仓库。
- maven项目pom.xml配置json包
- Maven 项目不打包 *.hbm.xml 映射文件
- maven项目中自动下载jar包的pom.xml配置
- maven项目pom.xml报错: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from