[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