You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "ruel loehr (JIRA)" <ji...@codehaus.org> on 2005/11/22 18:27:06 UTC

[jira] Created: (MNG-1657) Install plugin installs a jar to repository with default name, even if name is overridden

Install plugin installs a jar to repository with default name, even if name is overridden
-----------------------------------------------------------------------------------------

         Key: MNG-1657
         URL: http://jira.codehaus.org/browse/MNG-1657
     Project: Maven 2
        Type: Bug
  Components: maven-install-plugin  
    Versions: 2.0    
 Environment: winxp
    Reporter: ruel loehr
     Fix For: 2.0.1


When using the install plugin to install a jar to the repository, the default name of the jar is used, even if the name is overridden.   Also, if you define your own type via a plugin ('myjar'), when installing, it will be installed as 'myjar'.  This should be overrideable otherwise it is impossible for a user to override the default type plugins.

[INFO] [jar:jar]
[INFO] Building jar: c:\projects\maven-jboss-head\jboss-head\common\namespace\ta
rget\testnamespace.doodad.jar.jar
[INFO] [install:install]
[INFO] Installing c:\projects\maven-jboss-head\jboss-head\common\namespace\targe
t\testnamespace.doodad.jar.jar to C:\Documents and Settings\ruel\.m2\repository\
org\jboss\server\common\namespace\namespace\5.0-SNAPSHOT\namespace-5.0-SNAPSHOT.
jar
[INFO] -------------------------------------------------------------------------

This is pretty easy to reproduce all you have to do is give a finalName and run the install plugin:

<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.jboss.server.common.namespace</groupId>
   <artifactId>namespace</artifactId>
   <packaging>jar</packaging>
   <version>5.0-SNAPSHOT</version>
   <name>JBoss-Common - namespace</name>
   <parent>
      <groupId>org.jboss.server.common</groupId>
      <artifactId>project.common</artifactId>
      <version>5.0-SNAPSHOT</version>
   </parent>
   <build>
      <finalName>testnamespace.doodad.jar</finalName>
      </build>
</project>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1657) Install plugin installs a jar to repository with default name, even if name is overridden

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1657?page=all ]
     
Brett Porter closed MNG-1657:
-----------------------------

      Assign To: Brett Porter
     Resolution: Won't Fix
    Fix Version:     (was: 2.0.1)

we don't use final name in installation, as it would be impossible to retrieve the dependency again given the different ID.

you can change the extension though, see "Creating a custom artifact handler" in http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

> Install plugin installs a jar to repository with default name, even if name is overridden
> -----------------------------------------------------------------------------------------
>
>          Key: MNG-1657
>          URL: http://jira.codehaus.org/browse/MNG-1657
>      Project: Maven 2
>         Type: Bug
>   Components: maven-install-plugin
>     Versions: 2.0
>  Environment: winxp
>     Reporter: ruel loehr
>     Assignee: Brett Porter

>
>
> When using the install plugin to install a jar to the repository, the default name of the jar is used, even if the name is overridden.   Also, if you define your own type via a plugin ('myjar'), when installing, it will be installed as 'myjar'.  This should be overrideable otherwise it is impossible for a user to override the default type plugins.
> [INFO] [jar:jar]
> [INFO] Building jar: c:\projects\maven-jboss-head\jboss-head\common\namespace\ta
> rget\testnamespace.doodad.jar.jar
> [INFO] [install:install]
> [INFO] Installing c:\projects\maven-jboss-head\jboss-head\common\namespace\targe
> t\testnamespace.doodad.jar.jar to C:\Documents and Settings\ruel\.m2\repository\
> org\jboss\server\common\namespace\namespace\5.0-SNAPSHOT\namespace-5.0-SNAPSHOT.
> jar
> [INFO] -------------------------------------------------------------------------
> This is pretty easy to reproduce all you have to do is give a finalName and run the install plugin:
> <project>
>    <modelVersion>4.0.0</modelVersion>
>    <groupId>org.jboss.server.common.namespace</groupId>
>    <artifactId>namespace</artifactId>
>    <packaging>jar</packaging>
>    <version>5.0-SNAPSHOT</version>
>    <name>JBoss-Common - namespace</name>
>    <parent>
>       <groupId>org.jboss.server.common</groupId>
>       <artifactId>project.common</artifactId>
>       <version>5.0-SNAPSHOT</version>
>    </parent>
>    <build>
>       <finalName>testnamespace.doodad.jar</finalName>
>       </build>
> </project>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1657) Install plugin installs a jar to repository with default name, even if name is overridden

Posted by "Jay Stramel (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1657?page=comments#action_53325 ] 

Jay Stramel commented on MNG-1657:
----------------------------------

The problem with the custom artifact handler is that all artifacts share the same extension.  For example, let's say you want to create a SAR packager plug-in.  It is fairly easy to create a SAR file.  However, most things don't recognize the SAR extension as a java archive (because it's JBoss specific).  To work around this, you might create a second artifact (an attached artifact) that is the same as the SAR file, but with a JAR extension and a different classification.  When the install plug-in copies the JAR artifact, it will rename it to a SAR extension because that is what the POM specifies as the package.

This will make other things difficult also.  For example:  creating both a JAR and an EJB3 archive for working with the new EJB spec.

So, how do we get this fixed?


> Install plugin installs a jar to repository with default name, even if name is overridden
> -----------------------------------------------------------------------------------------
>
>          Key: MNG-1657
>          URL: http://jira.codehaus.org/browse/MNG-1657
>      Project: Maven 2
>         Type: Bug

>   Components: maven-install-plugin
>     Versions: 2.0
>  Environment: winxp
>     Reporter: ruel loehr
>     Assignee: Brett Porter

>
>
> When using the install plugin to install a jar to the repository, the default name of the jar is used, even if the name is overridden.   Also, if you define your own type via a plugin ('myjar'), when installing, it will be installed as 'myjar'.  This should be overrideable otherwise it is impossible for a user to override the default type plugins.
> [INFO] [jar:jar]
> [INFO] Building jar: c:\projects\maven-jboss-head\jboss-head\common\namespace\ta
> rget\testnamespace.doodad.jar.jar
> [INFO] [install:install]
> [INFO] Installing c:\projects\maven-jboss-head\jboss-head\common\namespace\targe
> t\testnamespace.doodad.jar.jar to C:\Documents and Settings\ruel\.m2\repository\
> org\jboss\server\common\namespace\namespace\5.0-SNAPSHOT\namespace-5.0-SNAPSHOT.
> jar
> [INFO] -------------------------------------------------------------------------
> This is pretty easy to reproduce all you have to do is give a finalName and run the install plugin:
> <project>
>    <modelVersion>4.0.0</modelVersion>
>    <groupId>org.jboss.server.common.namespace</groupId>
>    <artifactId>namespace</artifactId>
>    <packaging>jar</packaging>
>    <version>5.0-SNAPSHOT</version>
>    <name>JBoss-Common - namespace</name>
>    <parent>
>       <groupId>org.jboss.server.common</groupId>
>       <artifactId>project.common</artifactId>
>       <version>5.0-SNAPSHOT</version>
>    </parent>
>    <build>
>       <finalName>testnamespace.doodad.jar</finalName>
>       </build>
> </project>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org