MavenDeployer Use another wagon implementation


(Sascha Petersen) #1

Hi,
My builds failed by uploading large files into my nexus repository.
So, I tried to use another wagon (default ist LightweightHttpWagon), but gradle ignore my settings.
the gradle-file looks like:

configurations {
    deployerJars  
}


dependencies {
	deployerJars  'org.apache.maven.wagon:wagon-http:2.9'
}

uploadArchives {
    repositories {
    	mavenDeployer {
			configuration = configurations.deployerJars 
	        repository(url: 'http://localhost:8080/nexus-2.11.3-01/content/repositories/Trunk/') {
	        	authentication(userName: repoUsername, password: repoPassword)
	        }
	    }
    }
}

The Stacktrace of the Build:
Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:213)
at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413)
at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392)
at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365)
at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163)
at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317)
at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107)
… 70 more
Caused by: java.io.IOException: Error writing to server
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:185)
… 77 more

What’s my mistake?


(Andrew) #2

Hi,

Did you ever get around this? I think I’ve got the same problem.

Apologies for digging up an old thread.