How do I disable the maven-compiler-plugin?

前端 未结 4 2032
南笙
南笙 2021-01-03 20:53

I have a maven project that uses the aspectj-compiler-plugin. I use intertype declarations so there are references to Aspect code in my Java code. Because of this, the mav

4条回答
  •  甜味超标
    2021-01-03 21:19

    Either configure the skipMain parameter:

    
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                
                    true
                
            
        
    
    

    Or pass the maven.main.skip property:

    mvn install -Dmaven.main.skip=true
    

提交回复
热议问题