app-schema HttpConfigTest fails if port 8080 is busy

Description

Found it building geotools while having a GeoServer running locally. Tried several times, it fails every time, looks like the port has not been randomized and re-attempted?

Looks there is a special Server constructor accepting port "zero" that can be used in HttpStaticServer for this purpose:
https://stackoverflow.com/questions/8884865/how-to-discover-embedded-jetty-port-after-requesting-random-available-port

Environment

None

Assignee

Nuno Oliveira

Reporter

Andrea Aime

Triage

None

Components

Fix versions

Priority

Medium
Configure