You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2007/08/15 23:45:47 UTC

[jira] Updated: (MASSEMBLY-222) 2.2-beta-1 regression in assembly descriptor interpolation

     [ http://jira.codehaus.org/browse/MASSEMBLY-222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MASSEMBLY-222:
---------------------------------

    Fix Version/s: 2.2-beta-2

We probably need a richer expression syntax to resolve this. At times, it's desirable to include info from each included dependency artifact in this sort of field, instead of using the information from the project. I'll plan on implementing this as ${pom.version} for project info, ${artifact.version} for artifact info, and make ${version} point to ${pom.version} for backward compat.

> 2.2-beta-1 regression in assembly descriptor interpolation
> ----------------------------------------------------------
>
>                 Key: MASSEMBLY-222
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-222
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-1
>            Reporter: Max Bowsher
>            Priority: Blocker
>             Fix For: 2.2-beta-2
>
>
> I have found a significant change in behaviour between 2.1 and 2.2-beta-1, using the following assembly descriptor:
> {code:xml}
> <assembly>
>   <id>dist</id>
>   <formats>
>     <format>tar.gz</format>
>   </formats>
>   <includeBaseDirectory>no</includeBaseDirectory>
>   <fileSets>
>     <fileSet>
>       <outputDirectory>/foobar-${version}</outputDirectory>
>       <includes>
>         <include>README.txt</include>
>         <include>changelog.txt</include>
>         <include>java.policy</include>
>       </includes>
>     </fileSet>
>     <fileSet>
>       <directory>target</directory>
>       <outputDirectory>/foobar-${version}/jars</outputDirectory>
>       <includes>
>         <include>foobar-${version}.jar</include>
>       </includes>
>     </fileSet>
>     <fileSet>
>       <directory>src/main/scripts</directory>
>       <outputDirectory>/foobar-${version}/bin</outputDirectory>
>       <fileMode>0755</fileMode>
>     </fileSet>
>   </fileSets>
>   <dependencySets>
>     <dependencySet>
>       <outputDirectory>/foobar-${version}/jars</outputDirectory>
>       <unpack>false</unpack>
>     </dependencySet>
>   </dependencySets>
> </assembly>
> {code}
> Using 2.1, ${version} interpolates with the version of the project being assembled.
> Using 2.2-beta-1, the ${version} in the <dependencySet> interpolates with the version of each individual dependency, leading to the <depenencySet> being scattered across many directories.

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