Java pom.xml 文件的位置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30695848/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 10:01:09  来源:igfitidea点击:

location of pom.xml file

javamavenpom.xml

提问by asamolion

I'm using maven 3.2.5 and need to configure the default build path of maven.

我使用的是 maven 3.2.5,需要配置 maven 的默认构建路径。

HEREI found that the changes need to be made in pom.xmlfile.

在这里我发现需要在pom.xml文件中进行更改。

I just can't find the pom.xml file. Can anyone please tell me the default location of pom.xmlfile?

我就是找不到 pom.xml 文件。谁能告诉我pom.xml文件的默认位置?

采纳答案by Himanshu Bhardwaj

By default pom.xml is at root path of the project, else the path is overridden via -f flag.

默认情况下 pom.xml 位于项目的根路径,否则该路径将通过 -f 标志覆盖。

回答by ivanleoncz

Also, be sure to have your project converted to a Maven Project:

另外,请确保将您的项目转换为 Maven 项目:



enter image description here

在此处输入图片说明

Without this, there'll be no pom.xmlfile available at root path of the project.

没有这个,pom.xml项目的根路径中将没有可用的文件。

For more info: What is POM ?

欲了解更多信息:什么是 POM?