You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Torsten Curdt <tc...@apache.org> on 2005/07/29 16:34:45 UTC

failing jar:deploy

So I though I had everything setup correctly.

  maven.repo.list=managesoft.snapshots
  maven.repo.managesoft.snapshots=scp://aramis.mgsft.com
  maven.repo.managesoft.snapshots.directory=/var/lib/maven-repository/
  maven.repo.managesoft.snapshots.username=${user.name}
  maven.repo.managesoft.snapshots.privatekey=${user.home}/.ssh/id_dsa

A direct ssh to the repo machine works just
fine with pub-key auth. But I get a bunch
of index out of bounds exceptions and after
that a failed authentication with maven.

jar:deploy:
     [echo] maven.repo.list is set - using artifact deploy mode
Will deploy to 1 repository(ies): managesoft.snapshots
Deploying to repository: managesoft.snapshots
Using private key: /Users/tcurdt/.ssh/id_dsa
java.lang.ArrayIndexOutOfBoundsException
         at java.lang.System.arraycopy(Native Method)
         at com.jcraft.jsch.Buffer.getByte(Unknown Source)
         at com.jcraft.jsch.Buffer.getMPIntBits(Unknown Source)
         at com.jcraft.jsch.Identity.decrypt_dss(Unknown Source)
         at com.jcraft.jsch.Identity.decrypt(Unknown Source)
         at com.jcraft.jsch.Identity.setPassphrase(Unknown Source)
         at com.jcraft.jsch.JSch.addIdentity(Unknown Source)
         at org.apache.maven.deploy.deployers.GenericSshDeployer.init 
(GenericSshDeployer.java:140)
java.lang.ArrayIndexOutOfBoundsException
         at java.lang.System.arraycopy(Native Method)
         at com.jcraft.jsch.Buffer.getByte(Unknown Source)
         at com.jcraft.jsch.Buffer.getMPIntBits(Unknown Source)
         at com.jcraft.jsch.Identity.decrypt_dss(Unknown Source)
         at com.jcraft.jsch.Identity.decrypt(Unknown Source)
         at com.jcraft.jsch.Identity.setPassphrase(Unknown Source)
         at com.jcraft.jsch.UserAuthPublicKey.start(Unknown Source)
         at com.jcraft.jsch.Session.connect(Unknown Source)
         at org.apache.maven.deploy.deployers.GenericSshDeployer.init 
(GenericSshDeployer.java:181)
         ...

com.jcraft.jsch.JSchException: Auth fail
         at com.jcraft.jsch.Session.connect(Unknown Source)
         at org.apache.maven.deploy.deployers.GenericSshDeployer.init 
(GenericSshDeployer.java:181)

I know I had that working before and I am
running out of ideas here.

Any hint what to look for?

cheers
--
Torsten

Re: failing jar:deploy

Posted by Brett Porter <br...@gmail.com>.
It looks as though your key could be broken. Does it still work with
ssh -i $HOME/.ssh/id_dsa?

I'm just guessing as JSch is the thing failing here during the
addition of the identity. Some researching on the JSch lists would be
needed if this isn't the case.

- Brett

On 7/30/05, Torsten Curdt <tc...@apache.org> wrote:
> So I though I had everything setup correctly.
> 
>   maven.repo.list=managesoft.snapshots
>   maven.repo.managesoft.snapshots=scp://aramis.mgsft.com
>   maven.repo.managesoft.snapshots.directory=/var/lib/maven-repository/
>   maven.repo.managesoft.snapshots.username=${user.name}
>   maven.repo.managesoft.snapshots.privatekey=${user.home}/.ssh/id_dsa
> 
> A direct ssh to the repo machine works just
> fine with pub-key auth. But I get a bunch
> of index out of bounds exceptions and after
> that a failed authentication with maven.
> 
> jar:deploy:
>      [echo] maven.repo.list is set - using artifact deploy mode
> Will deploy to 1 repository(ies): managesoft.snapshots
> Deploying to repository: managesoft.snapshots
> Using private key: /Users/tcurdt/.ssh/id_dsa
> java.lang.ArrayIndexOutOfBoundsException
>          at java.lang.System.arraycopy(Native Method)
>          at com.jcraft.jsch.Buffer.getByte(Unknown Source)
>          at com.jcraft.jsch.Buffer.getMPIntBits(Unknown Source)
>          at com.jcraft.jsch.Identity.decrypt_dss(Unknown Source)
>          at com.jcraft.jsch.Identity.decrypt(Unknown Source)
>          at com.jcraft.jsch.Identity.setPassphrase(Unknown Source)
>          at com.jcraft.jsch.JSch.addIdentity(Unknown Source)
>          at org.apache.maven.deploy.deployers.GenericSshDeployer.init
> (GenericSshDeployer.java:140)
> java.lang.ArrayIndexOutOfBoundsException
>          at java.lang.System.arraycopy(Native Method)
>          at com.jcraft.jsch.Buffer.getByte(Unknown Source)
>          at com.jcraft.jsch.Buffer.getMPIntBits(Unknown Source)
>          at com.jcraft.jsch.Identity.decrypt_dss(Unknown Source)
>          at com.jcraft.jsch.Identity.decrypt(Unknown Source)
>          at com.jcraft.jsch.Identity.setPassphrase(Unknown Source)
>          at com.jcraft.jsch.UserAuthPublicKey.start(Unknown Source)
>          at com.jcraft.jsch.Session.connect(Unknown Source)
>          at org.apache.maven.deploy.deployers.GenericSshDeployer.init
> (GenericSshDeployer.java:181)
>          ...
> 
> com.jcraft.jsch.JSchException: Auth fail
>          at com.jcraft.jsch.Session.connect(Unknown Source)
>          at org.apache.maven.deploy.deployers.GenericSshDeployer.init
> (GenericSshDeployer.java:181)
> 
> I know I had that working before and I am
> running out of ideas here.
> 
> Any hint what to look for?
> 
> cheers
> --
> Torsten
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org