When performing a maven build on a multi-module project, a java.net.SocketException: Connection reset error occurs when attempting to perform a Get Request from vaadin-addons. I’m trying to figure out why it’s failing.
I cleared my local repository cache and I attempted to set some command line maven wagon system properties, e.g. -Dmaven.wagon.http.retryHandler.count=6, -Dmaven.wagon.httpconnectionManager.ttlSeconds=-1 (and 240), but it still gave a Connection reset error when executing the build. I’m using maven 3.6.1 and vaadin 8.8.0
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-charts</artifactId>
<version>4.0.5</version>
</dependency>
<-- other vaadin specific artifacts -->
Command Line:
mvn clean package -U
mvn clean package -U Exception Trace:
[ERROR]
Failed to execute goal on project sma-sm-core: Could not resolve dependencies for project com.sma.sm.core:sma-sm-core:jar:19.1.0-SNAPSHOT: The following artifacts could not be resolved: com.vaadin:vaadin-charts:jar:4.0.5: Could not transfer artifact com.vaadin:vaadin-charts:jar:4.0.5 from/to vaadin-addons (http://maven.vaadin.com/vaadin-addons): GET request of: com/vaadin/vaadin-charts/4.0.5/vaadin-charts-4.0.5.jar from vaadin-addons failed: Connection reset -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sma-sm-core: Could not resolve dependencies ...
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)
.
.
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies ...
.
.
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved...
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:352)
.
.
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved...
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:423)
.
.
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer ...
at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed (ArtifactTransportListener.java:52)
.
.
Caused by: org.apache.maven.wagon.TransferFailedException: GET request of: com/vaadin/vaadin-charts/4.0.5/vaadin-charts-4.0.5.jar from vaadin-addons failed
at org.apache.maven.wagon.AbstractWagon.getTransfer (AbstractWagon.java:412)
.
.
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read (SocketInputStream.java:186)
.
.
(Stack Trace was abbreviated for readability purposes. The ultimate cause was the java.net.SocketException)
here is the pertinent part of the maven build output
[INFO]
Downloading from Vaadin releases: https://oss.sonatype.org/content/repositories/vaadin-releases/com/vaadin/vaadin-charts-model/4.0.5/vaadin-charts-model-4.0.5.jar
[INFO]
Downloading from maven2-repository.dev.java.net: http://download.java.net/maven/2/com/vaadin/vaadin-charts-model/4.0.5/vaadin-charts-model-4.0.5.jar
[INFO]
Downloading from vaadin-prereleases: https://maven.vaadin.com/vaadin-prereleases/com/vaadin/vaadin-charts-model/4.0.5/vaadin-charts-model-4.0.5.jar
[INFO]
------------------------------------------------------------------------
[INFO]
Reactor Summary for sma-sm-build 19.1.0-SNAPSHOT:
[INFO]
[INFO]
sma-sm-build ....................................... SUCCESS [ 31.827 s]
[INFO]
sma-sm-component ................................... SUCCESS [ 0.023 s]
[INFO]
sma-sm-component-donut-build ....................... SUCCESS [ 0.022 s]
[INFO]
sma-sm-component-donut ............................. SUCCESS [ 28.493 s]
[INFO]
sma-sm-component-gojs-build ........................ SUCCESS [ 0.033 s]
[INFO]
sma-sm-component-gojs .............................. SUCCESS [ 12.434 s]
[INFO]
sma-sm-core ........................................ FAILURE [01:01 min]
[INFO]
sma-sm-theme ....................................... SKIPPED
[INFO]
sma-sm-component-fixediostooltip ................... SKIPPED
[INFO]
sma-sm-widgetsets .................................. SKIPPED
[INFO]
sma-sm-solution .................................... SKIPPED
[INFO]
sma-sm-solution-selfservice ........................ SKIPPED
[INFO]
sma-sm-solution-operations ......................... SKIPPED
[INFO]
sma-sm-solution-vision ............................. SKIPPED
[INFO]
sma-sm-app ......................................... SKIPPED
[INFO]
sma-sm-solution-administration ..................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO]
BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO]
Total time: 02:14 min
[INFO]
Finished at: 2019-08-15T10:53:54-05:00
[INFO]
------------------------------------------------------------------------
[ERROR]
Failed to execute goal on project sma-sm-core: Could not resolve dependencies for project com.sma.sm.core:sma-sm-core:jar:19.1.0-SNAPSHOT: The following artifacts could not be resolved: com.vaadin:vaadin-charts:jar:4.0.5, com.vaadin:vaadin-charts-model:jar:4.0.5, org.vaadin:spinkit:jar:1.0.0, de.akquinet.engineering.vaadin.timerextension:timerextension:jar:0.2.1: Could not transfer artifact com.vaadin:vaadin-charts:jar:4.0.5 from/to vaadin-addons (http://maven.vaadin.com/vaadin-addons): GET request of: com/vaadin/vaadin-charts/4.0.5/vaadin-charts-4.0.5.jar from vaadin-addons failed: Connection reset -> [Help 1]
[ERROR]
When performing a maven build on a multi-module project, a java.net.SocketException: Connection reset error occurs when attempting to perform a Get Request from vaadin-addons. I’m trying to figure out why it’s failing.
I cleared my local repository cache and I attempted to set some command line maven wagon system properties, e.g. -Dmaven.wagon.http.retryHandler.count=6, -Dmaven.wagon.httpconnectionManager.ttlSeconds=-1 (and 240), but it still gave a Connection reset error when executing the build. I’m using maven 3.6.1 and vaadin 8.8.0
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-charts</artifactId>
<version>4.0.5</version>
</dependency>
<-- other vaadin specific artifacts -->
Command Line:
mvn clean package -U
mvn clean package -U Exception Trace:
[ERROR]
Failed to execute goal on project sma-sm-core: Could not resolve dependencies for project com.sma.sm.core:sma-sm-core:jar:19.1.0-SNAPSHOT: The following artifacts could not be resolved: com.vaadin:vaadin-charts:jar:4.0.5: Could not transfer artifact com.vaadin:vaadin-charts:jar:4.0.5 from/to vaadin-addons (http://maven.vaadin.com/vaadin-addons): GET request of: com/vaadin/vaadin-charts/4.0.5/vaadin-charts-4.0.5.jar from vaadin-addons failed: Connection reset -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sma-sm-core: Could not resolve dependencies ...
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)
.
.
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies ...
.
.
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved...
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:352)
.
.
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved...
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:423)
.
.
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer ...
at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed (ArtifactTransportListener.java:52)
.
.
Caused by: org.apache.maven.wagon.TransferFailedException: GET request of: com/vaadin/vaadin-charts/4.0.5/vaadin-charts-4.0.5.jar from vaadin-addons failed
at org.apache.maven.wagon.AbstractWagon.getTransfer (AbstractWagon.java:412)
.
.
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read (SocketInputStream.java:186)
.
.
(Stack Trace was abbreviated for readability purposes. The ultimate cause was the java.net.SocketException)
here is the pertinent part of the maven build output
[INFO]
Downloading from Vaadin releases: https://oss.sonatype.org/content/repositories/vaadin-releases/com/vaadin/vaadin-charts-model/4.0.5/vaadin-charts-model-4.0.5.jar
[INFO]
Downloading from maven2-repository.dev.java.net: http://download.java.net/maven/2/com/vaadin/vaadin-charts-model/4.0.5/vaadin-charts-model-4.0.5.jar
[INFO]
Downloading from vaadin-prereleases: https://maven.vaadin.com/vaadin-prereleases/com/vaadin/vaadin-charts-model/4.0.5/vaadin-charts-model-4.0.5.jar
[INFO]
------------------------------------------------------------------------
[INFO]
Reactor Summary for sma-sm-build 19.1.0-SNAPSHOT:
[INFO]
[INFO]
sma-sm-build ....................................... SUCCESS [ 31.827 s]
[INFO]
sma-sm-component ................................... SUCCESS [ 0.023 s]
[INFO]
sma-sm-component-donut-build ....................... SUCCESS [ 0.022 s]
[INFO]
sma-sm-component-donut ............................. SUCCESS [ 28.493 s]
[INFO]
sma-sm-component-gojs-build ........................ SUCCESS [ 0.033 s]
[INFO]
sma-sm-component-gojs .............................. SUCCESS [ 12.434 s]
[INFO]
sma-sm-core ........................................ FAILURE [01:01 min]
[INFO]
sma-sm-theme ....................................... SKIPPED
[INFO]
sma-sm-component-fixediostooltip ................... SKIPPED
[INFO]
sma-sm-widgetsets .................................. SKIPPED
[INFO]
sma-sm-solution .................................... SKIPPED
[INFO]
sma-sm-solution-selfservice ........................ SKIPPED
[INFO]
sma-sm-solution-operations ......................... SKIPPED
[INFO]
sma-sm-solution-vision ............................. SKIPPED
[INFO]
sma-sm-app ......................................... SKIPPED
[INFO]
sma-sm-solution-administration ..................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO]
BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO]
Total time: 02:14 min
[INFO]
Finished at: 2019-08-15T10:53:54-05:00
[INFO]
------------------------------------------------------------------------
[ERROR]
Failed to execute goal on project sma-sm-core: Could not resolve dependencies for project com.sma.sm.core:sma-sm-core:jar:19.1.0-SNAPSHOT: The following artifacts could not be resolved: com.vaadin:vaadin-charts:jar:4.0.5, com.vaadin:vaadin-charts-model:jar:4.0.5, org.vaadin:spinkit:jar:1.0.0, de.akquinet.engineering.vaadin.timerextension:timerextension:jar:0.2.1: Could not transfer artifact com.vaadin:vaadin-charts:jar:4.0.5 from/to vaadin-addons (http://maven.vaadin.com/vaadin-addons): GET request of: com/vaadin/vaadin-charts/4.0.5/vaadin-charts-4.0.5.jar from vaadin-addons failed: Connection reset -> [Help 1]
[ERROR]