Now Maven plugin detects a free port and makes Runner open it. If two Maven instances are started at the same time, same ports can be selected causing runner failure.
There are two ways to solve this problem:
- explicitly configure shutdownListener port for Maven plugin and make sure they are different for different instances of Maven (by Ivan)
- make Runner connect to a port opened by Maven plugin instead of opening it itself (this way we make port search/allocation atomic) (by Andrey)