简体   繁体   English

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

[英]Generate a pom.xml file using App Engine and Maven

I'm using Google App Engine for Eclipse and also Git. 我正在使用Google App Engine for Eclipse和Git。

First I've created my "helloworld" project with Eclipse and GAE plugin 首先,我使用Eclipse和GAE插件创建了“ helloworld”项目

Then I've created a repository that I've cloned on my Google server machine. 然后,我创建了一个存储库,该存储库已在Google服务器计算机上克隆。

Only problem is my project don't have any pom.xml and I think that's making bug the whole process when I enter $ mvn appengine:run . 唯一的问题是我的项目没有任何pom.xml并且当我输入$ mvn appengine:run时,这会使整个过程$ mvn appengine:run

Is there a way to create a pom.xml file with mvn CLI? 有没有一种方法可以使用mvn CLI创建pom.xml文件? Do you think that's the only problem I have. 您是否认为这是我唯一的问题。

Here is my error log: 这是我的错误日志:

[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] [错误]在存储库[本地(/home/Jsmith/.m2)中找不到当前项目和插件组[org.apache.maven.plugins,org.codehaus.mo jo]中前缀为'appengine'的插件。 / repository),中央( https://repo.maven.apache.org/maven2)] -> [He lp 1]

Help is greatly appreciated. 非常感谢您的帮助。

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

You can create a Maven project (including the POM) from a template called Archetype in Maven terminology: 您可以从Maven术语中称为Archetype的模板创建Maven项目(包括POM):

In short, Archetype is a Maven project templating toolkit. 简而言之,Archetype是Maven项目模板工具箱。 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. 这个名称正好适合我们试图提供一个提供生成Maven项目的一致方法的系统。

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

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