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?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.