Posts

Showing posts with the label Aspectj

AspectJ Maven Plugin Cannot Compile My Project

Image
Answer : It seems like a known issue http://jira.codehaus.org/browse/MASPECTJ-125 You can fix it by adding the following to your pom file. <complianceLevel>1.6</complianceLevel> Update: While the things I said about AspectJ Maven configuration in this answer are all correct, the root cause of the concrete problem at hand - bad Maven dependency management - is described in my other answer. It would be better if that one was the accepted answer and not this one. User codelion's hint makes sense, please change your <compilationLevel> tag (typo?) - to <complianceLevel> . There is no need to downgrade to plugin version 1.6, you can keep 1.7. There is also no need to specify the configuration again within the <execution> section, the one at plugin level is enough. Please note that the default AspectJ version in plugin 1.7 is 1.8.2, so maybe your runtime dependency on 1.7.4 works, but if I were you I would upgrade that one too, optimally in...