使用 App Engine 和 Maven 生成 pom.xml 文件

Generate a pom.xml file using App Engine and Maven

我正在使用 Google App Engine for Eclipse 以及 Git。

首先,我使用 Eclipse 和 GAE 插件创建了 "helloworld" 项目

然后我在 Google 服务器计算机上创建了一个克隆的存储库。

唯一的问题是我的项目没有任何 pom.xml,我认为当我输入 $ mvn appengine:run.

时整个过程都会出错

有没有办法用 mvn CLI 创建 pom.xml 文件?你认为这是我唯一的问题吗?

这是我的错误日志:

[ERROR] No plugin found for prefix 'appengine' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mo jo] available from the repositories [local (/home/Jsmith/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [He lp 1]

非常感谢帮助。

您可以从名为 Archetype 的模板创建 Maven 项目(包括 POM),在 Maven 术语中:

In short, Archetype is a Maven project templating toolkit. An archetype is defined as an original pattern or model from which all other things of the same kind are made. The name fits as we are trying to provide a system that provides a consistent means of generating Maven projects.

Eclipse允许将项目转换为maven,试试 右键单击项目名称 > 配置 > 转换为 Maven 项目