Sathish Kanigiri
Sathish Kanigiri

Reputation: 11

Generate .pom file all artifacts in Maven

I've a multi-module maven project. It has two multi-modules

When I build the pom.xml using mvn build option, I am able to get all artifacts (parent pom, child jars).

But I want .pom file (not pom.xml) for child jars as well. Can anyone please suggest me what to do?

I tried by adding dependencies like maven release plugin in pom.xml but it didn't work.

Upvotes: 1

Views: 692

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35795

The pom.xml is renamed to module1.pom when installed (copied to the local repository) or deployed (copied to the repository). The pom.xml is not copied to target.

Upvotes: 1

Related Questions