Best way to attach additional jars to maven project [java]

62 Views Asked by At

I have a maven based project, which after execution I want to install all the generated jars to the maven repository. I cannot add additional jar details in the pom.xml because the additional jars are not static.

The only option for me to add them through a custom mojo. I have created my own mojo and installed the main project jars.

What would be the best way to attach the additional generated jars. I tried the method, addAttachedArtifact(..) in MavenProject and it installed the additional jar files but not generating a default pom.xml for the additional jar files.

I m not sure what would be the best way to indicate to generate default pom.xml for additional jars while installing into the maven repository.

Thanks in advance!

0

There are 0 best solutions below