简体   繁体   English

Maven Eclipse项目依赖项

[英]Maven eclipse project dependencies

I have set up Eclipse Helios with Maven 2 Integration. 我已经使用Maven 2 Integration设置了Eclipse Helios。 Now I have two projects which point to the same repository. 现在,我有两个项目指向相同的存储库。 One requires the other, but since Maven handles all dependencies I cannot add the project directly to the build path. 一个需要另一个,但是由于Maven处理了所有依赖关系,因此我无法将项目直接添加到构建路径。 Instead I defined it as a dependency in pom.xml 相反,我在pom.xml中将其定义为依赖项

Now whenever I call maven assemble on the parent-project I get a class not found exception even though the sub-project built fine. 现在,每当我在父项目上调用maven assemble时,即使子项目构建良好,我也会收到未找到类的异常。 (I updated dependencies) (我更新了依赖项)

Another question: Shouldn't there be pre-defined goals? 另一个问题:应该没有预先设定的目标吗? When I create my own maven run configuration there are no goals available. 当我创建自己的Maven运行配置时,没有可用的目标。 Is my configuration messed up? 我的配置搞砸了吗?

thank you! 谢谢!

Solved the first problem by running eclipse with JDK 6, pre-defined goals are still missing however. 通过使用JDK 6运行Eclipse解决了第一个问题,但是仍然缺少预定义的目标。 Entering stuff like "compile" manually does work. 手动输入“编译”之类的内容确实可以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM