Add profile to run benchmarks only when the `benchmark` property is set
</plugins>
</build>
</profile>
+ <!-- Profile to run benchmarks when the `benchmark` property is set -->
+ <profile>
+ <id>jmh-benchmark</id>
+ <activation>
+ <property>
+ <name>benchmark</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <includes>
+ <include>**/*Benchmark.java</include>
+ <include>**/Benchmark*.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
