You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Witold Markowski (JIRA)" <ji...@apache.org> on 2019/02/04 21:50:00 UTC

[jira] [Commented] (MINSTALL-157) Seting custom packaging not working with 3.0.0-M1

    [ https://issues.apache.org/jira/browse/MINSTALL-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16760253#comment-16760253 ] 

Witold Markowski commented on MINSTALL-157:
-------------------------------------------

When using *maven-install-plugin:3.5.2* the artifact is installed as *xyz*. Here is the output from the console:
{noformat}
$ mvn org.apache.maven.plugins:maven-install-plugin:2.5.2: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:2.5.2: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.xyz
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.684 s
[INFO] Finished at: 2019-02-04T22:40:30+01:00
[INFO] Final Memory: 8M/245M
[INFO] ------------------------------------------------------------------------
{noformat}

> Seting custom packaging not working with 3.0.0-M1
> -------------------------------------------------
>
>                 Key: MINSTALL-157
>                 URL: https://issues.apache.org/jira/browse/MINSTALL-157
>             Project: Maven Install Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0-M1
>            Reporter: Witold Markowski
>            Priority: Major
>
> Preparation to reproduce, in console execute:
>  {noformat}
> mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DgroupId=test1 -DartifactId=test1 -Dversion=1. 0-SNAPSHOT
> {noformat}
> {noformat}
> cd test1
> {noformat}
> {noformat}
> mvn clean package
> {noformat}
> With *3.0.0-M1* while installing and using *packaging* the output is:
> {noformat}
> $ 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] ------------------------------------------------------------------------
> {noformat}
> The artifact is still installed as *jar*, however it should be installed as *xyz*.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)