Skip to content

[MINSTALL-198] maven-embedder: second install-file overrides first one #320

@jira-importer

Description

@jira-importer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions