Maven: compile aspectj project containing Java 1.6 source

前端 未结 4 447
名媛妹妹
名媛妹妹 2020-12-05 03:08

Primary Question

What I want to do is fairly easy. Or so you would think. However, nothing is working properly.

Requirement: Using maven

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 03:54

    How about telling maven-compiler-plugin to skip all *.java files and let aspectj-maven-plugin do the job ?

    ...
    
      
        
          maven-compiler-plugin
          2.0.2
          
            
              **/*.java
            
          
        
        
          org.codehaus.mojo
          aspectj-maven-plugin
          1.3
          
            1.6
            1.6
            utf-8
            1.6
          
          
            
              
                compile       
                test-compile  
              
            
           
        
      
    
    

提交回复
热议问题