Unable to solve “Plugin execution” for Spring Data Maven Builds?

Home / Uncategorized / Unable to solve “Plugin execution” for Spring Data Maven Builds?

Question:
working with Spring Data and Neo4j. Trying to follow this guide linked to by the main site. In particular I based my pom.xml off of the Hello, World! Here is my POM.XML code




compile
test-compile





org.aspectj
aspectjrt
${aspectj.version}


org.aspectj
aspectjtools
${aspectj.version}


the error i am seeing is
Multiple annotations found at this line:- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (execution: default, phase: process-classes)


Answer:
you need to use lifecycle-mapping plugin into your pom.xml, you can find it below: org.eclipse.m2e
lifecycle-mapping
1.0.0
org.codehaus.mojo
aspectj-maven-plugin
[1.0,)

test-compile
compile


Read more

Leave a Reply

Your email address will not be published. Required fields are marked *