试试这个,它让你的项目编译和运行干净(我测试过):
4.0.0
de.scrum-master.stackoverflow
aspectj-introduce-method
1.0-SNAPSHOT
UTF-8
1.8
1.8.10
org.apache.maven.plugins
maven-compiler-plugin
3.6.0
${java.source-target.version}
false
org.codehaus.mojo
aspectj-maven-plugin
1.9
${java.source-target.version}
ignore
${java.source-target.version}
${project.build.sourceEncoding}
process-sources
compile
test-compile
org.aspectj
aspectjtools
${aspectj.version}
org.aspectj
aspectjrt
${aspectj.version}
runtime