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 jonathan doklovic <jd...@ibsys.com> on 2007/11/27 19:48:29 UTC
Classpath issue in ant
Hi,
I'm trying to use the svn-ant library and I'm having a problem when ivy
tries to load my settings file.
I've put the ivysvnresolver and related jars in my ant/lib directory.
When I try to load settings and do a simple resolve, i get this:
build.xml:12: impossible to configure ivy:settings with given
file: /home/jdoklovic/.ivy2/settings/ivy-settings.xml :java.text.ParseException: failed to load settings from file:/home/jdoklovic/.ivy2/settings/ivy-settings.xml: problem in config file: failed to load settings from file:/home/jdoklovic/.ivy2/settings/ivysettings-shared-svn.xml: impossible to define new type: class not found: fm.last.ivy.plugins.svnresolver.SvnResolver in [] nor Ivy classloader
here's my build.xml:
<project name="ivy-test" default="default"
xmlns:ivy="antlib:org.apache.ivy.ant">
<property file="build.properties" />
<import file="ivy-targets.ant"/>
<target name="default">
<ivy:settings id="ivy.instance"
file="/home/jdoklovic/.ivy2/settings/ivy-settings.xml"/>
<ivy:resolve />
</target>
</project>
and here's the ivysettings-shared-svn.xml it's complaining about
<ivysettings>
<property name="ivy.shared.svn.root"
value="DOMAIN_REMOVED/ivy/trunk/repo"/>
<typedef name="svn"
classname="fm.last.ivy.plugins.svnresolver.SvnResolver"/>
−
<resolvers>
−
<svn name="shared-svn" username="${svn.user.name}"
userpassword="${svn.user.password}">
<ivy pattern="svn
+ssh://${ivy.shared.svn.root}/${ivy.default.ivy.pattern}"/>
<artifact pattern="svn
+ssh://${ivy.shared.svn.root}/${ivy.default.artifact.pattern}"/>
</svn>
</resolvers>
</ivysettings>
any ideas?
Thanks,
- Jonathan
Re: Classpath issue in ant
Posted by Xavier Hanin <xa...@gmail.com>.
On Nov 27, 2007 7:48 PM, jonathan doklovic <jd...@ibsys.com> wrote:
> Hi,
>
> I'm trying to use the svn-ant library and I'm having a problem when ivy
> tries to load my settings file.
>
> I've put the ivysvnresolver and related jars in my ant/lib directory.
>
> When I try to load settings and do a simple resolve, i get this:
>
> build.xml:12: impossible to configure ivy:settings with given
> file: /home/jdoklovic/.ivy2/settings/ivy-settings.xml :
> java.text.ParseException: failed to load settings from
> file:/home/jdoklovic/.ivy2/settings/ivy-settings.xml: problem in config
> file: failed to load settings from
> file:/home/jdoklovic/.ivy2/settings/ivysettings-shared-svn.xml: impossible
> to define new type: class not found:
> fm.last.ivy.plugins.svnresolver.SvnResolver in [] nor Ivy classloader
Maybe Ivy swallow the detail about the origin of the classnotfound, maybe
you're missing a dependency of the
fm.last.ivy.plugins.svnresolver.SvnResolver. Do you have all ivy-svn
dependencies in your antlib as well? If you do be sure to double check the
spelling of the classname. And be sure you put the files in the ant lib you
use, you can use ant -diagnostics to be sure and help diagnose the problem.
Xavier
>
> here's my build.xml:
>
> <project name="ivy-test" default="default"
> xmlns:ivy="antlib:org.apache.ivy.ant">
>
> <property file="build.properties" />
> <import file="ivy-targets.ant"/>
>
> <target name="default">
> <ivy:settings id="ivy.instance"
> file="/home/jdoklovic/.ivy2/settings/ivy-settings.xml"/>
> <ivy:resolve />
> </target>
> </project>
>
> and here's the ivysettings-shared-svn.xml it's complaining about
>
> <ivysettings>
> <property name="ivy.shared.svn.root"
> value="DOMAIN_REMOVED/ivy/trunk/repo"/>
> <typedef name="svn"
> classname="fm.last.ivy.plugins.svnresolver.SvnResolver"/>
> −
> <resolvers>
> −
> <svn name="shared-svn" username="${svn.user.name}"
> userpassword="${svn.user.password}">
> <ivy pattern="svn
> +ssh://${ivy.shared.svn.root}/${ivy.default.ivy.pattern}"/>
> <artifact pattern="svn
> +ssh://${ivy.shared.svn.root}/${ivy.default.artifact.pattern}"/>
> </svn>
> </resolvers>
> </ivysettings>
>
>
> any ideas?
>
> Thanks,
>
> - Jonathan
>
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/