[ 
http://jira.codehaus.org/browse/MWAR-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=203933#action_203933
 ] 

Johan Sjöberg commented on MWAR-211:
------------------------------------



Using <outputFileNameMapping> to control the name of the jar-file produced by 
the <archiveClasses> tag has _SERIOUS_ side effects. Sure, the jar-file 
produced from our sources are given the name, but so are also every other 
external dependency (declared by maven <dependency>...</dependency> tags). 

So again, I really propose a tag similar to 
<archiveName>myname.jar</archiveName>, to be able to control the name of the 
jar produced from the project sources. 



pom.xml excerpt using outputFileNameMapping: 

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.1-beta-1</version>
                <configuration>
                    <archiveClasses>true</archiveClasses>
                    
<outputFileNameMapping>prefix-${project.artifactId}-${project.version}.jar</outputFileNameMapping>
                </configuration>
            </plugin>

> Ability to rename a dependency's jar when putting it on the lib folder
> ----------------------------------------------------------------------
>
>                 Key: MWAR-211
>                 URL: http://jira.codehaus.org/browse/MWAR-211
>             Project: Maven 2.x WAR Plugin
>          Issue Type: New Feature
>            Reporter: Magno Machado Paulo
>         Attachments: TestMaven.rar
>
>
> Maven put on my 'lib' folder the jars of my project's dependencies named like 
> <artefactId>-<version>.jar
> This is a problem when we need to reference the jar filename from sourcecode, 
> because if we change the dependency version, we have to track all source code 
> references to it and correct them. This is the case when importing a taglib 
> into a jsp page
> It would be better if Maven put only <artefactId>.jar on the lib folder. And 
> even better if it let us use any custom name we want for the dependencies. If 
> no name is specified, then it could use the current pattern.

-- 
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


Reply via email to