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 2010/09/23 18:44:35 UTC
[jira] Closed: (MASSEMBLY-253) It would be nice to support assembly
descriptors from classpath
[ http://jira.codehaus.org/browse/MASSEMBLY-253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MASSEMBLY-253.
--------------------------------
Resolution: Not A Bug
Fix Version/s: 2.2-beta-6
Assignee: John Casey
See:
http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It would be nice to support assembly descriptors from classpath
> ---------------------------------------------------------------
>
> Key: MASSEMBLY-253
> URL: http://jira.codehaus.org/browse/MASSEMBLY-253
> Project: Maven 2.x Assembly Plugin
> Issue Type: Improvement
> Environment: mvn 2.0.7
> jdk1.5
> winxp
> Reporter: Andreas Höhmann
> Assignee: John Casey
> Priority: Minor
> Fix For: 2.2-beta-6
>
>
> for multi-projects it would be nice if i can define a single distribution file for all subprojects.
> (see http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html)
> a example:
> 1. project-structur
> parent-project (pom)
> build-tools (jar)
> sub-module 1 (pom)
> sub-module 1.1 (jar)
> sub-module 1.2 (war)
> sub-module 2 (pom)
> sub-module 2.1 (jar)
> 2. the distribution.xml in /parent-project/build-tools/src/main/resources/
> <assembly>
> <id>distribution</id>
> <formats>
> <format>zip</format>
> </formats>
> <includeBaseDirectory>false</includeBaseDirectory>
> <moduleSets>
> <moduleSet>
> <sources>
> <includeModuleDirectory>false</includeModuleDirectory>
> <fileSets>
> <fileSet>
> <outputDirectory>sources/${artifactId}</outputDirectory>
> <excludes>
> <exclude>target</exclude>
> <exclude>.project</exclude>
> <exclude>.classpath</exclude>
> <exclude>.settings</exclude>
> <exclude>.checkstyle</exclude>
> <exclude>src/main/doc</exclude>
> <exclude>src/main/site</exclude>
> </excludes>
> <includes>
> <include>src/main/java/**</include>
> <include>src/main/resources/**</include>
> <include>src/main/webapp/**</include>
> </includes>
> </fileSet>
> </fileSets>
> </sources>
> <binaries>
> <outputDirectory>binary</outputDirectory>
> <includeDependencies>true</includeDependencies>
> <unpack>false</unpack>
> </binaries>
> </moduleSet>
> </moduleSets>
> </assembly>
> 3. the parent-project/pom.xml
> <build>
> <extensions>
> <extension>
> <groupId>de.ahoehma.test</groupId>
> <artifactId>build-tools</artifactId>
> <version>1.0-SNAPSHOT</version>
> </extension>
> </extensions>
> ...
> <plugins>
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <configuration>
> <descriptors>
> <descriptor>distribution.xml</descriptor>
> </descriptors>
> <appendAssemblyId>false</appendAssemblyId>
> <outputDirectory>${distribution.dir}</outputDirectory>
> <finalName>${distribution.name}</finalName>
> </configuration>
> </plugin>
> ...
> so i can build a distribution inside the parent-project:
> 'mvn clean package assembly:assembly'
> this distribution contains all source/binaries (defined in distribution.xml) for all submodules
> and i can go into sub-module 1
> 'mvn clean package assembly:assembly'
> this distribution contains all source/binaries (defined in distribution.xml) *only* for the submodule 1
--
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