[ http://jira.codehaus.org/browse/MNG-2479?page=all ]
Brett Porter reopened MNG-2479:
-------------------------------
Assignee: (was: Brett Porter)
> add support for optional 'packagingName' element in dependency blocks
> ---------------------------------------------------------------------
>
> Key: MNG-2479
> URL: http://jira.codehaus.org/browse/MNG-2479
> Project: Maven 2
> Issue Type: New Feature
> Components: Dependencies
> Affects Versions: 2.0.4
> Reporter: Ian Springer
>
> The various deployment artifact types (war, ear, sar, etc.) package their
> dependencies within the target archive during the package phase. For example,
> the war plugin includes jar dependencies within WEB-INF/lib, and the ear
> plugin includes jar and J2EE dependencies at the top level. Sometimes it is
> not desirable to package the dependencies with their full Maven-repo-style
> names (i.e. artifactName-version.xar). In particular, the version component
> is often not desired. Currently, some plugins provide a way to rename these
> dependency artifacts when they are packaged (e.g. the ear plugin), and others
> do not (e.g. the war plugin), making it necessary to use an antrun or
> dependency plugin hack to rename the artifacts as desired. I think it would
> be much nicer if there was a standard way to specify a "packaging name" (or
> whatever other name makes sense) for a dependency in its dependency block in
> the pom. Then all plugins that package their dependencies could leverage this
> standard setting.
> Here is an example of a war dependency declared in an ear pom:
> <dependency>
> <groupId>org.jboss.on</groupId>
> <artifactId>on-enterprise-gui-portal</artifactId>
> <version>2.0-SNAPSHOT</version>
> <type>war</type>
> <packagingName>on-portal</packagingName>
> </dependency>
> This would cause the war to be bundled in the ear with the filename
> "on-portal.war", instead of the default
> on-enterprise-gui-portal-2.0-SNAPSHOT.war.
--
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