maven-dependency-plugin generates duplicate files in jar-with-dependencies.jar file

i am creating a standalone java application with maven, and i am including the dependencies in the jar file with **maven-dependecy-plugin** as follows: org.apache.maven.plugins maven-dependency-plugin copy-dependencies prepare-package copy-dependencies ${project.build.directory}/classes/lib false false true org.apache.maven.plugins maven-jar-plugin true lib/ theMainClass org.apache.maven.plugins maven-assembly-plugin create-my-bundle package single jar-with-dependencies this includes the dependencies in the generated jar file in a lib folder, and the jar runs and works fine, but the issue is in the other generated jar file `appname-1.0-jar-with-dependencies.jar`. **ISSUE:** i am not sure if it's an issue or not, but i noticed in target folder in the generated `appname-1.0-jar-with-dependencies.jar`, that it contains duplicate application files like: 1. all sql,property files,xml files exists twice. 2. all java classes .class file exists twice. 3. there are lots of overview.html and license.txt files related to the dependencies. i am not sure if that's feels right or not, also i need someone to clarify for me what is the importance of this generated jar file, since i am not familiar with this plugin. please advise, thanks.

以上就是maven-dependency-plugin generates duplicate files in jar-with-dependencies.jar file的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏