The problem is as follows:
[ERROR] Failed to execute goal org.springframework. Boot : Spring-boot-maven-plugin:1.3.5.release: Repackage on project information: Execution default of goal org.springframework. Boot : Spring-boot-maven-plugin:1.3.5.release: Repackagefind a single main class from The following candidates [Com.hhly.InformationApplication, Com.hhly.test.Application]--[help 1]
Workaround:
This error is due to the fact that MAVEN looks for the main method in the project when it executes the package and sets the boot entry for the spring boot build jar package, but there are multiple main methods that the MAVEN plugin cannot confirm. Therefore, this exception occurs.
1. Comment out other useless main methods to resolve this problem.
2. Specify the entry on the command:
-dstart-class=Com.jsoft.MainClass
Reference:
Http://www.cnblogs.com/xingzc/p/5972488.html
http://blog.csdn.net/yuechang5/article/details/52489911
1190000007462351
Maven appears when packaging spring boot with the package: unable-Find a single main class from the following candidates problem solving