Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
3.0.0-M1
-
None
-
None
Description
Steps to reproduce:
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DgroupId=test1 -DartifactId=test1 -Dversion=1.0-SNAPSHOT
mvn clean package install:install-file -Dfile=target/test1-1.0-SNAPSHOT.jar -DgeneratePom=false
produces:
[INFO] — maven-install-plugin:2.5.2:install-file (default-cli) @ test1 —
[INFO] Installing D:\Workarea\sample\test1\target\test1-1.0-SNAPSHOT.jar to C:\Users\xxx\.m2\repository\test1\test1\1.0-SNAPSHOT\test1-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
changing the version of the maven-install-plugin in pom.xml to
<plugin>
{{ <artifactId>maven-install-plugin</artifactId>}}
{{ <version>3.0.0-M1</version>}}
{{ </plugin>}}
the same call to
mvn clean package install:install-file -Dfile=target/test1-1.0-SNAPSHOT.jar -DgeneratePom=false
produces:
[INFO] — maven-install-plugin:3.0.0-M1:install-file (default-cli) @ test1 —
[INFO] Installing D:\Workarea\sample\test1\target\test1-1.0-SNAPSHOT.jar to C:\Users\xxx\.m2\repository\test1\test1\1.0-SNAPSHOT\test1-1.0-SNAPSHOT.jar
[INFO] Installing C:\Users\xxx\AppData\Local\Temp\test1-1.0-SNAPSHOT7157743325898943802.pom to C:\Users\xxx\.m2\repository\test1\test1\1.0-SNAPSHOT\test1-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
Which also installs a POM - which is not what we want!