How to fix or bypass car?

The error https://issues.apache.org/jira/browse/MDEPLOY-177 has hit me for many months. When maven tries to load artifacts, it will stop with a message saying that it loads

x+1 of x B 

eg.

 1007/1006 B 

and then it freezes. Robert Scholte tried to help with this quite a few times, but so far to no avail. In my multi-platform environment, from time to time I see how an error accumulates in the Eclipse environment either directly in Mac OSX macports or more recently with Ubuntu 14.04 LTS.

How can I get rid of this problem forever?

These are the suggestions that I know so far:

  • replace wagon version
  • use wagon-ssh directly
  • use a more modern version of mvn.
  • choose another wagon supplier

For each of them, I have no idea how to do this.

** for # 1: replace the wagon version **

eg. Robert Scholte wrote: "Wolfgang Fahl, could you narrow it down to ssh-wagon since this problem starts? You can do this by downloading this jar and putting it in apache-maven-3.2.3 / lib / ext "

But where should this place be, for example, Eclipse / MacPorts / Ubuntu?

This is what I have on an Ubuntu 14.04 LTS machine:

 muf@capri :/usr/share/maven/lib$ ls -l | grep wagon lrwxrwxrwx 1 root root 37 Oct 30 2013 aether-connector-wagon.jar -> ../../java/aether-connector-wagon.jar lrwxrwxrwx 1 root root 29 Oct 30 2013 wagon-file.jar -> ../../java/wagon-file-2.x.jar lrwxrwxrwx 1 root root 36 Oct 30 2013 wagon-http-shaded.jar -> ../../java/wagon-http-shaded-2.x.jar lrwxrwxrwx 1 root root 37 Oct 30 2013 wagon-provider-api.jar -> ../../java/wagon-provider-api-2.x.jar 

in / usr / share / java there is:

 muf@capri :/usr/share/java$ ls -l wagon-ssh* lrwxrwxrwx 1 root root 13 Apr 24 2012 wagon-ssh-1.0.jar -> wagon-ssh.jar lrwxrwxrwx 1 root root 17 Nov 1 2013 wagon-ssh-2.x-2.5.jar -> wagon-ssh-2.x.jar -rw-r--r-- 1 root root 24033 Nov 1 2013 wagon-ssh-2.x.jar lrwxrwxrwx 1 root root 20 Apr 24 2012 wagon-ssh-common-1.0.jar -> wagon-ssh-common.jar lrwxrwxrwx 1 root root 24 Nov 1 2013 wagon-ssh-common-2.x-2.5.jar -> wagon-ssh-common-2.x.jar -rw-r--r-- 1 root root 20532 Nov 1 2013 wagon-ssh-common-2.x.jar -rw-r--r-- 1 root root 21913 Apr 24 2012 wagon-ssh-common.jar lrwxrwxrwx 1 root root 25 Apr 24 2012 wagon-ssh-common-test-1.0.jar -> wagon-ssh-common-test.jar -rw-r--r-- 1 root root 6131 Apr 24 2012 wagon-ssh-common-test.jar lrwxrwxrwx 1 root root 22 Apr 24 2012 wagon-ssh-external-1.0.jar -> wagon-ssh-external.jar lrwxrwxrwx 1 root root 26 Nov 1 2013 wagon-ssh-external-2.x-2.5.jar -> wagon-ssh-external-2.x.jar -rw-r--r-- 1 root root 9953 Nov 1 2013 wagon-ssh-external-2.x.jar -rw-r--r-- 1 root root 9718 Apr 24 2012 wagon-ssh-external.jar -rw-r--r-- 1 root root 23603 Apr 24 2012 wagon-ssh.jar 

for # 2: I have not yet found instructions for this.

for # 3:

For the obvious β€œmore current mvn," I would have to know which maven comes with a wagon that no longer has an error. Prior to 3.3.1, the error was there, for example. on Mac OS X.

for # 4: https://maven.apache.org/guides/mini/guide-wagon-providers.html has instructions for changing the provider - it does not say how you change the version of the provider

Until now, it has been reduced to mvn 3.0.5. But, unfortunately, in Ubuntu 14.04 LTS is just a version, for example, it works in Macports - but there it is not!

0
source share
1 answer

specifying wagon-ssh 2.10 in master pom.xml fixes the problem. 2.7 was broken 2.9 can be broken.

  <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh</artifactId> <version>2.10</version> </extension> </extensions> </build> 
0
source

Source: https://habr.com/ru/post/1235978/


All Articles