---------- Forwarded message ----------
From: w ostrowski <[email protected]>
Date: 2011/3/12
Subject: Maven multi module project assembling problem
To: [email protected]
Cc: [email protected]
Hi everyone,
I have an issue with assembly plugin and I'm working with this few days now.
My project looks like this:
root-parent [<packing>pom</packing>]
- GameI-parent [<packing>pom</packing>]
- GameIFramework [<packing>jar</packing>]
- GameIDesktop [<packing>jar</packing>]
- GameII-parent [<packing>pom</packing>]
- GameIIFramework [<packing>jar</packing>]
- GameIIDesktop [<packing>jar</packing>]
- dist
What I wont to achive is to collect all 'target' folders from all submodules
into dist folder of root-parent so I can zip it and deliver to customer as
an installation package (Each target folder contains insallation script).
The structure of dist content will look as follows:
- dist
- GameI-parent_GameIFramework.zip (with contents of GameIFramework
target folder)
- GameI-parent_GameIDesktop.zip (with contents of GameIDesktop
target folder)
- GameII-parent_GameIIFramework.zip (with contents of
GameIIFramework target folder)
- GameII-parent_GameIIDesktop.zip (with contents of GameIIDesktop
target folder)
Is it possible with assembly plugin? Or maybe any of you know some other way
to collects all target folders and create distribution package.
In attachement there is my assembly description file. It is placed in my
root-parent directory.
Best regards
W.O.
--
Pozdrawiam / Best regards
Wojciech Ostrowski
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>bin</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>
</dependencySets>
<moduleSets>
<moduleSet>
<includes>
<include>pl.assembly.tysiac:TysiacDesktop</include>
</includes>
<!--
<excludes>
<exclude>pl.assembly:assembly-parent</exclude>
</excludes>
-->
<sources>
<excludeSubModuleDirectories>false</excludeSubModuleDirectories>
<includeModuleDirectory>false</includeModuleDirectory>
<fileSets>
<fileSet>
<outputDirectory>${module.parent.artifactId}/${module.artifactId}</outputDirectory>
<includes>
<include>target/**</include>
</includes>
</fileSet>
</fileSets>
</sources>
</moduleSet>
</moduleSets>
</assembly>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]