在其中,<profile>我们<activation>可以使用它来说明我们是否要运行该配置文件。
在我的一个部分中,标签下<profile>有许多不同的<execution>部分。<executions>但我只想<execution>运行<executions>.
我们可以选择制作<execution>部分参数吗?
我想要下面的东西:
<profile>
<executions>
<execution shouldExecute="${shouldExecute_1.true}">
</execution>
<execution shouldExecute="${shouldExecute_2.true}">
</execution>
<executions>
上面是描述 maven 的 pom.xml 的虚拟部分
所以 if shouldExecute_1.true = trueand shouldExecute_2.true = falsethen 只有第一个执行块会运行。