i can't solve maven building error failure

后端 未结 6 1112
粉色の甜心
粉色の甜心 2021-01-11 10:46

I get a error when I use maven to build my project.so please help! thank you for your help

Failed to execute goal org.apache.maven.plugins:maven-ass

6条回答
  •  长发绾君心
    2021-01-11 11:06

    recently I stuck with the same problem. I turns that assembly-plugin doesn't propagate/report errors with dependencies:

    [DEBUG] Resolving project dependencies transitively.
    [DEBUG] com.g.....0.4-SNAPSHOT (selected for null)
    [DEBUG]           org.springframework:spring-expression:jar:3.1.4.RELEASE:compile (selected for compile)
    [DEBUG]           org.springframework:spring-asm:jar:3.1.4.RELEASE:compile (selected for compile)
    [DEBUG]         trove:trove:jar:1.0.2:compile (selected for compile)
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    ....
    [INFO] p.....mo ....................................... FAILURE [57.144s]
    [INFO] BUILD FAILURE
    
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.4:single (full) on project p...o: Execution full of goal org.apache.maven.plugins:maven-assembly-plugin:2.5.4:single failed: For artifact {null:null:null:jar}: The groupId cannot be empty. -> [Help 1]
    

    that's all what I've got from assembly-plugin. eg. compiler warns about the broken stuff:

    [WARNING] error reading /var/lib/jenkins/...org/hyperic/sigar/1.6.3.82/sigar-1.6.3.82.jar; error in opening zip file
    [WARNING] error reading /var/lib/jenkins/.../org/hyperic/sigar/1.6.3.82/sigar-1.6.3.82.jar; error in opening zip file
    

    Thus, if you've been stuck in this trouble, invoke mvn dependency:tree to troubleshoot the dependency.

提交回复
热议问题