[ 
http://jira.codehaus.org/browse/MASSEMBLY-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235598#action_235598
 ] 

Luca commented on MASSEMBLY-327:
--------------------------------

no news on this issue? 
I suppose plexus-archiver must be enhanced for use interpolation or return the 
list of extracted files. 
A workaround could be: 

<dependencySets>
        <dependencySet>
                <useProjectArtifact>false</useProjectArtifact>
                <includes>
                        <include>my.group:myartifact</include>
                </includes>
                
<outputDirectory>${project.build.directory}/assembly-tmp</outputDirectory>
                <unpack>true</unpack>
                <unpackOptions>
                        <filtered>true</filtered><!-- ignored -->
                </unpackOptions>
        </dependencySet>
</dependencySets>
</fileSets>
        <fileSet>
                <directory>${project.build.directory}/assembly-tmp</directory>
                <outputDirectory>.</outputDirectory>
                <filtered>true</filtered>
                <includes>
                        <include>**</include>
                </includes>
        </fileSet>
</fileSets>

the problem is that the plugin reorder the sets and moves fileSets before 
dependencySets.

> Using filtered within dependencySet unpackOptions
> -------------------------------------------------
>
>                 Key: MASSEMBLY-327
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-327
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>            Reporter: Andy Yeung
>
> The files within the unpacked jar did not apply the filters defined.
> pom configuration includes
>                               <configuration>
>                                       <filters>
>                                               
> <filter>src/assemble/filter.properties</filter>
>                                       </filters>
>                               </configuration>
> which contains 
>    storage.id=abcde
> assembly.xml defines dependency set
>               <dependencySet>
>                       <outputDirectory>/snp-agent1</outputDirectory>
>                       <unpack>true</unpack>
>                       <unpackOptions>
>                               <filtered>true</filtered>
>                       </unpackOptions>
>                       <scope>runtime</scope>
>                       <includes>
>                               <include>
>                                       XXX.agent:agent-ear-config
>                               </include>
>                       </includes>
>               </dependencySet>
> However, the files within are not filtered.

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