jira-importer opened a new issue, #320:
URL: https://github.com/apache/maven-install-plugin/issues/320

   **[Franz-Josef 
Färber](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER305087)**
 opened 
**[MINSTALL-198](https://issues.apache.org/jira/browse/MINSTALL-198?redirect=false)**
 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:
   
   ```bash
   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](https://issues.apache.org/jira/browse/MINSTALL-198?redirect=false)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to