に<profile>は<activation>、そのプロファイルを実行するかどうかを指定するために使用できる which があります。
私の 1 つのセクションには、タグの下に<profile>さまざまなセクションがあります。しかし、下にあるすべてのセクションのうち、いくつかのセクションのみを実行したいと考えています。<execution><executions><execution><executions>
<execution>セクション パラメータを作成するオプションはありますか?
私は以下のようなものが欲しい:
<profile>
<executions>
<execution shouldExecute="${shouldExecute_1.true}">
</execution>
<execution shouldExecute="${shouldExecute_2.true}">
</execution>
<executions>
上記は、maven の pom.xml を説明するダミー セクションです。
したがって、shouldExecute_1.true = true最初shouldExecute_2.true = falseの実行ブロックのみが実行されます。