使用 Maven 作为 Google App Engine 项目的构建工具在 Eclipse 中创建一个新项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5847738/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Creating a new project in Eclipse using Maven as build tool for Google App Engine project
提问by newbie
I'm creating GAE projects and I would like to use Maven as build tool. I have found project http://www.kindleit.net/maven_gae_plugin/that provides ability to use GAE with Maven, but I didn't understand how I can create a new project with this configuration?
我正在创建 GAE 项目,我想使用 Maven 作为构建工具。我发现项目http://www.kindleit.net/maven_gae_plugin/提供了在 Maven 中使用 GAE 的能力,但我不明白如何使用此配置创建新项目?
回答by Eugene Ryzhikov
First of all you have to have m2eclipse plugininstalled to effectively use Maven in Eclipse. Once you have it:
首先,您必须安装m2eclipse 插件才能在 Eclipse 中有效地使用 Maven。一旦你拥有它:
- Create a new Maven project with
File
->New
->Project...
- Make sure "Create simple project.." checkbox is not checked
- Select appropriate archetype from kindleit
- 使用
File
->New
->创建一个新的 Maven 项目Project...
- 确保未选中“创建简单项目..”复选框
- 从kindleit中选择合适的原型
- Give your project an id and a group
- 给你的项目一个 id 和一个组
After that it will be generated with proper structure and dependecies
之后它将以适当的结构和依赖生成