In <profile>
we have <activation>
which we can use to say whether we want to run that profile.
In my one <profile>
section there are many different <execution>
sections under <executions>
tag. But I want to run only few <execution>
sections out of all present under <executions>
.
Do we have any option to make <execution>
section parameter?
I want something like below:
<profile>
<executions>
<execution shouldExecute="${shouldExecute_1.true}">
</execution>
<execution shouldExecute="${shouldExecute_2.true}">
</execution>
<executions>
Above is the dummy section describing maven's pom.xml
so if shouldExecute_1.true = true
and shouldExecute_2.true = false
then only first execution block will run.