m2eclipse 工件解析问题 - 建议另一个 Eclipse 的 Maven 插件?

发布于 2024-11-17 14:53:49 字数 329 浏览 6 评论 0原文

使用最新版本的 m2eclipse (0.12.1.20110112-1712),我面临着工件解析的非常奇怪的问题。该项目使用命令行构建得很好。这些工件确实存在于本地 Maven 存储库中。

我尝试

  • 启用/禁用依赖项管理
  • 更新项目配置
  • 更新依赖项,
  • 不使用嵌入式 maven 3.0,而是使用外部 maven 2.2.1
  • 在 eclipse.ini
  • voodoo magic

中使用不同的 JDK ,但没有任何帮助。

请建议我还可以尝试什么或者这个插件的替代品。

With recent version of m2eclipse (0.12.1.20110112-1712) I am facing really weird problems with artifact resolutions. the project is building just fine with command-line. The artifacts do really exist in local maven repository.

I tried to

  • enable/disable dependency management
  • update project configuration
  • update dependencies
  • not using embedded maven 3.0 but use external maven 2.2.1
  • use different JDK in eclipse.ini
  • voodoo magic

but nothing helps.

Please suggest what else may I try or some replacement for this plugin.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

海夕 2024-11-24 14:53:49

您可以卸载 m2eclipse 并使用 maven 的 eclipse:eclipse 插件。这将为您生成/更新您的 .project 和 .classpath 文件。然后,当您的 pom 更改时,您只需再次运行 mvn eclipse:eclipse 即可更新它们。

you could uninstall m2eclipse and use the eclipse:eclipse plugin for maven instead. This will generate/update your .project and .classpath files for you. Then, when your pom changes, you just run mvn eclipse:eclipse again to update them.

山川志 2024-11-24 14:53:49

如果右键单击并更新 Maven 配置,则依赖项应显示在项目下的 Maven 依赖项文件夹中。

您可以尝试关闭并重新打开该项目。不要笑 - 这最近为我的一位同事使用 m2eclipse 工作。

否则,有一个选项可以检测同一 Eclipse 工作区中其他项目所体现的 Maven 依赖关系。也许在项目的构建设置中?

小心巫毒魔法。

If you right-click and update the Maven Configuration, the dependency should appear in Maven Dependencies folder under the project.

You could try closing and reopening the project. Don't laugh - this recently worked for a coworker of mine using m2eclipse.

Otherwise, there is an option somewhere about detecting Maven dependencies embodied by other projects within the same Eclipse workspace. Maybe in the build settings for the project?

Beware the voodoo magic.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文