On Tue, Apr 28, 2009 at 6:57 PM, Raymond Feng <[email protected]> wrote: > Hi, > > Here is what I did to get the same zip using the maven-assembly-plugin: > > 1) Configure the tuscany-zip-plugin in the pom.xml for the archetype > (https://svn.apache.org/repos/asf/tuscany/java/sca/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml) > > <plugin> > <artifactId>maven-assembly-plugin</artifactId> > <configuration> > <descriptors> > <descriptor>src/main/assembly/zip.xml</descriptor> > </descriptors> > </configuration> > </plugin> > > 2) Add the assembly descriptor (src/main/assembly/zip.xml) to the archetype: > <assembly> > <id>zip-contribution</id> > <formats> > <format>zip</format> > </formats> > <includeBaseDirectory>false</includeBaseDirectory> > <dependencySets> > <dependencySet> > <unpack>false</unpack> > <scope>runtime</scope> > <outputDirectory>lib</outputDirectory> > <useProjectArtifact>false</useProjectArtifact> > </dependencySet> > </dependencySets> > <fileSets> > <fileSet> > <directory>${project.build.outputDirectory}</directory> > <outputDirectory>/</outputDirectory> > </fileSet> > </fileSets> > </assembly> >
But Raymond, requiring the user project include extra files that aren't related to their sca contribution was exactly what i was trying to avoid. This is in effect doing the same as the zip plugin but instead of having it hidden away in some Tuscany plugin code now every user project would need to include it. The pre-defined descriptors approach you mentioned first seemed good, if we could get that to work it would solve this. Do you know if there is any way to include a predefined descriptor that does what we need in some Tuscany module that a user build script can refer to with a descriptorRef element? ...ant
