私のプロジェクトには、親 pom といくつかのサブモジュール pom があります。インストーラ配布可能ファイルのビルドを担当するプラグインを親に入れました (install4j を使用)。このプラグインをサブモジュールで実行するのは意味がないので、以下に示すように、プラグインの構成に false を入れました。問題は、実行すると、親でプラグインmvn clean install install4j:compile <other variables here>
をクリーンアップ、コンパイル、および実行しinstall4j
ますが、子モジュールでプラグインを実行しようとしてクラッシュすることです。
プラグイン構成はこちら
<plugin>
<groupId>com.google.code.maven-install4j</groupId>
<artifactId>maven-install4j-plugin</artifactId>
<version>0.1.1</version>
<inherited>false</inherited>
<configuration>
<executable>${devenv.install4jc}</executable>
<configFile>${basedir}/newinstaller/ehd-demo.install4j</configFile>
<releaseId>${project.version}</releaseId>
<attach>false</attach>
<skipOnMissingExecutable>true</skipOnMissingExecutable>
</configuration>
</plugin>
の目的を誤解していinherited=false
ますか? これを機能させる正しい方法は何ですか?
Maven 2.2.0 を使用しています。