Yaron
Yaron

Reputation: 2749

Maven - external xml file with dependencies

I want to divide my dependencies into multiple xml files for easier management and better readability.
It means that my pom.xml should be able to reference a external local xml file (not external jar!) with dependencies list to include.
I also have to mention that I don;t want multiple pom.xml files. Just a xml file with dependencies to include.
It's possible at gradle build system using: apply from: project.file('gradle/build_default.gradle') syntax.
Is there something equivalent or similar for maven?

Upvotes: 0

Views: 145

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35843

As khmarbaise already said:

This cannot be done. There is no mechanism for inclusion of XML into a POM.

Upvotes: 2

Related Questions