You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "kiran kadarla (JIRA)" <ji...@codehaus.org> on 2008/07/22 10:54:26 UTC
[jira] Commented: (MINSTALL-1) Install plugin installs a jar to
repository with default name, even if name is overridden
[ http://jira.codehaus.org/browse/MINSTALL-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142716#action_142716 ]
kiran kadarla commented on MINSTALL-1:
--------------------------------------
If we can't install/deploy with a build.finalName, then what is the point in even having the facility to use a final name?
It would be better if build.finalName can override the default maven naming convention while installing.
I don't understand why it would be impossible to retrieve the dependency if a finalName is used while deploying.
As the finalName.jar is kept inside groupid/artifactid/version folder structure, it should be possible to override the jar name with a build.finalName.
> Install plugin installs a jar to repository with default name, even if name is overridden
> -----------------------------------------------------------------------------------------
>
> Key: MINSTALL-1
> URL: http://jira.codehaus.org/browse/MINSTALL-1
> Project: Maven 2.x Install Plugin
> Issue Type: Bug
> 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