简体   繁体   English

在eclipse中创建一个gwt-maven原型

[英]Create a gwt-maven archetype in eclipse

How to create and add a new archetype in eclipse (neon). 如何在eclipse(neon)中创建和添加新的原型。 I want to create gwt maven project in eclipse by selecting a archetype from 'Select a archetype' screen but i could not find the required archetype in the list although i have installed all the required plugins for GWT . 我想通过从'Select a archetype'屏幕中选择一个原型来在eclipse中创建gwt maven项目,但我在列表中找不到所需的原型,尽管我已经为GWT安装了所有必需的插件。 Some of the solution says to create a gwt project and then convert it to maven and add required dependencies but i don't want to do that .Any ideas ?? 一些解决方案说要创建一个gwt项目,然后将其转换为maven并添加所需的依赖项,但我不想这样做。任何想法?

Got the solution... instead of creating a new archetype i imported maven remote archetype catalogs in eclipse ...Here's how i did it : 得到了解决方案......而不是创建一个新的原型我在eclipse中导入了maven远程原型目录...以下是我的做法:

Step 1 : Open maven preferences in eclipse Go to Windows -> Preferences -> Maven -> Archetypes. 第1步 :在eclipse中打开maven首选项转到Windows - >首选项 - > Maven - > Archetypes。

Step 2 : Add a remote catalog file .Click on Add Remote Catalog button. 步骤2 :添加远程目录文件。单击“添加远程目录”按钮。 Fill the catalog file as “ http://repo1.maven.org/maven2/archetype-catalog.xml ” and some custom description. 将目录文件填入“ http://repo1.maven.org/maven2/archetype-catalog.xml ”和一些自定义描述。

This will take a while to download all the required jars in your .m2 folder (this is a one time process) 这需要一段时间才能下载.m2文件夹中的所有必需的jar(这是一次性过程)

Step 3 : Now you can find gwt-maven-plugin entry in 'select a archetype' screen .Create a gwt-maven project with this archetype and you are set . 第3步 :现在你可以在'select a archetype'屏幕中找到gwt-maven-plugin条目。用这个原型创建一个gwt-maven项目,你就可以了。

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

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