You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl-Heinz Marbaise (JIRA)" <ji...@codehaus.org> on 2014/06/24 22:48:10 UTC

[jira] (MRAR-33) fileNameMapping for dependencies included in a RAR

    [ https://jira.codehaus.org/browse/MRAR-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=348705#comment-348705 ] 

Karl-Heinz Marbaise commented on MRAR-33:
-----------------------------------------

We should think about improving http://maven.apache.org/shared/maven-mapping/ and improve RAR and maven-ear-plugin as well.

> fileNameMapping for dependencies included in a RAR
> --------------------------------------------------
>
>                 Key: MRAR-33
>                 URL: https://jira.codehaus.org/browse/MRAR-33
>             Project: Maven Rar Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.3, 2.4
>            Reporter: Frank Lynch
>         Attachments: patch.txt
>
>
> The attached patch adds a feature to support fileNameMappings for dependencies included in a rar.
> This is similar to the fileNameMapping feature in the maven-ear-plugin. In fact, much of the implementation was borrowed from there.
> There are three supported values for fileNameMapping: standard, no-version and full.
> standard   - dependencies will be named as they usually are. 
>              eg: maven-artifact01-1.0-SNAPSHOT.jar
> no-version - dependencies will have their version information removed. 
>              eg: maven-artifact01.jar
> full       - dependencies will be prefixed with their groupId. 
>              eg: org-apache-maven-test-maven-artifact01-1.0-SNAPSHOT.jar
>  
> You can leverage this new capability using the fileNameMapping tag in the plugin configuration within your pom.xml 
> eg:
>   <build>
>     <plugins>
>       <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-rar-plugin</artifactId>
>         <version>2.3</version>
> 	<configuration>
> 	  <fileNameMapping>no-version</fileNameMapping>
> 	  <includeJar>false</includeJar>
> 	</configuration>	    
>       </plugin>
>     </plugins>     
>   </build>



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)