我正在执行以下命令,
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:clean \
org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse
我的所有依赖项都位于类路径中,但 AspectJ 未添加到类路径中。我在 pom.xml 依赖项列表中声明了它们
如果我使用其他版本的 eclipse 插件,它在哪里工作......
最佳答案
很难说没有有关您的 maven-eclipse-plugin 配置的详细信息,但据我所知,这应该可以工作。也许看看 MECLIPSE-544 (及相关问题)。基本上,该问题建议设置以下参数(和值):
In the configuration of the eclipse plugin add
<ajdtVersion>none</ajdtVersion>
. This should fix the problem.
出于好奇,你为什么使用 2.6 版本?
关于java - AspectJ 未通过 Eclipse 添加到类路径 :eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3977941/