Perhaps can we use the Maven plugin: exec-maven-plugin.
For exemple for the Petals ESB minimal, we can add something as following in its POM:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<executable>petals-esb.sh</executable>
<workingDirectory>${project.build.directory}/${project.build.finalName}/bin</workingDirectory>
<arguments>
<argument>-u</argument>
<argument>file://${project.build.directory}/${project.build.finalName}/conf/server.properties</argument>
</arguments>
<environmentVariables>
<JAVA_OPTS>-Dpetals.log.dir=${project.build.directory}/${project.build.finalName}/logs</JAVA_OPTS>
</environmentVariables>
</configuration>
</plugin>
I don't know why the arguments and env variables are required. Perhaps a problem with the classpath defined in the script 'petals-esb.sh'
Perhaps can we use the Maven plugin: exec-maven-plugin.
For exemple for the Petals ESB minimal, we can add something as following in its POM:
I don't know why the arguments and env variables are required. Perhaps a problem with the classpath defined in the script 'petals-esb.sh'