Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build renamed POM xml

Tags:

maven-2

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 to do it?

like image 532
Tarun Sapra Avatar asked Sep 26 '10 14:09

Tarun Sapra


1 Answers

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.

like image 101
Starkey Avatar answered Sep 30 '22 11:09

Starkey