Franz-Josef Färber opened MINSTALL-198 and commented
I am using the maven install:install-file goal with both cases: Jar-Files containing a pom-file or not, as described in https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html .
While on the command-line the following works:
mvn install:install-file -Dfile=somefile.jar -DgroupId=somegroup -DartifactId=someartefact -Dversion=1.0.0 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=someotherfile-containing-a-pom-file.jar
using maven-embedder, it does not work: On the second install:install-file goal, the -DgroupId, -Dartifact parameters from the first call are still somehow present and trigger overriding the first Jar file in the local maven repo.
MRE: https://github.com/fjf2002/78041113-maven-embedder-maven-install-plugin-bug-second-install-file-overrides-first-one
No further details from MINSTALL-198
Franz-Josef Färber opened MINSTALL-198 and commented
I am using the maven
install:install-filegoal with both cases: Jar-Files containing a pom-file or not, as described in https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html .While on the command-line the following works:
using maven-embedder, it does not work: On the second install:install-file goal, the
-DgroupId,-Dartifactparameters from the first call are still somehow present and trigger overriding the first Jar file in the local maven repo.MRE: https://github.com/fjf2002/78041113-maven-embedder-maven-install-plugin-bug-second-install-file-overrides-first-one
No further details from MINSTALL-198