http authentication

74 views
Skip to first unread message

Jim

unread,
Dec 23, 2008, 11:01:48 PM12/23/08
to ivysvn

Anyone using http authentication? It doesn't work for me, even though
I have hardcoded a username and password which are definitely
correct. This is with ivy 2.0.0-rc2 and ivysvn 2.0.0-rc1. Any ideas?

[ivy:retrieve] :::: ERRORS
[ivy:retrieve] Error resolving resource
http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/jars/swingx.jar,
svn: Authentication required for '<http://geonosis:80> Subversion
Repository'

<svn name="rsi-svn" repositoryRoot="${rsi.svn.ivyrepos}"
userName="xxxxxx" userPassword="xxxxxx">
<ivy pattern="${rsi.ivy.pattern}" />
<artifact pattern="${rsi.artifact.pattern}" />
</svn>

Thanks,
Jim

Adrian Woodhead

unread,
Dec 24, 2008, 6:06:08 AM12/24/08
to ivy...@googlegroups.com, jim.n...@gmail.com
Hey Jim,

I'm not sure whether what you mention is related to this issue

http://code.google.com/p/ivysvn/issues/detail?id=15

This is fixed in the trunk but I haven't released a build containing it
yet. You could try build your own jar from a fresh SVN checkout and see
if that works for you. If that doesn't help, run ant with the "-d"
(debug flag) and then post the full output of that along with your ivy
settings XML file and I can take a closer look for you. HTTP auth hasn't
been extensively tested so it is quite possible there are some issues there.

Regards,

Adrian

Jim

unread,
Dec 24, 2008, 3:22:32 PM12/24/08
to ivysvn

Hi Adrian,

Thanks for the reply. I tried using ivysvn@trunk, but the result is
the same. I'll post my ivysettings.xml and the full output from ant -
d below. Here is what looks like the relevant excerpt from ant -d:

[ivy:retrieve] Resolving resource for
http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/ivys/ivy.xml
[revision=-1]
[ivy:retrieve] Adding SVN user/pass authentication
[ivy:retrieve] ERROR: Error resolving resource
http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/ivys/ivy.xml,
svn: Authentication required for '<http://geonosis:80> Subversion
Repository'
[ivy:retrieve] svn: resource not reachable for org.swinglabs#swingx;
0.9.1: res=http://geonosis/repos/referentia/ivyrepos/org.swinglabs/
swingx/0.9.1/ivys/ivy.xml

Seems like it may not be passing the credentials through?

Also, locally I use tortoisesvn (and occasionally svn from the command-
line). Within tortoisesvn, I check the option for it to cache my
username/password. On subsequent uses of tortoisesvn and svn, it no
longer prompts me for a password (even when performing a new
checkout). I assume that's the "global authentication cache" referred
to by ivysvn's "storageAllowed" option? Anyway, I was hoping it would
pick up my stored credentials, so I tried removing the "userPassword"
attribute (and even the "userName" attribute), but no luck. I also
wondered whether storageAllowed="true" was necessary for it to even
attempt using stored credentials, so I added that attribute as well,
but still no luck.

Thanks for your help,
Jim


The ivy settings file (only edited for username/password). When I
change defaultResolver to "filesystem", the retrieve works. The root
pointed to by filesystem is simply an svn checkout of the root pointed
to by the rsi.svn.ivyrepos:

<ivysettings>

<typedef name="svn"
classname="fm.last.ivy.plugins.svnresolver.SvnResolver"/>

<settings defaultResolver="svn"/>

<property name="rsi.fs.root" value="c:\dev\newsdf\rsiivy"
override="true"/>
<property name="rsi.svn.ivyrepos" value="http://geonosis/repos/
referentia/ivyrepos" override="true"/>
<property name="rsi.ivy.pattern" value="[organisation]/
[module]/[revision]/[type]s/[artifact].[ext]" override="true"/>
<property name="rsi.artifact.pattern" value="[organisation]/
[module]/[revision]/[type]s/[artifact].[ext]" override="true"/>

<caches defaultCacheDir="${ivy.settings.dir}/cache"/>

<resolvers>
<filesystem name="filesystem">
<ivy pattern="${rsi.fs.root}/${rsi.ivy.pattern}" />
<artifact pattern="${rsi.fs.root}/${rsi.artifact.pattern}" />
</filesystem>

<svn name="svn" repositoryRoot="${rsi.svn.ivyrepos}"
userName="xxxxxx" userPassword="xxxxxx">
<ivy pattern="${rsi.ivy.pattern}" />
<artifact pattern="${rsi.artifact.pattern}" />
</svn>
</resolvers>

</ivysettings>


The "ant -d" output:

Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.6 in: C:\dev\tools\jdk1.6.0_07\win32\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file -> C:\dev\newsdf\modules
\testivysvn\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\dev\newsdf\modules\testivysvn\build.xml with URI
= file:/C:/dev/newsdf/modules/testivysvn/build.xml
Setting ro project property: ant.project.name -> testivysvn
Adding reference: testivysvn
Setting ro project property: ant.file.testivysvn -> C:\dev\newsdf
\modules\testivysvn\build.xml
Project base dir set to: C:\dev\newsdf\modules\testivysvn
+Target:
+Target: init-ivy
+Target: resolve-dependencies
+Target: clean-cache
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
Setting project property: ivy.settings.file -> ivysettings.xml
Attempting to create object of type
org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `resolve-dependencies' is [init-ivy,
resolve-dependencies]
Complete build sequence is [init-ivy, resolve-dependencies, clean-
cache, ]

init-ivy:
parsing buildfile jar:file:/C:/dev/tools/apache-ant-1.7.0/lib/
ivy-2.0.0-rc2.jar!/org/apache/ivy/ant/antlib.xml with URI = jar:file:/
C:/dev/tools/apache-ant-1.7.0/lib/ivy-2.0.0-rc2.jar!/org/apache/ivy/
ant/antlib.xml
Class org.apache.ivy.ant.IvyAntSettings loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:settings
org.apache.ivy.ant.IvyAntSettings
Class org.apache.ivy.ant.IvyConfigure loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:configure
org.apache.ivy.ant.IvyConfigure
Class org.apache.ivy.ant.IvyResolve loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:resolve
org.apache.ivy.ant.IvyResolve
Class org.apache.ivy.ant.IvyRetrieve loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:retrieve
org.apache.ivy.ant.IvyRetrieve
Class org.apache.ivy.ant.IvyDeliver loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:deliver
org.apache.ivy.ant.IvyDeliver
Class org.apache.ivy.ant.IvyPublish loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:publish
org.apache.ivy.ant.IvyPublish
Class org.apache.ivy.ant.IvyExtractFromSources loaded from parent
loader (parentFirst)
+Datatype antlib:org.apache.ivy.ant:extract
org.apache.ivy.ant.IvyExtractFromSources
Class org.apache.ivy.ant.IvyCachePath loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:cachepath
org.apache.ivy.ant.IvyCachePath
Class org.apache.ivy.ant.IvyCacheFileset loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:cachefileset
org.apache.ivy.ant.IvyCacheFileset
Class org.apache.ivy.ant.IvyReport loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:report
org.apache.ivy.ant.IvyReport
Class org.apache.ivy.ant.IvyRepositoryReport loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:repreport
org.apache.ivy.ant.IvyRepositoryReport
Class org.apache.ivy.ant.IvyVar loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:var org.apache.ivy.ant.IvyVar
Class org.apache.ivy.ant.IvyCheck loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:check org.apache.ivy.ant.IvyCheck
Class org.apache.ivy.ant.IvyArtifactProperty loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:artifactproperty
org.apache.ivy.ant.IvyArtifactProperty
Class org.apache.ivy.ant.IvyBuildList loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:buildlist
org.apache.ivy.ant.IvyBuildList
Class org.apache.ivy.ant.IvyInstall loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:install
org.apache.ivy.ant.IvyInstall
Class org.apache.ivy.ant.IvyConvertPom loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:convertpom
org.apache.ivy.ant.IvyConvertPom
Class org.apache.ivy.ant.IvyMakePom loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:makepom
org.apache.ivy.ant.IvyMakePom
Class org.apache.ivy.ant.IvyArtifactReport loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:artifactreport
org.apache.ivy.ant.IvyArtifactReport
Class org.apache.ivy.ant.IvyInfo loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:info org.apache.ivy.ant.IvyInfo
Class org.apache.ivy.ant.AddPathTask loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:addpath
org.apache.ivy.ant.AddPathTask
Class org.apache.ivy.ant.IvyListModules loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:listmodules
org.apache.ivy.ant.IvyListModules
Class org.apache.ivy.ant.IvyFindRevision loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:findrevision
org.apache.ivy.ant.IvyFindRevision
Class org.apache.ivy.ant.IvyBuildNumber loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:buildnumber
org.apache.ivy.ant.IvyBuildNumber
Class org.apache.ivy.ant.IvyCleanCache loaded from parent loader
(parentFirst)
+Datatype antlib:org.apache.ivy.ant:cleancache
org.apache.ivy.ant.IvyCleanCache
Adding reference: ivy.instance
Loading jar:file:/C:/dev/tools/apache-ant-1.7.0/lib/ivy-2.0.0-rc2.jar!/
org/apache/ivy/core/settings/ivy.properties
Setting project property: ivy.log.modules.in.use -> false
Setting project property: ivy.resolver.default.check.modified -> false
Setting project property: ivy.default.always.check.exact.revision ->
false
Setting project property: ivy.retrieve.pattern -> C:\dev\newsdf\modules
\testivysvn/lib/[artifact]-[revision](-[classifier]).[ext]
Setting project property: ivy.configurations -> *
Setting project property: ivy.buildlist.ivyfilepath -> ivy.xml
Setting project property: ivy.status -> integration
Setting project property: ivy.resolve.default.type.filter -> *
Setting project property: ivy.project.dir -> C:\dev\newsdf\modules
\testivysvn
Setting project property: ivy.dep.file -> ivy.xml
Override ignored for property "ivy.settings.file"
Setting project property: ivy.report.output.pattern -> [organisation]-
[module]-[conf].[ext]
Setting project property: ivy.cache.ttl.default -> 10s
Setting project property: ivy.publish.src.artifacts.pattern -> C:\dev
\newsdf\modules\testivysvn/distrib/[type]s/[artifact]-[revision](-
[classifier]).[ext]
Setting project property: ivy.deliver.ivy.pattern -> C:\dev\newsdf
\modules\testivysvn/distrib/[type]s/[artifact]-[revision](-
[classifier]).[ext]
Setting project property: ivy.build.artifacts.dir -> C:\dev\newsdf
\modules\testivysvn/build/artifacts
Setting project property: ivy.checksums -> sha1,md5
Setting project property: ivy.distrib.dir -> C:\dev\newsdf\modules
\testivysvn/distrib
Setting project property: ivy.lib.dir -> C:\dev\newsdf\modules
\testivysvn/lib
searching settings file: trying C:\dev\newsdf\modules\testivysvn
\ivysettings.xml
[ivy:configure] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/
::
:: loading settings :: file = C:\dev\newsdf\modules\testivysvn
\ivysettings.xml
setting 'ivy.settings.dir' to 'C:\dev\newsdf\modules\testivysvn'
setting 'ivy.conf.dir' to 'C:\dev\newsdf\modules\testivysvn'
setting 'ivy.settings.file' to 'C:\dev\newsdf\modules\testivysvn
\ivysettings.xml'
setting 'ivy.conf.file' to 'C:\dev\newsdf\modules\testivysvn
\ivysettings.xml'
setting 'ivy.settings.url' to 'file:/C:/dev/newsdf/modules/testivysvn/
ivysettings.xml'
setting 'ivy.conf.url' to 'file:/C:/dev/newsdf/modules/testivysvn/
ivysettings.xml'
setting 'ivy.default.ivy.user.dir' to 'C:\Documents and Settings
\jnewsham\.ivy2'
setting 'ivy.home' to 'C:\Documents and Settings\jnewsham\.ivy2'
no default ivy user dir defined: set to C:\Documents and Settings
\jnewsham\.ivy2
setting 'ivy.log.modules.in.use' to 'false'
setting 'ivy.resolver.default.check.modified' to 'false'
setting 'ivy.default.always.check.exact.revision' to 'false'
setting 'ivy.retrieve.pattern' to '${ivy.lib.dir}/[artifact]-[revision]
(-[classifier]).[ext]'
setting 'ivy.configurations' to '*'
setting 'ivy.buildlist.ivyfilepath' to 'ivy.xml'
setting 'ivy.status' to 'integration'
setting 'ivy.resolve.default.type.filter' to '*'
setting 'ivy.project.dir' to '${basedir}'
setting 'ivy.dep.file' to 'ivy.xml'
setting 'ivy.settings.file' to 'ivysettings.xml'
setting 'ivy.report.output.pattern' to '[organisation]-[module]-[conf].
[ext]'
setting 'ivy.cache.ttl.default' to '10s'
setting 'ivy.publish.src.artifacts.pattern' to '${ivy.distrib.dir}/
[type]s/[artifact]-[revision](-[classifier]).[ext]'
setting 'ivy.deliver.ivy.pattern' to '${ivy.distrib.dir}/[type]s/
[artifact]-[revision](-[classifier]).[ext]'
setting 'ivy.build.artifacts.dir' to '${ivy.project.dir}/build/
artifacts'
setting 'ivy.checksums' to 'sha1,md5'
setting 'ivy.distrib.dir' to '${ivy.project.dir}/distrib'
setting 'ivy.lib.dir' to '${ivy.project.dir}/lib'
setting 'rsi.fs.root' to 'c:\dev\newsdf\rsiivy'
setting 'rsi.svn.ivyrepos' to 'http://geonosis/repos/referentia/
ivyrepos'
setting 'rsi.ivy.pattern' to '[organisation]/[module]/[revision]/[type]
s/[artifact].[ext]'
setting 'rsi.artifact.pattern' to '[organisation]/[module]/[revision]/
[type]s/[artifact].[ext]'
setting 'ivy.cache.dir' to 'C:\dev\newsdf\modules\testivysvn\cache'
IvySvn Build-Version: ${version}
IvySvn Build-DateTime: 2008-12-24 09:34:39
svn: no namespace defined: using system
svn: no latest strategy defined: using default
filesystem: no namespace defined: using system
filesystem: no latest strategy defined: using default
setting 'ivy.default.ivy.user.dir' to 'C:\Documents and Settings
\jnewsham\.ivy2'
settings loaded (63ms)
default cache: C:\dev\newsdf\modules\testivysvn\cache
default resolver: svn
default latest strategy: latest-revision
default conflict manager: latest-revision
circular dependency strategy: warn
validate: true
check up2date: true
-- 2 resolvers:
svn [repository]
cache: null
m2compatible: false
ivy patterns:
[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
artifact patterns:
[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
repository: svn
filesystem [file]
cache: null
m2compatible: false
ivy patterns:
c:\dev\newsdf\rsiivy/[organisation]/[module]/[revision]/[type]s/
[artifact].[ext]
artifact patterns:
c:\dev\newsdf\rsiivy/[organisation]/[module]/[revision]/[type]s/
[artifact].[ext]
repository: filesystem
module settings:
NONE
Setting project property: java.vm.version.ivy.instance -> 10.0-b23
Setting project property: sun.jnu.encoding.ivy.instance -> Cp1252
Setting project property: java.vendor.url.ivy.instance -> http://java.sun.com/
Setting project property: java.vm.info.ivy.instance -> mixed mode
Setting project property: user.dir.ivy.instance -> C:\dev\newsdf
\modules\testivysvn
Setting project property: ivy.conf.dir -> C:\dev\newsdf\modules
\testivysvn
Setting project property: ivy.conf.dir.ivy.instance -> C:\dev\newsdf
\modules\testivysvn
Setting project property: sun.cpu.isalist.ivy.instance -> pentium_pro
+mmx pentium_pro pentium+mmx pentium i486 i386 i86
Setting project property: java.awt.graphicsenv.ivy.instance ->
sun.awt.Win32GraphicsEnvironment
Setting project property: ivy.checksums.ivy.instance -> sha1,md5
Setting project property: ivy.status.ivy.instance -> integration
Setting project property: sun.os.patch.level.ivy.instance -> Service
Pack 2
Setting project property: ivy.settings.file.ivy.instance -> C:\dev
\newsdf\modules\testivysvn\ivysettings.xml
Setting project property: ant.library.dir.ivy.instance -> C:\dev\tools
\apache-ant-1.7.0\lib
Setting project property: user.home.ivy.instance -> C:\Documents and
Settings\jnewsham
Setting project property: java.io.tmpdir.ivy.instance -> C:
\DOCUME~1\jnewsham\LOCALS~1\Temp\
Setting project property: java.awt.printerjob.ivy.instance ->
sun.awt.windows.WPrinterJob
Setting project property: ivy.project.dir.ivy.instance -> C:\dev\newsdf
\modules\testivysvn
Setting project property: java.version.ivy.instance -> 1.6.0_07
Setting project property: ivy.home -> C:\Documents and Settings
\jnewsham\.ivy2
Setting project property: ivy.home.ivy.instance -> C:\Documents and
Settings\jnewsham\.ivy2
Setting project property: file.encoding.pkg.ivy.instance -> sun.io
Setting project property: ivy.configurations.ivy.instance -> *
Setting project property: java.vendor.url.bug.ivy.instance ->
http://java.sun.com/cgi-bin/bugreport.cgi
Setting project property: ivy.report.output.pattern.ivy.instance ->
[organisation]-[module]-[conf].[ext]
Setting project property: file.encoding.ivy.instance -> Cp1252
Setting project property: line.separator.ivy.instance ->
Setting project property: ivy.distrib.dir.ivy.instance -> C:\dev\newsdf
\modules\testivysvn/distrib
Setting project property: java.vm.specification.vendor.ivy.instance ->
Sun Microsystems Inc.
Setting project property: ivy.resolve.default.type.filter.ivy.instance
-> *
Setting project property: java.vm.vendor.ivy.instance -> Sun
Microsystems Inc.
Setting project property: ivy.cache.dir -> C:\dev\newsdf\modules
\testivysvn\cache
Setting project property: ivy.cache.dir.ivy.instance -> C:\dev\newsdf
\modules\testivysvn\cache
Setting project property: java.class.path.ivy.instance -> C:\dev\tools
\apache-ant-1.7.0\lib\ant-launcher.jar;C:\dev\tools\apache-
ant-1.7.0\lib\ant-antlr.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-
apache-bcel.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-apache-bsf.jar;C:
\dev\tools\apache-ant-1.7.0\lib\ant-apache-log4j.jar;C:\dev\tools
\apache-ant-1.7.0\lib\ant-apache-oro.jar;C:\dev\tools\apache-
ant-1.7.0\lib\ant-apache-regexp.jar;C:\dev\tools\apache-ant-1.7.0\lib
\ant-apache-resolver.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-commons-
logging.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-commons-net.jar;C:
\dev\tools\apache-ant-1.7.0\lib\ant-contrib-1.0b3.jar;C:\dev\tools
\apache-ant-1.7.0\lib\ant-jai.jar;C:\dev\tools\apache-ant-1.7.0\lib
\ant-javamail.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-jdepend.jar;C:
\dev\tools\apache-ant-1.7.0\lib\ant-jmf.jar;C:\dev\tools\apache-
ant-1.7.0\lib\ant-jsch.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-
junit.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-launcher.jar;C:\dev
\tools\apache-ant-1.7.0\lib\ant-netrexx.jar;C:\dev\tools\apache-
ant-1.7.0\lib\ant-nodeps.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-
starteam.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-stylebook.jar;C:\dev
\tools\apache-ant-1.7.0\lib\ant-swing.jar;C:\dev\tools\apache-
ant-1.7.0\lib\ant-testutil.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-
trax.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant-weblogic.jar;C:\dev
\tools\apache-ant-1.7.0\lib\ant.jar;C:\dev\tools\apache-ant-1.7.0\lib
\antlr.jar;C:\dev\tools\apache-ant-1.7.0\lib\ant_doxygen.jar;C:\dev
\tools\apache-ant-1.7.0\lib\backport-util-concurrent.jar;C:\dev\tools
\apache-ant-1.7.0\lib\checkstyle-4.3.jar;C:\dev\tools\apache-
ant-1.7.0\lib\commons-beanutils-core.jar;C:\dev\tools\apache-
ant-1.7.0\lib\commons-collections.jar;C:\dev\tools\apache-ant-1.7.0\lib
\commons-logging.jar;C:\dev\tools\apache-ant-1.7.0\lib\commons-
net-1.4.1.jar;C:\dev\tools\apache-ant-1.7.0\lib\cpptasks.jar;C:\dev
\tools\apache-ant-1.7.0\lib\emma.jar;C:\dev\tools\apache-ant-1.7.0\lib
\emma_ant.jar;C:\dev\tools\apache-ant-1.7.0\lib\ivy-2.0.0-rc2.jar;C:
\dev\tools\apache-ant-1.7.0\lib\ivysvnresolver-2.0.0-SNAPSHOT.jar;C:
\dev\tools\apache-ant-1.7.0\lib\jaxen-1.1-beta-10.jar;C:\dev\tools
\apache-ant-1.7.0\lib\jdom.jar;C:\dev\tools\apache-ant-1.7.0\lib
\junit-4.1.jar;C:\dev\tools\apache-ant-1.7.0\lib\locc.jar;C:\dev\tools
\apache-ant-1.7.0\lib\pmd-3.9.jar;C:\dev\tools\apache-ant-1.7.0\lib
\rsi-antextensions.jar;C:\dev\tools\apache-ant-1.7.0\lib\svnkit.jar;C:
\dev\tools\apache-ant-1.7.0\lib\trilead.jar;C:\dev\tools\apache-
ant-1.7.0\lib\xercesImpl.jar;C:\dev\tools\apache-ant-1.7.0\lib\xml-
apis.jar;C:\dev\tools\jdk1.6.0_07\win32\lib\tools.jar
Setting project property: rsi.artifact.pattern -> [organisation]/
[module]/[revision]/[type]s/[artifact].[ext]
Setting project property: rsi.artifact.pattern.ivy.instance ->
[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
Setting project property: sun.io.unicode.encoding.ivy.instance ->
UnicodeLittle
Setting project property: user.variant.ivy.instance ->
Setting project property: user.language.ivy.instance -> en
Setting project property: user.name.ivy.instance -> jnewsham
Setting project property: os.arch.ivy.instance -> x86
Setting project property:
ivy.publish.src.artifacts.pattern.ivy.instance -> C:\dev\newsdf\modules
\testivysvn/distrib/[type]s/[artifact]-[revision](-[classifier]).[ext]
Setting project property: java.runtime.version.ivy.instance ->
1.6.0_07-b06
Setting project property: sun.boot.class.path.ivy.instance -> C:\dev
\tools\jdk1.6.0_07\win32\jre\lib\resources.jar;C:\dev\tools
\jdk1.6.0_07\win32\jre\lib\rt.jar;C:\dev\tools\jdk1.6.0_07\win32\jre
\lib\sunrsasign.jar;C:\dev\tools\jdk1.6.0_07\win32\jre\lib\jsse.jar;C:
\dev\tools\jdk1.6.0_07\win32\jre\lib\jce.jar;C:\dev\tools
\jdk1.6.0_07\win32\jre\lib\charsets.jar;C:\dev\tools
\jdk1.6.0_07\win32\jre\classes
Setting project property: ivy.build.artifacts.dir.ivy.instance -> C:
\dev\newsdf\modules\testivysvn/build/artifacts
Setting project property: ivy.settings.dir -> C:\dev\newsdf\modules
\testivysvn
Setting project property: ivy.settings.dir.ivy.instance -> C:\dev
\newsdf\modules\testivysvn
Setting project property: sun.desktop.ivy.instance -> windows
Setting project property: ivy.cache.ttl.default.ivy.instance -> 10s
Setting project property: sun.cpu.endian.ivy.instance -> little
Setting project property: ivy.conf.file -> C:\dev\newsdf\modules
\testivysvn\ivysettings.xml
Setting project property: ivy.conf.file.ivy.instance -> C:\dev\newsdf
\modules\testivysvn\ivysettings.xml
Setting project property: awt.toolkit.ivy.instance ->
sun.awt.windows.WToolkit
Setting project property: ivy.log.modules.in.use.ivy.instance -> false
Setting project property: sun.boot.library.path.ivy.instance -> C:\dev
\tools\jdk1.6.0_07\win32\jre\bin
Setting project property: java.home.ivy.instance -> C:\dev\tools
\jdk1.6.0_07\win32\jre
Setting project property: java.vm.name.ivy.instance -> Java HotSpot
(TM) Client VM
Setting project property: ivy.settings.url -> file:/C:/dev/newsdf/
modules/testivysvn/ivysettings.xml
Setting project property: ivy.settings.url.ivy.instance -> file:/C:/
dev/newsdf/modules/testivysvn/ivysettings.xml
Setting project property: java.endorsed.dirs.ivy.instance -> C:\dev
\tools\jdk1.6.0_07\win32\jre\lib\endorsed
Setting project property: basedir.ivy.instance -> C:\dev\newsdf\modules
\testivysvn
Setting project property: rsi.fs.root -> c:\dev\newsdf\rsiivy
Setting project property: rsi.fs.root.ivy.instance -> c:\dev\newsdf
\rsiivy
Setting project property: sun.management.compiler.ivy.instance ->
HotSpot Client Compiler
Setting project property: java.runtime.name.ivy.instance -> Java(TM)
SE Runtime Environment
Setting project property: ant.home.ivy.instance -> C:\dev\tools\apache-
ant-1.7.0
Setting project property: ivy.conf.url -> file:/C:/dev/newsdf/modules/
testivysvn/ivysettings.xml
Setting project property: ivy.conf.url.ivy.instance -> file:/C:/dev/
newsdf/modules/testivysvn/ivysettings.xml
Setting project property: ivy.default.ivy.user.dir -> C:\Documents and
Settings\jnewsham\.ivy2
Setting project property: ivy.default.ivy.user.dir.ivy.instance -> C:
\Documents and Settings\jnewsham\.ivy2
Setting project property: ivy.retrieve.pattern.ivy.instance -> C:\dev
\newsdf\modules\testivysvn/lib/[artifact]-[revision](-[classifier]).
[ext]
Setting project property: java.library.path.ivy.instance -> C:\dev
\tools\jdk1.6.0_07\win32\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS
\system32;C:\WINDOWS;"C:\dev\tools\apache-ant-1.7.0\bin";"C:\dev\tools
\jdk1.6.0_07\win32\bin";"C:\dev\tools\jdk1.6.0_07\win32\jre\bin";"C:
\dev\tools\svn-win32-1.4.0\bin";"C:\dev\tools\cruisecontrol2.2\main";C:
\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files
\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files
\Roxio Shared\9.0\DLLShared\;c:\Program Files\Microsoft SQL Server
\90\Tools\binn\;C:\programs\svn-win32-1.5.4\bin;C:\Program Files
\TortoiseSVN\bin
Setting project property: ivy.basedir -> C:\dev\newsdf\modules
\testivysvn
Setting project property: ivy.basedir.ivy.instance -> C:\dev\newsdf
\modules\testivysvn
Setting project property: file.separator.ivy.instance -> \
Setting project property: ivy.default.conf.dir -> jar:file:/C:/dev/
tools/apache-ant-1.7.0/lib/ivy-2.0.0-rc2.jar!/org/apache/ivy/core/
settings
Setting project property: ivy.default.conf.dir.ivy.instance ->
jar:file:/C:/dev/tools/apache-ant-1.7.0/lib/ivy-2.0.0-rc2.jar!/org/
apache/ivy/core/settings
Setting project property: ivy.buildlist.ivyfilepath.ivy.instance ->
ivy.xml
Setting project property: java.specification.vendor.ivy.instance ->
Sun Microsystems Inc.
Setting project property: java.vm.specification.version.ivy.instance -
> 1.0
Setting project property:
ivy.default.always.check.exact.revision.ivy.instance -> false
Setting project property: sun.java.launcher.ivy.instance ->
SUN_STANDARD
Setting project property: user.timezone.ivy.instance -> Pacific/
Honolulu
Setting project property: os.name.ivy.instance -> Windows XP
Setting project property: path.separator.ivy.instance -> ;
Setting project property: java.ext.dirs.ivy.instance -> C:\dev\tools
\jdk1.6.0_07\win32\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
Setting project property: sun.arch.data.model.ivy.instance -> 32
Setting project property:
ivy.resolver.default.check.modified.ivy.instance -> false
Setting project property: os.version.ivy.instance -> 5.1
Setting project property: java.specification.name.ivy.instance -> Java
Platform API Specification
Setting project property: ivy.deliver.ivy.pattern.ivy.instance -> C:
\dev\newsdf\modules\testivysvn/distrib/[type]s/[artifact]-[revision](-
[classifier]).[ext]
Setting project property: rsi.svn.ivyrepos -> http://geonosis/repos/referentia/ivyrepos
Setting project property: rsi.svn.ivyrepos.ivy.instance ->
http://geonosis/repos/referentia/ivyrepos
Setting project property: ivy.default.settings.dir -> jar:file:/C:/dev/
tools/apache-ant-1.7.0/lib/ivy-2.0.0-rc2.jar!/org/apache/ivy/core/
settings
Setting project property: ivy.default.settings.dir.ivy.instance ->
jar:file:/C:/dev/tools/apache-ant-1.7.0/lib/ivy-2.0.0-rc2.jar!/org/
apache/ivy/core/settings
Setting project property: java.class.version.ivy.instance -> 50.0
Setting project property: user.country.ivy.instance -> US
Setting project property: ivy.lib.dir.ivy.instance -> C:\dev\newsdf
\modules\testivysvn/lib
Setting project property: java.vendor.ivy.instance -> Sun Microsystems
Inc.
Setting project property: java.vm.specification.name.ivy.instance ->
Java Virtual Machine Specification
Setting project property: rsi.ivy.pattern -> [organisation]/[module]/
[revision]/[type]s/[artifact].[ext]
Setting project property: rsi.ivy.pattern.ivy.instance ->
[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
Setting project property: java.specification.version.ivy.instance ->
1.6
Setting project property: ivy.dep.file.ivy.instance -> ivy.xml

resolve-dependencies:
Setting project property: ivy.version -> 2.0.0-rc2
[ivy:retrieve] parameter not found: ivy.organisation
[ivy:retrieve] parameter not found: ivy.module
[ivy:retrieve] parameter not found: ivy.resolved.file
[ivy:retrieve] using standard ensure resolved
[ivy:retrieve] parameter not found: ivy.resolved.configurations
[ivy:retrieve] calculating configurations to resolve
[ivy:retrieve] module not yet resolved, all confs still need to be
resolved
[ivy:retrieve] no resolved descriptor found: launching default resolve
Overriding previous definition of property "ivy.version"
Setting project property: ivy.version -> 2.0.0-rc2
[ivy:retrieve] parameter found as attribute value:
ivy.configurations=*
[ivy:retrieve] parameter found as ivy variable:
ivy.resolve.default.type.filter=*
[ivy:retrieve] parameter found as ivy variable: ivy.dep.file=ivy.xml
[ivy:retrieve] using ivy parser to parse file:/C:/dev/newsdf/modules/
testivysvn/ivy.xml
[ivy:retrieve] post 1.3 ivy file: using exact as default matcher
[ivy:retrieve] :: resolving dependencies ::
test#testivysvn;working@rsi-eng-newsham
[ivy:retrieve] confs: [default]
[ivy:retrieve] validate = true
[ivy:retrieve] refresh = false
[ivy:retrieve] resolving dependencies for configuration 'default'
[ivy:retrieve] == resolving dependencies for
test#testivysvn;working@rsi-eng-newsham [default]
[ivy:retrieve] loadData of test#testivysvn;working@rsi-eng-newsham of
rootConf=default
[ivy:retrieve] == resolving dependencies test#testivysvn;working@rsi-
eng-newsham->org.swinglabs#swingx;0.9.1 [default->*]
[ivy:retrieve] loadData of org.swinglabs#swingx;0.9.1 of
rootConf=default
[ivy:retrieve] using svn to resolve org.swinglabs#swingx;0.9.1
[ivy:retrieve] no ivy file in cache for org.swinglabs#swingx;0.9.1:
tried C:\dev\newsdf\modules\testivysvn\cache\org.swinglabs\swingx
\ivy-0.9.1.xml
[ivy:retrieve] trying org.swinglabs/swingx/0.9.1/ivys/ivy.xml
[ivy:retrieve] tried org.swinglabs/swingx/0.9.1/ivys/ivy.xml
[ivy:retrieve] Resolving resource for
http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/ivys/ivy.xml
[revision=-1]
[ivy:retrieve] Adding SVN user/pass authentication
[ivy:retrieve] ERROR: Error resolving resource
http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/ivys/ivy.xml,
svn: Authentication required for '<http://geonosis:80> Subversion
Repository'
[ivy:retrieve] svn: resource not reachable for org.swinglabs#swingx;
0.9.1: res=http://geonosis/repos/referentia/ivyrepos/org.swinglabs/
swingx/0.9.1/ivys/ivy.xml
[ivy:retrieve] trying org.swinglabs/swingx/0.9.1/jars/swingx.jar
[ivy:retrieve] tried org.swinglabs/swingx/0.9.1/jars/swingx.jar
[ivy:retrieve] Resolving resource for
http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/jars/swingx.jar
[revision=-1]
[ivy:retrieve] ERROR: Error resolving resource
[ivy:retrieve] svn: resource not reachable for org.swinglabs#swingx;
0.9.1: res=http://geonosis/repos/referentia/ivyrepos/org.swinglabs/
swingx/0.9.1/jars/swingx.jar
[ivy:retrieve] svn: no ivy file nor artifact found for
org.swinglabs#swingx;0.9.1
[ivy:retrieve] WARN: module not found: org.swinglabs#swingx;0.9.1
[ivy:retrieve] WARN: ==== svn: tried
[ivy:retrieve] WARN: org.swinglabs/swingx/0.9.1/ivys/ivy.xml
[ivy:retrieve] WARN: -- artifact org.swinglabs#swingx;0.9.1!
swingx.jar:
[ivy:retrieve] WARN: org.swinglabs/swingx/0.9.1/jars/swingx.jar
[ivy:retrieve] Nbr of module to sort : 0
[ivy:retrieve] resolved ivy file produced in C:\dev\newsdf\modules
\testivysvn\cache\resolved-test-te...@rsi-eng-newsham.xml
[ivy:retrieve] :: downloading artifacts ::
[ivy:retrieve] :: resolution report :: resolve 344ms :: artifacts dl
0ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 1 | 0 | 0 | 0 || 0 | 0 |
---------------------------------------------------------------------
[ivy:retrieve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] WARN: :: UNRESOLVED DEPENDENCIES ::
[ivy:retrieve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] WARN: :: org.swinglabs#swingx;0.9.1: not found
[ivy:retrieve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] Nbr of module to sort : 0
[ivy:retrieve] report for test#testivysvn;working@rsi-eng-newsham
default produced in C:\dev\newsdf\modules\testivysvn\cache\test-
testivysvn-default.xml
[ivy:retrieve] resolve done (344ms resolve - 0ms download)
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] module not found: org.swinglabs#swingx;0.9.1
[ivy:retrieve] ==== svn: tried
[ivy:retrieve] org.swinglabs/swingx/0.9.1/ivys/ivy.xml
[ivy:retrieve] -- artifact org.swinglabs#swingx;0.9.1!swingx.jar:
[ivy:retrieve] org.swinglabs/swingx/0.9.1/jars/swingx.jar
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: UNRESOLVED DEPENDENCIES ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: org.swinglabs#swingx;0.9.1: not found
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :::: ERRORS
[ivy:retrieve] Error resolving resource
http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/ivys/ivy.xml,
svn: Authentication required for '<http://geonosis:80> Subversion
Repository'
[ivy:retrieve] Error resolving resource
http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/jars/swingx.jar,
svn: Authentication required for '<http://geonosis:80> Subversion
Repository'
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
C:\dev\newsdf\modules\testivysvn\build.xml:12: impossible to resolve
dependencies:
resolve failed - see output for details
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:315)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.ivy.ant.IvyPostResolveTask.ensureResolved
(IvyPostResolveTask.java:207)
at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck
(IvyPostResolveTask.java:154)
at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:49)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: resolve failed - see output for details
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:241)
... 22 more
--- Nested Exception ---
resolve failed - see output for details
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:241)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.ivy.ant.IvyPostResolveTask.ensureResolved
(IvyPostResolveTask.java:207)
at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck
(IvyPostResolveTask.java:154)
at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:49)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 0 seconds

Xavier Hanin

unread,
Dec 30, 2008, 3:29:14 PM12/30/08
to ivy...@googlegroups.com
Hi,

FYI, I'm using ivysvn 2.0.0-rc1 + ivy 2.0.0-rc2 with http authentication and it works perfectly. I don't know what's the difference between your setup and mine, in my case I use apache to serve the svn repo, and use https rather than regular http. I also have commons-httpclient 3.1 in my ant lib directory, not sure if it matters or not for ivysvn (I doubt so).

Xavier
--
Xavier Hanin - 4SH France
BordeauxJUG co leader - http://www.bordeauxjug.org/
Blogger - http://xhab.blogspot.com/
Apache Ivy Creator - http://ant.apache.org/ivy/

Jim

unread,
Jan 5, 2009, 6:25:42 PM1/5/09
to ivysvn

Hi,

I tried adding commons-httpclient-3.1.jar to the ant lib dir, but the
result is the same. I don't know what the svn repository looks like,
but I think they may be using apache.

Jim

On Dec 30 2008, 10:29 am, "Xavier Hanin" <xavier.ha...@gmail.com>
wrote:
> Hi,
> FYI, I'm using ivysvn 2.0.0-rc1 + ivy 2.0.0-rc2 with http authentication and
> it works perfectly. I don't know what's the difference between your setup
> and mine, in my case I use apache to serve the svn repo, and use https
> rather than regular http. I also have commons-httpclient 3.1 in my ant lib
> directory, not sure if it matters or not for ivysvn (I doubt so).
>
> Xavier
>
> On Wed, Dec 24, 2008 at 9:22 PM, Jim <jim.news...@gmail.com> wrote:
>
> > Hi Adrian,
>
> > Thanks for the reply.  I tried using ivysvn@trunk, but the result is
> > the same.  I'll post my ivysettings.xml and the full output from ant -
> > d below.  Here is what looks like the relevant excerpt from ant -d:
>
> > [ivy:retrieve] Resolving resource for
>
> >http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/...
> > [revision=-1]
> > [ivy:retrieve] Adding SVN user/pass authentication
> > [ivy:retrieve] ERROR: Error resolving resource
>
> >http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/...
> > ,
> > svn: Authentication required for '<http://geonosis:80> Subversion
> > Repository'
> > [ivy:retrieve]  svn: resource not reachable for org.swinglabs#swingx;
> > 0.9.1: res=http://geonosis/repos/referentia/ivyrepos/org.swinglabs/
> > swingx/0.9.1/ivys/ivy.xml<http://geonosis/repos/referentia/ivyrepos/org.swinglabs/swingx/0.9.1/...>
> > referentia/ivyrepos <http://geonosis/repos/referentia/ivyrepos>"
> ...
>
> read more »

Adrian Woodhead

unread,
Jan 6, 2009, 5:36:20 AM1/6/09
to ivy...@googlegroups.com, jim.n...@gmail.com
Hey Jim,

I've done some digging and it looks like SVNKit (the library IvySvn uses
to communicate with Subversion) works a bit differently with HTTP
authentication. Can you please try two things for me and let me know
what happens?

First, can you set a system property when you call Ant, something like so:

ant -Dsvnkit.http.methods=Basic,Digest,NTLM retrieve

And see if this makes any difference?

Secondly, if you could modify the code in SvnUtils.java on line 150 and
replace the creation of the authManager with the following:

BasicAuthenticationManager authManager = new BasicAuthenticationManager(
"login" , "password" );

(replacing login and password with values for your setup) and then
rebuild IvySvn and try with that? You might need to comment out this
line too (unsure):

repository.setAuthenticationManager(authManager);

If the repository you are connecting to uses NTLM auth you can provide
the domain name as the first param to the constructor for the
BasicAuthenticationManager as "DOMAIN\\login" instead of just "login".

I will try setup an http auth environment myself when I get a chance but
I have quite a busy week ahead of me.

Regards,

Adrian

Jim

unread,
Jan 7, 2009, 2:43:10 PM1/7/09
to ivysvn

Hi Adrian,

Thanks for continuing to help me on this. I tried the suggestions you
gave, but nothing worked.

1. Regarding -D in ant... does that actually set a system property,
or just an ant property? I was unaware that one could do this. At
any rate, setting the property using -D on the command line did not
help.

2. Regarding the ivysvn source code changes, I tried all four
combinations (with/without domain prefix, and with/without the
repository.setAuthManager() line commented out). Nothing worked, but
the error message was slightly different when commenting out
setAuthManager(). For example:

Before commenting out "repository.setAuthenticationManager
(authManager)":

[ivy:resolve] Error resolving resource
http://geonosis/repos/referentia/ivyrepos/sdf/trunk/published/org.apache.common
s/commons-logging/1.0.4/ivys/ivy.xml, svn: Authentication required for
'<http://geonosis:80> Subversion Repository'
[ivy:resolve] Error resolving resource
http://geonosis/repos/referentia/ivyrepos/sdf/trunk/published/org.apache.common
s/commons-logging/1.0.4/jars/commons-logging.jar, svn: Authentication
required for '<http://geonosis:80> Subversion Repo
sitory'

After commenting out "repository.setAuthenticationManager
(authManager)":

[ivy:resolve] Error resolving resource
http://geonosis/repos/referentia/ivyrepos/sdf/trunk/published/com.adventnet/adv
entnet-snmp/4-SP-4/ivys/ivy.xml, svn: OPTIONS of '/repos/referentia/
ivyrepos/sdf/trunk/published/com.adventnet/adventnet
-snmp/4-SP-4/ivys/ivy.xml': 401 Authorization Required (http://
geonosis)
[ivy:resolve] Error resolving resource
http://geonosis/repos/referentia/ivyrepos/sdf/trunk/published/com.adventnet/adv
entnet-snmp/4-SP-4/jars/adventnet-snmp.jar, svn: OPTIONS of '/repos/
referentia/ivyrepos/sdf/trunk/published/com.adventne
t/adventnet-snmp/4-SP-4/jars/adventnet-snmp.jar': 401 Authorization
Required (http://geonosis)

Regards,
Jim

P.S. My credentials are tied to the domain (my Windows login); I
guess that's what NTLM is. When failing to authenticate properly too
many times with ivysvn, my login gets suspended and I have to talk to
IT. On the first day trying ivysvn, ivy tried to locate all 20 or so
of my modules through ivysvn, and I learned right away that I needed a
scaled down test case in order not to get locked out. ;). Might be a
good idea not to try to authenticate with the same server again, after
login fails once.
> ...
>
> read more »

Mass Dosage

unread,
Jan 12, 2009, 6:03:11 AM1/12/09
to ivy...@googlegroups.com
When you specify the connection credentials for NTLM do you specify the domain as part of your user name? (DOMAIN\\user) I'm not sure whether this is required or not

Also, I know that SVNKit introduced a new implementation of NTLM recently so something could be going wrong there (I see one issue mentioned here - http://svnkit.com/tracker/view.php?id=283). My suggestion would be to write a very simple test case, separate from IvySvn which uses SVNKit to authenticate and then perform a single simple SVN call to see if the authentication was successful. If that doesn't work then we can take this discussion over to the SVNKit mailing list (they are very good at responding) and see if they can help us.

2009/1/7 Jim <jim.n...@gmail.com>

Adrian Woodhead

unread,
Jan 12, 2009, 11:31:05 AM1/12/09
to ivy...@googlegroups.com
Hey Jim,

See attached for a test case. I tried this against an Apache webserver
with http BASIC authentication and it works just fine (authenticates,
connects and prints the latest revision), with no need for the setting
of any system properties or anything else. Can you try it against your
server and see what error you get? This should hopefully help narrow
down the issue.

Regards,

Adrian
SVNHttpAuthTest.java

Jim

unread,
Jan 12, 2009, 2:18:43 PM1/12/09
to ivysvn

Hi Adrian,

Thanks for the stand-alone test case. Unfortunately the result is the
same as before. Here is the output:

Exception in thread "main"
org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication
required for '<http://geonosis:80> Subversion Repository'
at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed
(SVNErrorManager.java:47)
at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.authenticationFailed
(SVNErrorManager.java:41)
at
org.tmatesoft.svn.core.auth.BasicAuthenticationManager.getNextAuthentication
(BasicAuthenticationManager.java:213)
at
org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request
(HTTPConnection.java:483)
at
org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request
(HTTPConnection.java:257)
at
org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request
(HTTPConnection.java:245)
at
org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities
(DAVConnection.java:454)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open
(DAVConnection.java:97)
at
org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection
(DAVRepository.java:643)
at
org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision
(DAVRepository.java:172)
at fm.last.ivy.plugins.svnresolver.SVNHttpAuthTest.main
(SVNHttpAuthTest.java:37)

In response to Mass Dosage' question, I have tried both with and
without the domain as part of the username. For example,
username=jnewsham and username=REFERENTIA\\jnewsham. My understanding
is that a single backslash is required, and that we are doubling it in
the properties file and in the source code to get a single literal
backslash.

Regards,
Jim Newsham

On Jan 12, 6:31 am, Adrian Woodhead <adr...@last.fm> wrote:
> Hey Jim,
>
> See attached for a test case. I tried this against an Apache webserver
> with http BASIC authentication and it works just fine (authenticates,
> connects and prints the latest revision), with no need for the setting
> of any system properties or anything else. Can you try it against your
> server and see what error you get? This should hopefully help narrow
> down the issue.
>
> Regards,
>
> Adrian
>
> Jim wrote:
> > Hi Adrian,
>
> > Thanks for continuing to help me on this. I tried the suggestions you
> > gave, but nothing worked.
>
> > 1.  Regarding -D in ant... does that actually set a system property,
> > or just an ant property?  I was unaware that one could do this.  At
> > any rate, setting the property using -D on the command line did not
> > help.
>
> > 2.  Regarding the ivysvn source code changes, I tried all four
> > combinations (with/without domain prefix, and with/without the
> > repository.setAuthManager() line commented out).  Nothing worked, but
> > the error message was slightly different when commenting out
> > setAuthManager().  For example:
>
> > Before commenting out "repository.setAuthenticationManager
> > (authManager)":
>
> > [ivy:resolve]   Error resolving resource
> >http://geonosis/repos/referentia/ivyrepos/sdf/trunk/published/org.apa...
> > s/commons-logging/1.0.4/ivys/ivy.xml, svn: Authentication required for
> > '<http://geonosis:80> Subversion Repository'
> > [ivy:resolve]   Error resolving resource
> >http://geonosis/repos/referentia/ivyrepos/sdf/trunk/published/org.apa...
> > s/commons-logging/1.0.4/jars/commons-logging.jar, svn: Authentication
> > required for '<http://geonosis:80> Subversion Repo
> > sitory'
>
> > After commenting out "repository.setAuthenticationManager
> > (authManager)":
>
> > [ivy:resolve]   Error resolving resource
> >http://geonosis/repos/referentia/ivyrepos/sdf/trunk/published/com.adv...
> > entnet-snmp/4-SP-4/ivys/ivy.xml, svn: OPTIONS of '/repos/referentia/
> > ivyrepos/sdf/trunk/published/com.adventnet/adventnet
> > -snmp/4-SP-4/ivys/ivy.xml': 401 Authorization Required (http://
> > geonosis)
> > [ivy:resolve]   Error resolving resource
> >http://geonosis/repos/referentia/ivyrepos/sdf/trunk/published/com.adv...
> ...
>
> read more »
>
>  SVNHttpAuthTest.java
> 1KViewDownload
Reply all
Reply to author
Forward
0 new messages