Hello,
when I try to "mvn deploy" my project to our company repository, I
frequently get timeouts (see error below).
How can I increase the default timeout for this operation? After Googling a
lot I tried several server configurations in my settings.xml file but with
no success:
<server>
<id>server.company.com.snapshots</id>
<username>xxx</username>
<password>xxx</password>
<configuration>
<timeout>600000</timeout>
<httpConfiguration>
<all>
<connectionTimeout>600000</connectionTimeout>
<requestTimeout>600000</requestTimeout>
<idleTimeout>600000</idleTimeout>
</all>
</httpConfiguration>
</configuration>
</server>
Thank you in advance for any help! :-)
[ERROR] Failed to execute goal at.company.xyz:xyz-maven-plugin:1.2.14.0:deploy
(default-deploy) on project project_core: Unable to execute mojo: Failed to
deploy artifacts: Could not transfer artifact
at.xyz:project_core:jar:2.0.0.0-20140828.135650-6 from/to server.company.com
(https://server.company.com/artifactory/axon-snap
shot): No response received after 60000 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal at.company.xyz:xyz-maven-plugin:1.2.14.0:deploy (default-deploy) on
project project_core: Unable to execute mojo
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to
execute mojo
at
org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:96)
at at.company.xyz.maven.IvyDeployMojo.deploy(IvyDeployMojo.java:113)
at at.company.xyz.maven.IvyDeployMojo.execute(IvyDeployMojo.java:75)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy
artifacts: Could not transfer artifact
at.xyz:project_core:jar:2.0.0.0-20140828.135650-6 from/to server.company.com
(https://server.company.com/artifactory/axon-snapshot): No response
received after 60000
at
org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:314)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:94)
... 23 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
Failed to deploy artifacts: Could not transfer artifact
at.xyz:project_core:jar:2.0.0.0-20140828.135650-6 from/to server.company.com
(https://server.company.com/artifactory/axon-snapshot): No response
received after 60000
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)
at
org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:167)
at
org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:310)
... 25 more
Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to
deploy artifacts: Could not transfer artifact
at.xyz:project_core:jar:2.0.0.0-20140828.135650-6 from/to server.company.com
(https://server.company.com/artifactory/axon-snapshot): No response
received after 60000
at
org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:280)
at
org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:211)
at
org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:443)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137)
... 27 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could
not transfer artifact at.xyz:project_core:jar:2.0.0.0-20140828.135650-6
from/to server.company.com (
https://server.company.com/artifactory/axon-snapshot): No response received
after 60000
at
org.sonatype.aether.connector.async.AsyncRepositoryConnector$3.wrap(AsyncRepositoryConnector.java:1546)
at
org.sonatype.aether.connector.async.AsyncRepositoryConnector$3.wrap(AsyncRepositoryConnector.java:1537)
at
org.sonatype.aether.connector.async.AsyncRepositoryConnector$PutTask.flush(AsyncRepositoryConnector.java:1192)
at
org.sonatype.aether.connector.async.AsyncRepositoryConnector.put(AsyncRepositoryConnector.java:456)
at
org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:274)
... 30 more
Caused by: java.util.concurrent.TimeoutException: No response received
after 60000
at
com.ning.http.client.providers.netty.NettyAsyncHttpProvider$ReaperFuture.run(NettyAsyncHttpProvider.java:1922)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)