Thanks a lot, very usefull trick. Latest JSW delta-pack is still 3.3.6 ? (http://repo1.maven.org/maven2/tanukisoft/wrapper-delta-pack/3.3.6/)
2011/2/3 Trygve Laugstøl <tryg...@codehaus.org>: > On 2/2/11 10:38 PM, Henri Gomez wrote: >>> >>> OK, thanks. >> >> Questions : >> >> - Plan to update to JSW 3.5.7 ? > > appassembler is stuck at the current JSW version to remain BSD compatible. > The latest JSW releases use more restrictive licenses and are not in the > Maven repository. > > However you can do it yourself with something like this (which I did to add > 64Bit support on OSX): > > Add the dependency on the JSW binary: > > <dependency> > <groupId>tanukisoft</groupId> > <artifactId>wrapper-delta-pack</artifactId> > <version>3.2.3</version> > <type>tar.gz</type> > <scope>provided</scope> > </dependency> > > Use the dependency plugin to unpack the JSW binaries: > > <plugin> > <artifactId>maven-dependency-plugin</artifactId> > <executions> > <execution> > <phase>package</phase> > <goals> > <goal>unpack</goal> > </goals> > </execution> > </executions> > <configuration> > <artifactItems> > <artifactItem> > <groupId>tanukisoft</groupId> > <artifactId>wrapper-delta-pack</artifactId> > <type>tar.gz</type> > <outputDirectory>${project.build.directory}</outputDirectory> > </artifactItem> > </artifactItems> > </configuration> > </plugin> > > Use the appassembler plugin to pack it all up: > > <plugin> > <artifactId>maven-assembly-plugin</artifactId> > <executions> > <execution> > <phase>package</phase> > <goals> > <goal>single</goal> > </goals> > </execution> > </executions> > <configuration> > <descriptors> > <descriptor>src/main/assembly/bin.xml</descriptor> > </descriptors> > </configuration> > </plugin> > > Assembly descriptor: > > <assembly > xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 > http://maven.apache.org/xsd/assembly-1.1.0.xsd"> > <id>bin</id> > <formats> > <format>tar.gz</format> > </formats> > <fileSets> > <!-- Appassembler generated files --> > <fileSet> > > <directory>${project.build.directory}/generated-resources/appassembler/jsw/head-server/</directory> > <outputDirectory>/</outputDirectory> > <includes> > <include>conf/**</include> > <include>lib/wrapper.jar</include> > </includes> > </fileSet> > <fileSet> > > <directory>${project.build.directory}/generated-resources/appassembler/jsw/head-server</directory> > <outputDirectory>/</outputDirectory> > <fileMode>0755</fileMode> > <includes> > <include>bin/head-server</include> > <include>bin/head-server.bat</include> > </includes> > </fileSet> > > <!-- Appassembler repository --> > <fileSet> > <directory>${project.build.directory}/appassembler/</directory> > <outputDirectory>/</outputDirectory> > <includes> > <include>repo/**</include> > </includes> > </fileSet> > > <!-- Extra files from the Java Service Wrapper bundle --> > <fileSet> > > <directory>${project.build.directory}/wrapper-delta-pack-3.2.3/bin</directory> > <outputDirectory>bin</outputDirectory> > <fileMode>0755</fileMode> > </fileSet> > <fileSet> > > <directory>${project.build.directory}/wrapper-delta-pack-3.2.3/lib</directory> > <outputDirectory>lib</outputDirectory> > </fileSet> > > <!-- Hand crafted stuff --> > <fileSet> > <directory>${basedir}/src/main/assembly/root</directory> > <outputDirectory>/</outputDirectory> > </fileSet> > </fileSets> > </assembly> > > -- > Trygve > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email