Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-3038

Quarkus mvnw times out in disconnected environment

    XMLWordPrintable

Details

    • Hide
      Show
      Authenticate at https://devspaces-openshift-workspaces.apps.crw-airgap-v10.crw-qe.com Start a Quarkus devfile Open a new terminal and `source ~/init-truststore.sh` Try to launch a build command
    • Workaround Exists
    • Hide

      If you have a problem with Maven Wrapper in disconnected environment, replace ./mvnw with mvn in commands.
      For example for 1-package command: mvn package

      Show
      If you have a problem with Maven Wrapper in disconnected environment, replace . /mvnw with mvn in commands. For example for 1-package command: mvn package
    • Hide
      = Maven `mvnw` might time out in disconnected environments

      Users running `mvnw` in disconnected or restricted environments might encounter a timeout error.

      .Workaround

      * Execute commands manually in the `tools` terminal using `mvn` rather than `mvnw`.
      Show
      = Maven `mvnw` might time out in disconnected environments Users running `mvnw` in disconnected or restricted environments might encounter a timeout error. .Workaround * Execute commands manually in the `tools` terminal using `mvn` rather than `mvnw`.
    • Documented as Known Issue

    Description

      When trying to build a Quarkus project in disconnected environment, the mvnw wrapper fails to execute

      [user@workspace35cd290dd5ee4632-7c789b75f6-5nl7l getting-started]$ ./mvnw 
      Exception in thread "main" java.net.ConnectException: Connection timed out (Connection timed out)
              at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
              at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
              at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
              at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
              at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
              at java.base/java.net.Socket.connect(Socket.java:609)
              at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:305)
              at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
              at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
              at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
              at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
              at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266)
              at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:373)
              at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:203)
              at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
              at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
              at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:189)
              at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592)
              at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
              at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
              at org.apache.maven.wrapper.DefaultDownloader.downloadInternal(DefaultDownloader.java:90)
              at org.apache.maven.wrapper.DefaultDownloader.download(DefaultDownloader.java:76)
              at org.apache.maven.wrapper.Installer.createDist(Installer.java:72)
              at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:121)
              at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:61) 

      Attachments

        Activity

          People

            vsvydenk Valerii Svydenko
            tdancs Tibor Dancs
            Max Leonov Max Leonov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: