问题描述
Spring Boot项目中,父工程未指定打包方式:
[INFO] Scanning for projects…
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Invalid packaging for parent POM com.simon:my-spring-cloud2:0.0.1-SNAPSHOT (D:\DataValue\my-spring-cloud2\pom.xml), must be “pom” but is “jar” @ com.xxx:my-spring-cloud2:0.0.1-SNAPSHOT, D:\DataValue\my-spring-cloud2\pom.xml
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.simon:provider:0.0.1-SNAPSHOT (D:\DataValue\my-spring-cloud2\provider\pom.xml) has 1 error
[ERROR] Invalid packaging for parent POM com.simon:my-spring-cloud2:0.0.1-SNAPSHOT (D:\DataValue\my-spring-cloud2\pom.xml), must be “pom” but is “jar” @ com.xxx:my-spring-cloud2:0.0.1-SNAPSHOT, D:\DataValue\my-spring-cloud2\pom.xml
[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/ProjectBuildingException
解决方案
将打包方式设为pom