Rajesh
Rajesh

Reputation: 86

How to call another POM.xml from main POM.xml

Basically I have more than 2 pom.xml in the project. Either I can call all one by one from other pom.xml like Ant or I can run all the pom.xml in a sequence.

But I am not sure how can I achieve this. I am new to maven.

Upvotes: 0

Views: 1282

Answers (2)

Locates
Locates

Reputation: 33

others may still be looking for multi-module project: https://www.baeldung.com/maven-multi-module Each module inside Super POM can have own POM

Upvotes: 1

J Fabian Meier
J Fabian Meier

Reputation: 35795

No, there can only be one POM file per project and you cannot "call" other POM files.

Upvotes: 1

Related Questions