Maven: The packaging for this project did not assign a file to the build artifact

前端 未结 8 1590
误落风尘
误落风尘 2020-11-30 18:25

I\'m using Maven 3.0.3 on Mac 10.6.6. I have a JAR project and when I run the command \"mvn clean install:install\", I\'m getting the error,

[ERROR] Failed         


        
8条回答
  •  猫巷女王i
    2020-11-30 18:48

    I have same issue. Error message for me is not complete. But in my case, I've added generation jar with sources. By placing this code in pom.xml:

     
        
            
                
                    maven-source-plugin
                    2.1.2
                    
                        
                            deploy
                            
                                jar
                            
                        
                    
                
            
        
    
    

    So in deploy phase I execute source:jar goal which produces jar with sources. And deploy ends with BUILD SUCCESS

提交回复
热议问题