Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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.

0 votes

Comments

are u using ant to run the build?

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 563
× 20

Question asked: Jul 01 '14, 1:11 a.m.

Question was seen: 5,643 times

Last updated: Jul 02 '14, 12:01 p.m.

Confirmation Cancel Confirm