简体   繁体   English

M2_REPO和m2eclipse

[英]M2_REPO and m2eclipse

I've spent many hours searching and wonder why is this so hard to get it to work?! 我花了很多时间进行搜索,想知道为什么这么难使其起作用?! Browsing through different questions regarding this have not led me to an answer. 浏览有关此问题的不同问题并没有使我得到答案。

I have a multi-project multi-module application, ie I import two projects each having several modules. 我有一个多项目多模块应用程序,即我导入了两个项目,每个项目都有几个模块。 Now the generated sources cannot be found/inferred, 现在,无法找到/推断生成的源,

eclipse displays them as missing types . eclipse将它们显示为缺少的类型 I can build from command line but Eclipse cannot find the class files. 我可以从命令行进行构建,但是Eclipse无法找到类文件。

I have set M2_REPO in Window->Preferences->Maven... also I point out an external Maven install in Eclipse. 我已经在Window-> Preferences-> Maven中设置了M2_REPO ...我也指出了在Eclipse中安装外部Maven的方法。

What could be wrong? 有什么事吗 I do get "Plugin execution not covered by lifecycle configuration: org.apache.maven.plugin" 我确实得到了“生命周期配置未涵盖的插件执行:org.apache.maven.plugin”

for some POMs but I'm not sure if that is related to the problem at all. 对于某些POM,但我不确定是否与问题完全相关。

请参阅m2e Wiki ,以为Eclipse添加自定义构建生命周期映射。

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

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