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
location of pom.xml file
提问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.xml
file.
在这里我发现需要在pom.xml
文件中进行更改。
I just can't find the pom.xml file. Can anyone please tell me the default location of pom.xml
file?
我就是找不到 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 项目:
Without this, there'll be no pom.xml
file available at root path of the project.
没有这个,pom.xml
项目的根路径中将没有可用的文件。
For more info: What is POM ?
欲了解更多信息:什么是 POM?