Uploaded image for project: 'Maven Install Plugin'
  1. Maven Install Plugin
  2. MINSTALL-157

Seting custom packaging not working with 3.0.0-M1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.0-M1
    • Fix Version/s: None
    • Component/s: install:install-file
    • Labels:
      None

      Description

      Preparation to reproduce, in console execute:

       

      mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DgroupId=test1 -DartifactId=test1 -Dversion=1. 0-SNAPSHOT
      
      cd test1
      
      mvn clean package
      

      With 3.0.0-M1 while installing and using packaging the output is:

      $ mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=target/test1-1.0-SNAPSHOT.jar -Dpackaging=xyz
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building test1 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-install-plugin:3.0.0-M1:install-file (default-cli) @ test1 ---
      [INFO] Installing C:\Users\wmarkowski\dev-test\sources\test1\target\test1-1.0-SNAPSHOT.jar to C:\Users\wmarkowski\.m2\repository\test1\test1\1.0-SNAPSHOT\test1-1.0-SNAPSHOT.jar
      [INFO] Installing C:\cygwin64\tmp\test1-1.0-SNAPSHOT6382239492754272802.pom to C:\Users\wmarkowski\.m2\repository\test1\test1\1.0-SNAPSHOT\test1-1.0-SNAPSHOT.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.722 s
      [INFO] Finished at: 2019-02-04T22:39:45+01:00
      [INFO] Final Memory: 9M/245M
      [INFO] ------------------------------------------------------------------------
      

      The artifact is still installed as jar, however it should be installed as xyz.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfscholte Robert Scholte
                Reporter:
                wmarkow Witold Markowski
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: