POMがあります:
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://maven.apache.org/POM/4.0.0">
{...}
<properties>
<skipTests>false</skipTests>
<skipTestExecution>false</skipTestExecution>
<skipSpecTests>${skipTests}</skipSpecTests>
<skipSpecTestExecution>${skipTestExecution}</skipSpecTestExecution>
</properties>
{...}
<profiles>
<profile>
<id>no-test-compile</id>
<activation>
<property>
<name>skipSpecTests</name>
<value>true</value>
</property>
</activation>
</profile>
</profiles>
</project>
skipTests プロパティを介してテストコンパイルなしのプロファイルを有効にすることはできますか? もちろん、skipTests アクティベーション プロパティを使用して新しい 1 つのプロファイルを作成することもできますが、もっとエレガントな方法があると思います。ありがとう。
PS 明示的なプロファイル定義は望ましくありません。