【发布时间】:2019-04-18 14:52:32
【问题描述】:
我有一个关于 Exec Maven 插件的问题。
我想使用 exec maven 插件执行我的 setup.iss 文件(使用 Inno Setup 生成)。
一个问题:我应该在我的 pom 中为我的文件定义一个路径,还是必须将 setup.iss 放在哪个目的地才能让 maven 找到它?
这是我的 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>
【问题讨论】:
标签: java maven inno-setup exec-maven-plugin