It's all about the answers!

Ask a question

Hudson Build failed - It is not recognizing the jar added in class-path.


Richa Bansal (612) | asked Jul 01 '14, 1:11 a.m.
edited Jul 01 '14, 1:13 a.m.
I am using the xmlunit jar to compare two xml files.
The xmlunit jar is suitably added in the build path (from eclipse) and the same is reflected in the .classpath (A new entry with a <classpathentry> tag)
My code is running fine in eclipse.

we have an exclusive Hudson job to take care of the continuous integration. The hudson refers to a predefined source repository and the source repository contains the classpath with xmlunit classpathentry. However, whn i give a build at Hudson, it always get failed. And showing the error " import org.custommonkey.xmlunit.* " is not resolved.
It is not recognizing the jar.
Can anyone please help me out..

Thanks in advance.

Comments
sam detweiler commented Jul 01 '14, 7:36 a.m.

are u using ant to run the build?


Nick Edgar commented Jul 02 '14, 12:01 p.m. | edited Jul 02 '14, 12:01 p.m.
JAZZ DEVELOPER

Yes, how is the XMLUnit step run? If run from Ant, then the Ant command should include: -lib path_to/xmlunit.jar

Neither Jenkins nor standalone Ant know about Eclipse's .classpath file. 

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.