Trigger mvn install pointing to remote pom file


#1

Hello,

as part of a complex multi-project build, I need to automatically update the local maven repository to make certain project dependencies resolvable.

The pom file I need to install is located here:

http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/com/ibm/tools/target/was.installer/8.5.5/was.installer-8.5.5.pom

And I need to install it as part of the build also passing parameters i.e:
mvn install -f “
http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/com/ibm/tools/target/was.installer/8.5.5/was.installer-8.5.5.pom” -D serverInstallationFolder=“C:/WebSphere/AppServer/”

I have looked at the gradle maven and maven-publish, but they all seem oriented to publish artifacts generated by the build and not generically import an existing pom file

Any suggestion is very appriciated