Thanks for the response. I have another question about this.
What can I do to change de JAVA_HOME using assmble goal to generate a program, not a daemon? Example: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>appassembler-maven-plugin</artifactId> <version>1.7</version> <executions> <execution> <phase>package</phase> <goals> <goal>assemble</goal> </goals> </execution> </executions> <configuration> <copyConfigurationDirectory>true</copyConfigurationDirectory> <configurationDirectory>config</configurationDirectory> <repositoryLayout>flat</repositoryLayout> <programs> <program> <mainClass>es.amplia.delivery.packaging.database.migrationtool.DBMigrator</mainClass> <id>app</id> </program> </programs> </configuration> </plugin> Best Regards, 2014-01-30 Karl Heinz Marbaise <khmarba...@gmx.de>: > Hi, > > > > I'm using appassembler-maven-plugin and I want to set into the JSW file > >> the value of the JAVA_HOME because the servers where I have to install >> not always has the JAVA_HOME available. >> >> Is there any way to do it into the plugin? >> > > If not you can define a pre wrapper script part which is inserted at the > beginning of the wrapper.conf file. > > <configuration> > <configurationDirectory>conf</configurationDirectory> > <daemons> > <daemon> > <id>daemon-1</id> > > <mainClass>org.codehaus.mojo.appassembler.example.helloworld.HelloWorld</ > mainClass> > <platforms> > <platform>jsw</platform> > </platforms> > <endorsedDir>test</endorsedDir> > > <preWrapperConf>${project.basedir}/src/pre-wrapper/ > snippet.txt</preWrapperConf> > </daemon> > </daemons> > </configuration> > > which will result in having in the wrapper.conf: > > #include me^M > #include metoo > #******************************************************************** > # Wrapper Properties > #******************************************************************** > # Java Application > wrapper.java.command=java > wrapper.working.dir=.. > ... > > where you can define the JAVA_HOME as far as i know (I don't know the JSW > so good...)... > > May be the following is simpler: > > You can also define configuration elements like the following: > > <generatorConfigurations> > <generatorConfiguration> > <generator>jsw</generator> > <includes> > <include>linux-x86-32</include> > <include>linux-x86-64</include> > </includes> > <configuration> > <property> > > <name>configuration.directory.in.classpath.first</name> > <value>etc</value> > </property> > <property> > <name>set.default.REPO_DIR</name> > <value>lib</value> > </property> > > ... > where you can of course change entries or overwrite them with appropriate > values. > http://mojo.codehaus.org/appassembler/appassembler- > maven-plugin/usage-daemon-generatorconfig.html > > > Kind regards > Karl Heinz Marbaise > Mojo Team > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- amplía))) David Fernández González Software Engineer eMail: david.fernan...@amplia.es <email%3adavid.fernan...@amplia.es> http://www.amplia.es c/ López de Hoyos 327, 28043 - Madrid Tfn: +34 917 160 172 Fax: +34 917 160 173 *Este mensaje y, en su caso, cualquiera de sus anexos pueden contener información confidencial para uso exclusivo del destinatario, quedando prohibida su divulgación a terceros, así como su utilización o copia por parte de éstos, sin la autorización expresa del remitente. Si recibe este mensaje por error, se ruega lo notifique al remitente y proceda a su eliminación. Gracias por su colaboración.* *The contents of this email and any attachments may be confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient, unless otherwise expressly authorised by the sender. If this email is received in error, please notify the sender and then delete it. Thank you for your cooperation.*