You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2019/11/16 09:06:00 UTC

[jira] [Updated] (KARAF-6288) Sporadic read timeout resolving maven dependencies

     [ https://issues.apache.org/jira/browse/KARAF-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-6288:
----------------------------------------
    Fix Version/s: 4.2.8
                   4.3.0

> Sporadic read timeout resolving maven dependencies
> --------------------------------------------------
>
>                 Key: KARAF-6288
>                 URL: https://issues.apache.org/jira/browse/KARAF-6288
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.4
>            Reporter: János Csikós
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.3.0, 4.2.8
>
>
> h2. Descrition:
> We have problems with karaf-maven-plugin (4.1.3) both for verify and validate the features and for create distributions. We have one nexus maven repository in the build cluster which uses multiple maven proxies. We experimenting sporadic build failures caused by reading timeout. Seems that nexus has increased lookup times with this setup. 
>  
> {code:java}
> [WARNING] Error resolving artifact org.eclipse.jetty:jetty-webapp:jar:9.3.14.v20161028: [Could not transfer artifact org.eclipse.jetty:jetty-webapp:jar:9.3.14.v20161028 from/to central (http://mylocal/repository/maven-public): Read timed out, Could not transfer artifact org.eclipse.jetty:jetty-webapp:jar:9.3.14.v20161028 from/to central (http://mylocal/repository/maven-public/): Read timed out] java.io.IOException: Error resolving artifact org.apache.servicemix.specs:org.apache.servicemix.specs.activation-api-1.1:jar:2.5.0: [Could not transfer artifact org.apache.servicemix.specs:org.apache.servicemix.specs.activation-api-1.1:jar:2.5.0 from/to central (http://mylocal/repository/maven-public): Read timed out, Could not transfer artifact org.apache.servicemix.specs:org.apache.servicemix.specs.activation-api-1.1:jar:2.5.0 from/to central (http://mylocal/repository/maven-public/): Read timed out]
> {code}
>  
> The documentation says clearly how to change the values of pax aether url resolver, to have an increased connection timout:
>  org.ops4j.pax.url.mvn.socket.connectionTimeout = 60000
>  org.ops4j.pax.url.mvn.socket.readTimeout = 60000
> The problem is that it's not possible to configure maven for the plugin so to increase these thresholds.
>   



--
This message was sent by Atlassian Jira
(v8.3.4#803005)