1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > idea中maven项目打包并输出到指定目录下

idea中maven项目打包并输出到指定目录下

时间:2018-11-02 22:20:06

相关推荐

idea中maven项目打包并输出到指定目录下

maven的pom.xml增加如下构建内容

<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>2.4</version><configuration><!-- 指定打包的jar包输出路径 --><outputDirectory>C:\MentorGraphics\CHS\plugins\zk20s-docgen</outputDirectory><!--不打入jar包的文件类型或者路径 --><!--<excludes>--><!-- <exclude>**/*.properties</exclude>--><!-- <exclude>**/*.xml</exclude>--><!-- <exclude>**/*.yml</exclude>--><!-- <exclude>static/**</exclude>--><!-- <exclude>templates/**</exclude>--><!--</excludes>--></configuration></plugin></plugins></build>

然后执行生命周期里的package:双击package

查看输出结果

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。