使用eclipse:eclipse,AspectJ没有被添加到classpath中

时间:2010-10-20 12:47:36

标签: java eclipse maven aspectj maven-eclipse-plugin

我正在执行以下命令,

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

我的所有依赖项都在classpath中,但AspectJ没有添加到类路径中。我在pom.xml依赖列表中声明了它们

如果我使用其他版本的eclipse插件,它的工作原理......

2 个答案:

答案 0 :(得分:1)

很难说没有关于你的maven-eclipse-plugin配置的详细信息但是AFAIK,这应该可行。也许看一下 MECLIPSE-544 (和相关问题)。基本上,问题建议设置以下参数(和值):

  

在eclipse插件的配置中添加<ajdtVersion>none</ajdtVersion>。这应该可以解决问题。

出于好奇,为什么使用2.6版本?

答案 1 :(得分:0)

使用命令

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