今天我將簽名過程集成到了我們的項目中。它工作正常。現在,我試圖在Maven的插件禁用簽名過程:install4j 5.1.5 - 簽名:禁用命令行或maven插件不可能
<plugin>
<groupId>org.sonatype.install4j</groupId>
<artifactId>install4j-maven-plugin</artifactId>
<version>1.0.5</version>
<executions>
<execution>
<id>build-installer</id>
<phase>prepare-package</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<projectFile>${project.build.outputDirectory}/${install4j.projectFile}</projectFile>
<destination>${project.build.directory}/installer</destination>
<disableSigning>${disableSigning}</disableSigning>
<!-- password for keystore has to be set as system property -->
<winKeystorePassword>${certificate.keystore.psw}</winKeystorePassword>
</configuration>
</execution>
</executions>
</plugin>
然後我打電話了Maven構建使用下面的命令:
mvn clean prepare-package -DdisableSigning=true
,並得到了以下錯誤消息:
[INFO] --- install4j-maven-plugin:1.0.5:compile (build-installer) @ ForumViewerInstaller ---
[INFO] install4j: Unknown option '--disable-signing'
[INFO] Usage: install4jc [OPTIONS] [config file]
[INFO] Try 'install4jc --help for more information'
看起來maven-plugin與install4j 5不兼容,是嗎?或者這可能是我的install4j配置的問題?
感謝您的任何溶液
哈迪
我試過'install4jc.exe -u'選項,並且工作正常。但是當我切換到'install4jc.exe --disable-signing'時,我得到了與我們的maven版本相同的錯誤。也許這是一個命令行參數的映射問題? – Hardie82