You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Frank Lynch (JIRA)" <ji...@codehaus.org> on 2013/09/18 16:54:52 UTC

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

Frank Lynch created MRAR-33:
-------------------------------

             Summary: 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 the typically are. 
             eg: maven-artifact01-1.0-SNAPSHOT.jar

no-version - dependencies will have their version information removed when 
             included in the resulting rar. 
             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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira