开发者

AspectJ is not getting added to classpath with eclipse:eclipse

开发者 https://www.devze.com 2023-01-21 02:55 出处:网络
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

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 comi开发者_运维问答ng 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

0

精彩评论

暂无评论...
验证码 换一张
取 消