Eclipse: Aspectj Maven plugin execution not covered by lifecycle

7 06 2014

aspectj-logoMaven and eclipse integration is not straightforward. There is one m2e eclipse plugin giving support for Maven itself and a lot of other Eclipse plugins to support Maven plugins used in pom.xml.

One of these plugins is the org.codehaus.mojo:aspectj-maven-plugin – the aspectJ Maven plugin. So when you use it in pom.xml and import into eclipse, you will get error:

Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (execution: default, phase: process-sources), Maven Project Build Lifecycle Mapping Problem

To fix it

Install AspectJ Maven Eclipse plugin from Eclipse update site (Via eclipse Help -> Install new software…):


To install above maven plugin Eclipse needs to have AspectJ Development Tools Eclipse Plugin and AspectJ compiler installed. If you do not have it, you need to install as well. This is where you can find it (install via eclipse Help -> Install new software…):

Did I help you?
I manage this blog and share my knowledge for free, sacrificing my time. If you appreciate it and find this information helpful, please consider making a donation in order to keep this page alive and improve quality

Donate Button with Credit Cards

Thank You!




4 responses

11 10 2014

I am not able to get this to work with Eclipse Luna SR1 (4.4.1). Which eclipse release did you test with?

11 10 2014
11 10 2014

my bad, there is no such thing as ajdt 44 update site

24 12 2014

for Luna this link should work. It’s the dev branch but it might work.

Give Your feedback:

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: