Skip to content

Commit 5768a87

Browse files
committed
Benchmarks: move module to profile
There is no reason to build the benchmarks every time the reactor builds. It is a specialized project with a narrow scope of use.
1 parent 5aeff72 commit 5768a87

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
<module>scijava-function</module>
5454
<module>scijava-meta</module>
5555
<module>scijava-ops-api</module>
56-
<module>scijava-ops-benchmarks</module>
5756
<module>scijava-ops-engine</module>
5857
<module>scijava-ops-image</module>
5958
<module>scijava-ops-legacy</module>
@@ -267,6 +266,12 @@
267266
</pluginManagement>
268267
</build>
269268
<profiles>
269+
<profile>
270+
<id>benchmarks</id>
271+
<modules>
272+
<module>scijava-ops-benchmarks</module>
273+
</modules>
274+
</profile>
270275
<profile>
271276
<id>only-eclipse-incubator</id>
272277
<activation>

scijava-ops-benchmarks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ The following lines can be used to build and execute the benchmarks from the bas
99
```bash
1010
# Build the benchmarks module
1111
cd ..
12-
mvn clean install -pl scijava-ops-benchmarks -am
12+
mvn -P benchmarks clean install -pl scijava-ops-benchmarks -am
1313

1414
# Copy dependencies into target folder
1515
cd scijava-ops-benchmarks
16+
mvn dependency:copy-dependencies
1617

1718
# Execute the benchmarks
18-
mvn dependency:copy-dependencies
1919
java -cp "target/scijava-ops-benchmarks-0-SNAPSHOT.jar:target/dependency/*" org.openjdk.jmh.Main
2020
```
2121

0 commit comments

Comments
 (0)