美文网首页
项目启动问题

项目启动问题

作者: jianshuqiang | 来源:发表于2019-06-23 17:43 被阅读0次

    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>
    

    相关文章

      网友评论

          本文标题:项目启动问题

          本文链接:https://www.haomeiwen.com/subject/eatwqctx.html