Change By: Dennis Lundberg (23/Oct/12 3:24 AM)
Description: When the two goals create-repository and generate-daemons are used, it is often useful to have both generate files in the same output folder. This is for example necessary to implement defaults in unix-maven-plugin.  

 

Now I have the following config  which seems to work:  

 

{code:xml}
<plugin>

        <groupId>org.codehaus.mojo</groupId>

        <artifactId>appassembler-maven-plugin</artifactId>

        <configuration>

          <repositoryLayout>flat</repositoryLayout>

          <includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>

          <target>${appassemblerTarget}</target>

          <assembleDirectory>${appassemblerAssembleDirectory}</assembleDirectory>

          <repoPath>lib</repoPath>



          <defaultJvmSettings>

            <initialMemorySize>${initialMemorySize}</initialMemorySize>

            <maxMemorySize>${maxMemorySize}</maxMemorySize>



            <systemProperties>

              <systemProperty>user.timezone=UTC</systemProperty>

            </systemProperties>

          </defaultJvmSettings>



          <daemons>

            <daemon>

              <id>${rpm.appname}</id>

              <mainClass>${mainClass}</mainClass>

              <commandLineArguments>

                <commandLineArgument>start</commandLineArgument>

              </commandLineArguments>

              <platforms>

                <platform>jsw</platform>

              </platforms>

              <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>

                    <property>

                      <name>wrapper.logfile</name>

                      <value>logs/wrapper.log</value>

                    </property>

                    <property>

                      <name>run.as.user.envvar</name>

                      <value>${rpm.username}</value>

                    </property>

                  </configuration>

                </generatorConfiguration>

              </generatorConfigurations>

            </daemon>

          </daemons>

        </configuration>

        <executions>

          <execution>

            <phase>generate-resources</phase>

            <goals>

              <goal>create-repository</goal>

              <goal>generate-daemons</goal>

            </goals>

          </execution>

        </executions>

      </plugin>



 <properties>

    <rpm.appname>${pom.artifactId}</rpm.appname>



    <appassemblerTarget>${project.build.directory}/appassembler</appassemblerTarget>

    <appassemblerAssembleDirectory>${appassemblerTarget}/jsw/${rpm.appname}</appassemblerAssembleDirectory>



  </properties>



{code}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to