m2eclipse - pom 和依赖项定义之后 - 类路径/Maven 依赖项上没有库
到目前为止,我一直在做简单的原型项目,并且总是在依赖项定义和保存 pom.xml 之后,紧接着 Maven 依赖项库就充满了库。但现在我声明:
parent(pom打包,scm,存储库管理)
parent(pom打包,共享依赖项)
实际项目(jar打包,更多依赖项)
实际项目(jar打包,更多依赖项)
我从上一个创建了它们通过“创建模块”...问题是,我无法让它自动填充 Maven 依赖项库
在 .classpath 文件中有这一行
与其他“工作”项目一样,但类路径上没有任何内容。请问有什么建议吗?
I've been doing just simple archetype projects until now, and always after dependencies definition and saving pom.xml, immediately after that the Maven Dependencies library was full of libraries. But now I declared:
parent(pom packaging, scm, repository management)
parent(pom packaging, shared dependencies)
actual project (jar packaging, few more dependencies)
actual project (jar packaging, few more dependencies)
I created them from the upper one by "Create module" ... Problem is, that I can't make it automatically fill the Maven Dependencies library
In .classpath file there is this line <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
as in other "working" projects, but there is nothing on the classpath. Any suggestions please ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您能否在子项目的命令行上运行
mvn dependency:tree
并确认您看到了预期的依赖项。如果你不这样做,那么你的 poms 就有问题(你必须发帖才能获得更多帮助)。Can you run
mvn dependency:tree
on the command line for the child project and confirm that you see the expected dependencies. If you don't, then there is something wrong with your poms (that you will have to post to get more help).