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

Michael Hinterseher commented on MASSEMBLY-550:
-----------------------------------------------

My colleague found a work around:
Define two execution phases in the plugin configuration and configure the 
plugin appropriate.
Still I think some of the plugin configuration should also be available in the 
assembly descriptors.
Example:
                        <plugin>
                                <artifactId>maven-assembly-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <phase>test</phase>
                                                <goals>
                                                        <goal>single</goal>
                                                </goals>
                                                <configuration>
                                                        
<finalName>target-platform</finalName>
                                                        
<appendAssemblyId>false</appendAssemblyId>
                                                        <descriptors>
                                                                
<descriptor>src/main/assembly/target-platform.xml</descriptor>
                                                        </descriptors>
                                                </configuration>
                                        </execution>
                                        <execution>
                                                <phase>package</phase>
                                                <goals>
                                                        <goal>single</goal>
                                                </goals>
                                                <configuration>
                                                        <descriptors>
                                                                
<descriptor>src/main/assembly/bin-win32-win32.xml</descriptor>
                                                        </descriptors>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>


> Add "appendAssemblyId" and "finalName" to assembly descriptor
> -------------------------------------------------------------
>
>                 Key: MASSEMBLY-550
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-550
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2.1
>         Environment: any
>            Reporter: Michael Hinterseher
>            Priority: Minor
>
> We have a project with two assembly descriptors.
> One creates a zip file, the other one a folder.
> The folder should have a fixed name "target-platform" the zip file should not 
> attach the classifier from assembly id.
> Right now I see no way to create the folder without the version information 
> and the zip file without appending the assembly id since the configuration 
> for this is only possible in the plugin.
> Adding the parameters and maybe others would make the plugin more flexible.

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