什么是maven-application.xml文件? [英] What is a maven-application.xml file for?
问题描述
appengine-modules-sample-java 包含文件 appengine-modules-ear / src / main / application / META-INF / maven-application.xml 。
-
什么是maven-application.xml?
-
appengine-modules-sample-java示例的哪一部分引用maven-application.xml或它是构建系统还是运行时系统寻找的传统文件?如果它是一个约定,它的规范是什么?
-
是maven-application .xml与 appengine-modules-ear / src / main / application / META-INF / application.xml ?
为 Google模块需要application.xml,为什么会出现以下警告在 appengine-modules-ear / src / main / application / META-INF / application.xml ?b / b>
这是用于gradle的application.xml文件,如果
在您的maven项目中找到它,则n最可能出现问题。
- 可能与问题5有关:为什么在一个项目中有Maven和Gradle配置文件吗?难道他们都不能自动建设吗?
感谢您的帮助。
-
maven-application.xml 就是
应用程序.xml
在使用maven构建时 -
如果您查看
appengine-moudles-ear / pom。 xml
,您会看到对maven-application.xml
的引用(基本上告诉maven寻找maven-application.xml而不是应用程序。 xml) -
我想这是通过2来回答的,但约定是使用application.xml
-
它们不是多余的。由于maven和gradle处理爆炸(解压缩/解压缩)EAR容器的一些怪癖,包含的war目录名称略有不同。如果你看一看
application.xml
它是指战争的名称appengine-modules-guestbook
和如果你看看maven-application.xml,它将它们称为name-version.warappengine-modules-guestbook-1.0.war
,结果证明它们都是目录不过,这些插件只是以不同的名称命名。 gradle和maven构建文件,并且这些步骤对于同时使用两个构建系统是必需的。您可能会删除所有的gradle东西,只是在扩展此示例时使用maven(并将application.xml重命名为您喜欢的东西)。
The appengine-modules-sample-java contains the file appengine-modules-ear/src/main/application/META-INF/maven-application.xml.
What is maven-application.xml for?
What part of the appengine-modules-sample-java sample refers to maven-application.xml or is it a conventional file that's looked for by the build system or runtime system?
If it's a convention, where is its specification?
Is maven-application.xml redundant with appengine-modules-ear/src/main/application/META-INF/application.xml?
If application.xml is required for Google modules, why is the following warning in appengine-modules-ear/src/main/application/META-INF/application.xml?
This is the application.xml file intended for use with gradle, if you find it in your maven project, then that's a problem most likely.
- Possibly related to question 5: why are there both maven and gradle configuration files in one project? Don't they both automate building?
Thanks for your help.
maven-application.xml
is the just theapplication.xml
file when building with mavenif you look at
appengine-moudles-ear/pom.xml
, you'll see a reference tomaven-application.xml
(basically telling maven to look for maven-application.xml instead of application.xml)I guess this is answered by "2", but the convention is to use application.xml
They are not redundant. Due to some quirks with how maven and gradle handle exploding (unzipping/unarchiving) EAR containers, the included war directories have slightly different names. If you take a look a the
application.xml
it refers to wars by their namesappengine-modules-guestbook
, and if you look at maven-application.xml it refers to them as name-version.warappengine-modules-guestbook-1.0.war
, it turns out they're both directories though, just named differently by the plugins.see 4
The sample includes both gradle and maven build files, and these steps were necessary to get it working with both build systems at the same time. You can probably remove all the gradle stuff and just use maven when extending this sample (and rename the application.xml to something of your liking)
这篇关于什么是maven-application.xml文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!