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:
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前端其它相关文章！