1、子父项目问题
Invalid packaging for parent POM
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.company.info.auth:company-info-auth:0.0.1-SNAPSHOT (D:\about_java\java_pro\company-info-man-sysy\company-info-auth\pom.xml) has 1 error
[ERROR] Invalid packaging for parent POM com.company.info:company-info-man-sysy:1.0-SNAPSHOT (D:\about_java\java_pro\company-info-man-sysy\pom.xml), must be "pom" but is "jar" @ com.company.info:company-info-man-sysy:1.0-SNAPSHOT, D:\about_java\java_pro\company-info-man-sysy\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:
解决方法:父项目应该为pom
<modelVersion>4.0.0</modelVersion>
<groupId>com.company.info</groupId>
<artifactId>company-info-man-sysy</artifactId>
<!--子父项目 府项目-->
<packaging> pom </packaging>
<version>1.0-SNAPSHOT</version>
网友评论