0
をカスタマイズするプロファイルを定義私がポンポンで、次のプラグインがあります。のMaven POM - プラグインの設定
<plugin>
<groupId>com.github.klieber</groupId>
<artifactId>phantomjs-maven-plugin</artifactId>
<configuration>
<version>${phantomjs.version}</version>
<checkSystemPath>false</checkSystemPath>
<skip>${skipTests}</skip>
</configuration>
<executions>
<execution>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
を私はプラグインの設定をカスタマイズするために、新しいプロファイルを定義したいと思います:
<profile>
<id>enduserTest</id>
<properties>
<tomcat.version>8.0.39</tomcat.version>
<skipTests>true</skipTests>
</properties>
<build>
<defaultGoal>clean verify cargo:run</defaultGoal>
<plugins>
<plugin>
<groupId>com.github.klieber</groupId>
<artifactId>phantomjs-maven-plugin</artifactId>
<configuration>
<version>${phantomjs.version}</version>
<checkSystemPath>false</checkSystemPath>
</configuration>
<executions>
<execution>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
唯一の違いは、<skip>${skipTests}</skip>
行です。 mvn -PenduserTest
を実行したいが、設定が上書きされない。 アドバイスはありますか?これを行うにはよりよい解決策がありますか?それは正しい戦略ですか?
これらのプラグインをプロファイルの内側と外側の両方に定義すると機能しません。しかし、私がそれらのプラグインだけをプロファイルに定義すれば、うまく動作します。 –