Maven: excluding java files in compilation

前端 未结 5 982
甜味超标
甜味超标 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:20

    Adding an exclude as the other answers suggested worked for me, except the path shouldn't include "src/main/java":

    
      
        
          org.apache.maven.plugins
          maven-compiler-plugin
          
            
              com/filosync/store/StoreMain.java
            
          
        
      
    
    

提交回复
热议问题