Maven: compile aspectj project containing Java 1.6 source

前端 未结 4 439
名媛妹妹
名媛妹妹 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:39

    Version 1.3 of the AspectJ plugin deliberately changed the default phase of its compile goal from "process-sources" to "compile". To restore the previous behaviour of running ajc before javac, you just need to add a "phase" tag to the relevant "execution" tag, like this:

    
        process-sources 
        
            compile
            test-compile
        
    
    

提交回复
热议问题