什么是maven-application.xml文件? [英] What is a maven-application.xml file for?

查看:346
本文介绍了什么是maven-application.xml文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

appengine-modules-sample-java 包含文件 appengine-modules-ear / src / main / application / META-INF / maven-application.xml


  1. 什么是maven-application.xml?


  2. appengine-modules-sample-java示例的哪一部分引用maven-application.xml或它是构建系统还是运行时系统寻找的传统文件?如果它是一个约定,它的规范是什么?


  3. 是maven-application .xml与 appengine-modules-ear / src / main / application / META-INF / application.xml

  4. Google模块需要application.xml,为什么会出现以下警告在 appengine-modules-ear / src / main / application / META-INF / application.xml ?b / b>




这是用于gradle的application.xml文件,如果
在您的maven项目中找到它,则n最可能出现问题。




  1. 可能与问题5有关:为什么在一个项目中有Maven和Gradle配置文件吗?难道他们都不能自动建设吗?

感谢您的帮助。

解决方案


  1. maven-application.xml 就是应用程序.xml 在使用maven构建时


  2. 如果您查看 appengine-moudles-ear / pom。 xml ,您会看到对 maven-application.xml 的引用(基本上告诉maven寻找maven-application.xml而不是应用程序。 xml)


  3. 我想这是通过2来回答的,但约定是使用application.xml


  4. 它们不是多余的。由于maven和gradle处理爆炸(解压缩/解压缩)EAR容器的一些怪癖,包含的war目录名称略有不同。如果你看一看 application.xml 它是指战争的名称 appengine-modules-guestbook 和如果你看看maven-application.xml,它将它们称为name-version.war appengine-modules-guestbook-1.0.war ,结果证明它们都是目录不过,这些插件只是以不同的名称命名。

  5. 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.

  1. What is maven-application.xml for?

  2. 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?

  3. If it's a convention, where is its specification?

  4. Is maven-application.xml redundant with appengine-modules-ear/src/main/application/META-INF/application.xml?

  5. 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.

  1. 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.

解决方案

  1. maven-application.xml is the just the application.xml file when building with maven

  2. if you look at appengine-moudles-ear/pom.xml, you'll see a reference to maven-application.xml (basically telling maven to look for maven-application.xml instead of application.xml)

  3. I guess this is answered by "2", but the convention is to use application.xml

  4. 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 names appengine-modules-guestbook, and if you look at maven-application.xml it refers to them as name-version.war appengine-modules-guestbook-1.0.war, it turns out they're both directories though, just named differently by the plugins.

  5. see 4

  6. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆