Uploaded image for project: 'odlparent'
  1. odlparent
  2. ODLPARENT-250

SFT is failing without internet access

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 8.1.0
    • SFT
    • 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"
       
      

       

            Unassigned Unassigned
            rkosegi Richard Kosegi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: