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...
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?