views:

18

answers:

2

I'm executing the following command,

mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:clean \
    org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse

My all the dependencies are coming in classpath but AspectJ is not added to the classpath. I have them declared in pom.xml dependencies list

Where as it is working if I use some other version of eclipse plugin...

+1  A: 

Hard to say without details about your maven-eclipse-plugin configuration but AFAIK, this is supposed to work. Maybe have a look at MECLIPSE-544 (and related issues). Basically, the issue suggest to set the following parameter (and value):

In the configuration of the eclipse plugin add <ajdtVersion>none</ajdtVersion>. This should fix the problem.

Just out of curiosity, why are you using version 2.6?

Pascal Thivent
Why I'm using 2.6 is because of known issue with 2.7 while using command "mvn eclipse:eclipse" is not generating classpath file and giving maven error (complaining about multiple entries of same kind like <Resources>..)
srinannapa
A: 

Worked with the command

mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:clean org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse -Declipse.ajdtVersion=none

srinannapa