Github user MikeThomsen commented on the issue:
https://github.com/apache/nifi/pull/2113
I set up a profile called integration-tests and renamed the file to
JsonQueryElasticsearch_IT. It runs really well from the project folder, but for
some reason running `mvn clean install -Pintegration-tests -pl
:nifi-elasticsearch-5-processors` from the root folder causes surefire to be
run twice (the first time passing, the second time failing because it stops
ElasticSearch in between the two runs). When run from
nifi-elasticsearch-5-processors it executes as expected.
---