Failed to initialize extensions error while creating maven project using "wagon-ssh"

Error below when creating Maven (version 2.2.1) Project with wagon-ssh extension

pom.xml:

<extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh</artifactId> <version>2.4</version> </extension> </extensions> 

Cannot initialize extensions Component descriptor role: "com.jcraft.jsch.UIKeyboardInteractive", implementation: 'org.apache.maven.wagon.providers.ssh.jsch.interactive.PrompterUIKeyboardInteractive', role hint: 'default' has a hint, but there are other implementations that don't

Any suggestions / tips are very welcome.

+4
source share
2 answers

try installing the maven3 version .. !!

+9
source

I managed to get it to work with Maven 2.XX, downgrading wagon-ssh to 1.0:

 <build> ... <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh</artifactId> <!-- version 1.0 seems to work with maven 2.XX --> <version>1.0</version> </extension> </extensions> </build> 

Aside, I had problems with 1.0 (and the latest versions of wagon-ssh) using maven version 3.2.1 and scp: repository URLs. When downloading from a repo, small files will hang at the end. I switched to using sftp: URL and everything seems to work better.

+1
source

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


All Articles