Hi JB, i think it would be nice to configure the timeout in karaf-maven-plugin.
Regards Stefan > Am 20.08.2021 um 16:15 schrieb Jean-Baptiste Onofré <[email protected]>: > > Hi, > > It seems that the remote repo or network sometimes is "slow" and timed out. > > I would check the repo first > (ttp://mcentral.ose.de:8081/artifactory/libs-snapshot/), maybe artifactory is > "heavy" loaded and can't handle some requests. For instance it can happen if > artifactory is configured as a mirror and takes time to pull from remote > repositories. > > In karaf runtime, you can configure the timeout in > etc/org.ops4j.pax.url.mvn.cfg, but, unfortunately, it's hard coded in the > karaf maven plugin. If you want, I can introduce a karaf-maven-plugin > configuration to set the timeout. > > Regards > JB > > On 20/08/2021 15:56, Stefan Günst wrote: >> Hi, >> we have sometimes problems like this: >> java.io.IOException: Error resolving artifact >> org.apache.activemq:artemis-jms-client-osgi:jar:2.10.1: [Could not transfer >> artifact org.apache.activemq:artemis-jms-client-osgi:jar:2.10.1 from/to >> central : Read timed out, Could not transfer artifact >> org.apache.activemq:artemis-jms-client-osgi:jar:2.10.1 from/to snapshots >> (http://mcentral.ose.de:8081/artifactory/libs-snapshot/ >> <http://mcentral.ose.de:8081/artifactory/libs-snapshot/>): Read timed out] >> at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException >> (AetherBasedResolver.java:803) >> at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve >> (AetherBasedResolver.java:774) >> at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve >> (AetherBasedResolver.java:657) >> at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve >> (AetherBasedResolver.java:598) >> at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve >> (AetherBasedResolver.java:565) >> at org.apache.karaf.tooling.utils.ReactorMavenResolver.resolve >> (ReactorMavenResolver.java:63) >> at >> org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download >> (MavenDownloadTask.java:52) >> at >> org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run >> (AbstractRetryableDownloadTask.java:60) >> at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511) >> at java.util.concurrent.FutureTask.run (FutureTask.java:266) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201 >> (ScheduledThreadPoolExecutor.java:180) >> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run >> (ScheduledThreadPoolExecutor.java:293) >> at java.util.concurrent.ThreadPoolExecutor.runWorker >> (ThreadPoolExecutor.java:1149) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run >> (ThreadPoolExecutor.java:624) >> at java.lang.Thread.run (Thread.java:748) >> Anything we can configure or check ? >> Stefan
