java - AspectJ 未通过 Eclipse 添加到类路径 :eclipse

标签 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

我的所有依赖项都位于类路径中,但 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/

相关文章:

java - 在 Eclipse 或 Intellij 中取消封装重构?

maven - 什么是 MVNrepository 中的 *.asc 文件

java - Android 模拟器无法启动或启动。什么都没有弹出

java - 如何在 eclipse 中验证 JTextField?

java - 从外部配置文件读取值返回空值

java - 尝试覆盖方法时奇怪的 Eclipse 行为

eclipse - 从 Eclipse IConfigurationElement 获取 OSGI Bundle

macos - macOS Catalina 更新 : there is no POM in this directory 后,Maven 从终端停止工作

Jenkins 上的 Java 本地化测试失败

java - 删除循环链表中的所有出现。 ( java )