[英]Want to compile Inno Setup (.iss file) with Maven Plugin Exec
我對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>
exec-maven-plugin只是使用您提供的參數調用iscc.exe。 在這種情況下,插件將執行iscc.exe firstsetup.iss
我相信它假設firstsetup.iss將在maven項目的$ {project.basedir}(在pom.xml所在的位置)或workingDirectory(如果提供)中。 特定的文件路徑也可以使用參數傳遞。
<argument>${project.basedir}/<some-path>/firstsetup.iss</argument>
問題是我必須將所有dll添加到我的解決方案中。 添加所有inno dll文件后,它可以正常工作,並且我獲得了構建成功。 謝謝您的回答,亞當。 這是我的pom配置:
<configuration>
<executable>src/main/resources/innosetup/ISCC.exe</executable>
<workingDirectory>src/main/resources/innosetup</workingDirectory>
<arguments>
<argument>audience-setup1.iss</argument>
</arguments>
</configuration>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.