导入 Maven-GWT 项目时出错(“未找到处理 gwt-maven-plugin 的市场条目”)
我在 Win XP、Maven 3.0.3 和 GWT 2.4 上使用 Eclipse Indigo。我使用 Mavne gwt archetype
创建了一个 Maven-GWT 项目。然后我打开 Eclipse,转到 File ->;导入
,选择Existing Maven Projects
,为我的GWT-Maven项目选择pom,然后得到这个对话框:
错误是
No marketplace entries found to handle gwt-maven-plugin:2.4.0:generateAsync in Eclipse. Please see Help for more information.
No marketplace entries found to handle gwt-maven-plugin:2.4.0:i18n in Eclipse. Please see Help for more information.
No marketplace entries found to handle maven-war-plugin:2.1.1:exploded in Eclipse. Please see Help for more information.
有人知道如何解决这些错误吗?当我实际导入我的项目并尝试使用它时,它会造成严重破坏。 - 戴夫
I'm using Eclipse Indigo on Win XP, Maven 3.0.3 and GWT 2.4. I created a Maven-GWT project using the Mavne gwt archetype
. Then I opened Eclipse, went to File -> Import
, selected Existing Maven Projects
, chose the pom for my GWT-Maven project, and then got this dialog:
The errors are
No marketplace entries found to handle gwt-maven-plugin:2.4.0:generateAsync in Eclipse. Please see Help for more information.
No marketplace entries found to handle gwt-maven-plugin:2.4.0:i18n in Eclipse. Please see Help for more information.
No marketplace entries found to handle maven-war-plugin:2.1.1:exploded in Eclipse. Please see Help for more information.
Anyone know how to resolve these errors? It is wreaking havoc when I actually import my project and try and work with it. - Dave
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
确保您没有使用 Eclipse 的嵌入式 Maven。
转到
窗口->首选项->Maven->安装->
在那里选择你自己的maven安装文件夹。编辑
如果您的公司支付 IDE 费用,您应该要求 IntelliJ the IDE for Java,我想说在很多方面都比 Eclipse 更好,并不是说 Eclipse 不好,那只是一个不错的选择。你一开始就不会遇到这个问题
Make sure you are not using the embedded Maven of Eclipse.
Go to
Window->Preference ->Maven -> Installation->
choose your own maven installation folder there.EDIT
If your company pays for IDE, you should ask for IntelliJ the IDE for Java, which I would say is better than Eclipse in many ways, not saying Eclipse is not good, that's just a good alternative. And you won't have this issue to start with
如果您的 pom 没有指定 maven-resources-plugin 的版本,则该版本将来自 superpom。默认情况下,m2e 使用 Maven 3.0.x 的嵌入式副本。如果那里的 superpom 指向 2.4.3 并且您的“Eclipse 外部”版本要求其他内容,那么 Eclipse 内部的 Maven 将寻找 2.4.3 并由于“离线”而失败。
通过将 m2e 配置为使用您在外部使用的 Maven 安装或关闭一次构建的“离线”来修复。
如果你想从本地安装使用maven而不是m2e附带的嵌入式版本,你必须这样做
安装目录不是本地存储库。这是安装maven的地方。
更改后尝试右键单击项目,然后,
If your pom is not specific as to the version of the maven-resources-plugin, that version will come from the superpom. By default, m2e uses an embedded copy of Maven 3.0.x. If the superpom there points to 2.4.3 and your 'outside-of-Eclipse' version asks for something else, then the Maven inside of Eclipse will go looking for 2.4.3 and fail due to the 'offline'.
Fix by configuring m2e to use the Maven installation you are using outside, or turning off 'offline' for one build.
If you want to use maven from your local installation instead of the embedded version that comes with m2e, You have to do this
Installation Directory is not where local repository. It is where maven is installed.
After changing try right click on project then,
请参阅如何解决Spring Data Maven 构建的“生命周期配置未涵盖插件执行”
您基本上只需复制 http://code.google.com/p/google-web- toolkit/wiki/WorkingWithMaven#POM_changes_needed_for_Eclipse_Indigo 并适应您的插件和目标。
See How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds
You can basically just copy the snippet from http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven#POM_changes_needed_for_Eclipse_Indigo and adapt to your plugins and goals.
我对 maven、gwt 和 eclipse 使用不同的方法。
我正在使用 Maven Eclipse 插件生成 .classpath 和 .project 文件,并将项目手动导入到 Eclipse 中(而不是作为 Maven 项目)。
我的 Maven Eclipse 插件配置如下所示:
希望有帮助
I am using a different approach with maven, gwt and eclipse.
I am using the maven eclipse plugin to generate a .classpath and .project file and import the project manually into eclipse (not as a maven project).
My configuration for the maven eclipse plugin looks like this:
Hope that helps
这帮助了我:
This helped me: