Spring Boot Package Error

Source: Internet
Author: User
Tags stack trace

[ERROR] Failed to execute goalOrg.springframework.boot:spring-boot-maven-plugin:1.3.0.release:repackage (default ) on Project device-factory-serviceexecution default of Goal Org.springframework.boot:spring-boot-maven-plugin:1.3.0.release: Repackage Failed:duplicate Library So.dian.dev-device-factory.jar -> [help 1] [ERROR] [ERROR] to see the full stack trace of the errors, re-run Maven with the- e switch. [ERROR] re-run Maven using the -x switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals>-rf:d evice-factory-service In the execution of MVN Clean Package Command packaging, throw the above exception, from the error message, it is said Device-factory.jar repeated, I looked for a long time do not know how to repeat the package, in the Internet have seen that is the plugin conflict, I inherit theSpring-boot-starter-parent Packages andspring-boot-Maven-plugin plug-in, Because the parent already has the spring-boot-maven-plugin plugin, so error, I press this will spring-boot-maven-plugin Delete can be packaged, but the dependencies between the projects have not been hit. At last I saw it with a big guy, and I pom.xml defined it in the Father's project. <build>     < finalname>device-factory </finalname > </build> Since all the sub-projects inherit the parent's Pom, other self-engineering packages are also called Device-factory.jar, so the report repeats. After the parent project in the Finalname Delete, sure enough package, after decompression of the dependencies of the project also in. I have defined finalname in my web engineering pom, which is my entry project, which only needs to be Device-factory.jar when it is released.

Spring Boot Package Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.