我在尝试创建一个可以在Eclipse中使用的简单GWT + Maven项目时遇到了很多问题。下面是我在做什么:在Eclipse中使用GWT + Maven项目
创建一个新的
gwt-maven-plugin
项目:mvn archetype:generate -q -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.5.0-rc2 -DgroupId=myGroupId -DartifactId=myArtifactId -Dversion=1.0 -Dmodule=myModule
打开Eclipse中的项目:文件=>导入... =>现有Maven项目,然后选择我刚刚创建的项目。
不过,我得到这些错误:
No marketplace entries found to handle gwt-maven-plugin:2.5.0-rc2:generateAsync in Eclipse. Please see Help for more information. No marketplace entries found to handle gwt-maven-plugin:2.5.0-rc2:i18n in Eclipse. Please see Help for more information.
我不明白此错误消息。我找到了一个related question on SO,但将建议的剪切片段添加到我的pom.xml中并没有出现任何问题。
任何人都可以点亮一下吗?
你试过项目→Maven→更新项目配置...?顺便说一句,我不建议使用原型。请参阅http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven –
更新项目配置并未解决问题。你链接的教程看起来很有希望,我会放弃它。 – del
Eclipse是否建议您针对这些错误“快速修复”?它应该建议你忽略它们,为此它会在POM的'pluginManagement'部分插入相应的配置(类似于Dvd Prd的答案)。 –