I have a Question about the Exec
Maven Plugin.
I want to execute my setup.iss
file (generated with Inno Setup) with the exec maven plugin.
One question: Should I define a path for my file in my pom or in which destination the setup.iss has to be put for maven to find it?
Here is the code from my pom:
<profiles>
<profile>
<id>exec</id>
<activation>
<property>
<name>exec</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>de.audi.analysis.main.Main</mainClass>
<executable>ISCC.exe</executable>
<workingDirectory></workingDirectory>
<arguments>
<argument>firstsetup.iss</argument>
</arguments>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
The exec-maven-plugin is simply calling the iscc.exe with the arguments you provide. In this instance the plugin would execute
iscc.exe firstsetup.iss
I believe it assumes the firstsetup.iss will be in the ${project.basedir} of the maven project (where the pom.xml is) or the workingDirectory if provided. A specific file path can be passed with argument as well.
<argument>${project.basedir}/<some-path>/firstsetup.iss</argument>