开发者

How to build renamed POM xml

开发者 https://www.devze.com 2023-01-17 11:18 出处:网络
I am relatively new to Maven. I actually wanted to know how to build the renamed pom.xml i.e. there is a XML file with the name parent-pom.xml. Shall I directly name it to pom.xml and try building it

I am relatively new to Maven. I actually wanted to know how to build the renamed pom.xml i.e.

there is a XML file with the name parent-pom.xml. Shall I directly name it to pom.xml and try building it or is there some other way t开发者_JAVA技巧o do it?


Maven looks for the pom.xml file, so you should rename it that for it to work.

You could use another file name using the -f option.

mvn -f parent-pom.xml.

0

精彩评论

暂无评论...
验证码 换一张
取 消