i can't solve maven building error failure

后端 未结 6 1083
粉色の甜心
粉色の甜心 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:05

    And mine has a different solution. I had a POM that had a entry for the jar without any , and it had a entry for the jar with a . Plus, the parent POM had a entry with the same . Apparently this confused Maven (3.3). The build worked fine, but the packaging did not.

    Fix: remove entry in the child POM, and remove the from the entry in the child POM.

    In code, here is the broken situation:

    Parent pom.xml:
    
        
            
                org.apache.httpcomponents
                httpclient
                ${httpclient.version}
            
        
    
    
    Child pom.xml:
    
        
            
                org.apache.httpcomponents
                httpclient
            
        
    
    ...
    
        
            org.apache.httpcomponents
            httpclient
            ${httpclient.version}
        
    
    

    Post fix: parent POM is the same, child pom has just this

    
        
            org.apache.httpcomponents
            httpclient
        
    
    

提交回复
热议问题