Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

how to specify different file name for pom.xml of a module?

$
0
0
Hi all,

I'd like to keep multiple pom files in the same project with different
dependencies, so that I could build it with "mvn -f pom_2.xml". however,
since my project have sub modules, I'd like it to build using the pom_2.xml
file in module folder, too. but the build "mvn -f pom_2.xml" always goes
to pom.xml in the module folder.

Here's how my project is structured:

└── my-project

├── pom.xml

├── pom_2.xml

└── my-module

├── pom.xml

├── pom_2.xml

Is there a way to specify in pom_2.xml on the name of the pom file to use
for module so that the module can also be built with pom_2.xml? or is this
impossible?

Thank you.

Yuhan

Viewing all articles
Browse latest Browse all 5648

Trending Articles