Why are benchmarks running when i mvn -pl a different module?

Chris seahen123 at gmail.com
Wed Sep 6 20:43:10 UTC 2017


I have my benchmarks and the rest of my code in two sibling modules, called
benchmark and betterrandom respectively. When I run

#!/bin/sh
cd betterrandom
mvn -pl betterrandom jacoco:prepare-agent test jacoco:report &&\
if [ "$TRAVIS" = "true" ]; then
  mvn coveralls:report
fi
cd ..

Maven tries to run the benchmarks as well! Why is this happening, and how
do I stop it? All my pom.xml's are at
https://github.com/Pr0methean/betterrandom.


More information about the jmh-dev mailing list