Maven: excluding java files in compilation

前端 未结 5 999
甜味超标
甜味超标 2020-12-01 00:41

I have a folder of java sources which I wish to exclude from the compilation.

My folder is under qa/apitests/src/main/java/api/test/omi.

I added

5条回答
  •  余生分开走
    2020-12-01 01:28

    Use the Maven Compiler Plugin.

    
      org.apache.maven.plugins
      maven-compiler-plugin
      
        
          **/api/test/omi/*.java
        
      
    
    

提交回复
热议问题