ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kent Rosenkoetter <>
Subject Error parsing ivy.xml files using Jenkins
Date Mon, 21 Feb 2011 20:52:13 GMT

We have Jenkins (formerly Hudson) set up for our continuous build system, and I would like
to use the Ivy plugin for it. Right now we have half a dozen modules, each in their own directory
with their own Ivy-managed dependencies. We have freestyle projects set up that build fine
with our Ant build.xml files, but when I try to use the Jenkins Ivy plugin, I get an exception.

Parsing Ivy Descriptor Files

Parsing error while reading the ivy file /home/thudson/.hudson/workspace/Sandbox-HTTPConversion/AuthServer/ivy.xml

Parsing error while reading the ivy file /home/thudson/.hudson/workspace/Sandbox-HTTPConversion/CASRegistrationServer/ivy.xml

Parsing error while reading the ivy file /home/thudson/.hudson/workspace/Sandbox-HTTPConversion/CarrierInterfaceServer/ivy.xml

Parsing error while reading the ivy file /home/thudson/.hudson/workspace/Sandbox-HTTPConversion/ContentProxy/ivy.xml

Parsing error while reading the ivy file /home/thudson/.hudson/workspace/Sandbox-HTTPConversion/DataLayer/ivy.xml

Parsing error while reading the ivy file /home/thudson/.hudson/workspace/Sandbox-HTTPConversion/EcidCommon/ivy.xml

ERROR: Failed to parse ivy.xml files<>:
Unable to parse ivy descriptors

        at hudson.ivy.IvyModuleSetBuild$RunnerImpl.parseIvyDescriptorFiles(<$RunnerImpl.parseIvyDescriptorFiles&entity=method>

        at hudson.ivy.IvyModuleSetBuild$RunnerImpl.doRun(<$RunnerImpl.doRun&entity=method>

        at hudson.model.AbstractBuild$<$>



        at hudson.model.ResourceController.execute(<>


Caused by: java.lang.NullPointerException<>

        at org.apache.ivy.core.sort.CollectionOfModulesToSort.addToModulesByModuleId(<>

        at org.apache.ivy.core.sort.CollectionOfModulesToSort.<init>(<>

        at org.apache.ivy.core.sort.ModuleDescriptorSorter.<init>(<>

        at org.apache.ivy.core.sort.SortEngine.sortModuleDescriptors(<>

        at org.apache.ivy.Ivy.sortModuleDescriptors(<>

        at hudson.ivy.IvyModuleSetBuild$<$>

        at hudson.ivy.IvyModuleSetBuild$<$>

        at hudson.remoting.UserRequest.perform(<>

        at hudson.remoting.UserRequest.perform(<>

        at hudson.remoting.Request$<$>

        at java.util.concurrent.Executors$<$>

        at java.util.concurrent.FutureTask$Sync.innerRun(<$Sync.innerRun&entity=method>


        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(<$Worker.runTask&entity=method>

        at java.util.concurrent.ThreadPoolExecutor$<$>


Finished: FAILURE

Is this a bug in Jenkins/Hudson, a bug in Ivy, or simply a matter of our ivy.xml files not
having required information in them? For reference, our ivy.xml files look like this:

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.2"
      <info organisation="com.cequint" module="Foo" branch="platform" status="integration">
            <ivyauthor name="Cequint" url=""/>
            <conf name="compile" transitive="false" visibility="private" description="Compiles
the source into class files."/>
            <conf name="runtime" extends="compile" transitive="true" description="For running
systems that depend on this library."/>
            <conf name="build" extends="runtime" description="For use in an IDE, includes
source and JavaDoc."/>
            <conf name="test" extends="runtime" visibility="private" description="Build
the unit tests."/>
            <artifact type="jar" ext="jar">
                  <conf name="compile"/>
            <artifact type="javadoc" ext="jar" e:classifier="javadoc">
                  <conf name="build"/>
            <artifact type="source" ext="jar" e:classifier="sources">
                  <conf name="build"/>
            <dependency org="log4j" name="log4j" rev="1.2.16"/>
            <dependency org="org.apache.httpcomponents" name="httpcore" rev="4.1" />
            <dependency org="org.apache.httpcomponents" name="httpclient" rev="4.1" />
            <dependency org="javax.servlet" name="servlet-api" rev="2.5"/>
            <dependency org="junit" name="junit" rev="4.8.2" conf="test->default"/>

This is straight out of our source repository, which is why the revision is not specified.
All the Ivy files look like this, only some of them specify internal dependencies such as:
            <dependency name="Foo" rev="latest.integration" conf="build->build; *->runtime"/>

I appreciate any insight that anybody can offer. It seems likely I simply have not configured
everything properly, but so far nothing I have found online has given me a clue what could
be the problem.

-thank you,
Kent Rosenkoetter | SW Engineering – Server

Cequint Incorporated
1011 Western Avenue | Suite 800
Seattle | WA | 98104

p:  206.576.7258
f:   206.299.9127<>

Confidential Information – this email and any and all attachments to it are Cequint's confidential
information and intended solely for the use of the individual or entity to whom they are addressed.
Any unauthorized disclosure or forwarding of this email or any files transmitted with it constitutes
a breach of your confidentiality obligations to Cequint. If you have received this email in
error, please notify the sender, delete this email from your system and do not disseminate,
distribute or copy this email or the files attached to it.  Please treat all documents shared
from Cequint as confidential.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message