You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Brian Matzon <ma...@certus.dk> on 2009/01/19 11:15:13 UTC

sftp.keyFile must be absolute

I recently updated from beta 2 to rc2 and I was unable to run ivy 
because sftp.keyFile is now required to be absolute.

My problem with this is that the keyfile is NOT used at all unless 
you're publishing to a specific resolver.
This means that sftp.keyFile is not even a correct value. It is only set 
when doing publishing by passing in an option to ant.

in beta 2 I got the following warning:
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]   Pemfile ${ivy.internal-publish.keyfile} doesn't exist.

in rc2 I get the following Error.
impossible to configure ivy:settings with given file: ivysettings.xml :
java.text.ParseException: failed to load settings from ivysettings.xml:
problem in config file: failed to load settings from 
ivysettings-internal.xml:
impossible to convert ${ivy.internal-publish.keyfile} to class 
java.io.File for setting
keyFile on class org.apache.ivy.plugins.resolver.SFTPResolver: 
sftp.keyFile must be absolute: ${ivy.internal-publish.keyfile}

fwiw, it would be nice if SFTPResolver waited to initialize (and fail) 
until its actually used?

-- 
Brian Matzon
Certus


Re: sftp.keyFile must be absolute

Posted by Kirby Files <kf...@masergy.com>.
Brian Matzon wrote on 01/19/2009 05:15 AM:
> I recently updated from beta 2 to rc2 and I was unable to run ivy 
> because sftp.keyFile is now required to be absolute.
[...]

> fwiw, it would be nice if SFTPResolver waited to initialize (and fail) 
> until its actually used?

Yes, I was bummed that rc2 broke all of my ivy configs as well. Not 
only the above problem (as you say, why fail so early, even if the 
resolver isn't used?); I also had to update all of my configs which 
used <ivy:settings override="true"/>. It was required in my configs 
prior to rc2, and illegal after rc2, so none of my ivy settings are 
backwards or forwards compatible. A real flag day!


---
Kirby Files
Software Architect
Masergy Communications
kfiles@masergy.com