You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When multiple Maven instances are running at the same time, for example, when using git flow finish release, CI will build branches and tags at the same time. The two executions will use the same minPortNumber and maxPortNumber configurations to find ports. At this time, there is a high probability that the same port will be found, but in the end only one instance can be listened to, and the other will fail. Is there a similar locking mechanism to ensure that multiple instances across processes obtain exclusive port usage rights, or can I only introduce a retry mechanism to run the entire Maven instance?
The following is an extreme example, where 2 out of 3 ports are found. If two Maven instances are run at the same time, one of the ports will inevitably be found by both.
[INFO]
[INFO] --- build-helper-maven-plugin:3.6.0:reserve-network-port (reserve-tomcat-port) @ test-boot ---
[INFO] Port assigned 38773
[INFO] Reserved port 38773 for random.jmx.port
[INFO] Port assigned 38771
[INFO] Reserved port 38771 for tomcat.http.port
[INFO]
[INFO] --- build-helper-maven-plugin:3.6.0:reserve-network-port (reserve-tomcat-port) @ test-boot ---
[INFO] Port assigned 38772
[INFO] Reserved port 38772 for random.jmx.port
[INFO] Port assigned 38771
[INFO] Reserved port 38771 for tomcat.http.port
The text was updated successfully, but these errors were encountered:
When multiple Maven instances are running at the same time, for example, when using git flow finish release, CI will build branches and tags at the same time. The two executions will use the same minPortNumber and maxPortNumber configurations to find ports. At this time, there is a high probability that the same port will be found, but in the end only one instance can be listened to, and the other will fail. Is there a similar locking mechanism to ensure that multiple instances across processes obtain exclusive port usage rights, or can I only introduce a retry mechanism to run the entire Maven instance?
The following is an extreme example, where 2 out of 3 ports are found. If two Maven instances are run at the same time, one of the ports will inevitably be found by both.
The text was updated successfully, but these errors were encountered: