私はここにある私のプロジェクトでinstall4jにmavenプラグインを使用しています。このプラグインを使用すると、セクションを使用して変数をinstall4jに渡すことができます<compilerVariables>
。これが私のpomの関連セクションです:
<plugin>
<groupId>com.google.code.maven-install4j</groupId>
<artifactId>maven-install4j-plugin</artifactId>
<version>0.1.1</version>
<configuration>
<executable>${devenv.install4jc}</executable>
<configFile>${basedir}/newinstaller/ehd.install4j</configFile>
<releaseId>${project.version}</releaseId>
<attach>false</attach>
<skipOnMissingExecutable>false</skipOnMissingExecutable>
<compilerVariables>
<property>
<name>m2_home</name>
<value>${settings.localRepository}</value>
</property>
</compilerVariables>
</configuration>
</plugin>
問題は、プラグインを実行したときに${settings.localRepository}が実際のディレクトリに置き換えられていないことです。install4jが生成するコマンドラインスクリプトは次のとおりです。
[INFO] Running the following command for install4j compile: /bin/sh -c /home/zach/install4j/bin/install4jc --release=9.1-SNAPSHOT --destination="/home/zach/projects/java/ehdtrunk/target/install4j" -D m2_home=${settings.localRepository} /home/zach/projects/java/ehdtrunk/newinstaller/ehd.install4j
これはプラグインのせいですか?もしそうなら、置換が行われるようにするために何を変更する必要がありますか?