[ 
https://issues.apache.org/jira/browse/KARAF-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16997039#comment-16997039
 ] 

Jean-Baptiste Onofré commented on KARAF-6288:
---------------------------------------------

By the way, it's possible to configure the timeouts in 
{{etc/org.ops4j.pax.url.mvn.cfg}} file.

> 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.1.3
>            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)

Reply via email to