-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
8.1.0
-
None
-
Apache Maven 3.6.3
OpenJDK 11.0.9.1 (Ubuntu)
No internet access, local Nexus proxy configured as <mirrorOf>*</mirrorOf>
When running SFT in environment without direct access to internet, it fails with error (from surefire-reports output, full log is attached):
Connect to repo1.maven.org:443 [repo1.maven.org/151.101.204.209] failed: connect timed out
We have settings.xml with <mirrors> section that is pointing to local Nexus server and this is working fine for maven itself (all plugins/dependencies are correctly downloaded during build). However pax is not respecting that setting and try to connect directly to maven central to fetch some of its dependencies.
If that matters, maven is invoked using these arguments:
mvn clean install \ -Dmaven.repo.local="${WORKSPACE}/.repository" \ -Dorg.ops4j.pax.url.mvn.localRepository="${WORKSPACE}/.repository"