Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to add jaxen dependency in pom.xml #111

Closed
yuzhougit opened this issue Nov 5, 2015 · 3 comments
Closed

Need to add jaxen dependency in pom.xml #111

yuzhougit opened this issue Nov 5, 2015 · 3 comments
Milestone

Comments

@yuzhougit
Copy link

@khmarbaise
Test below code:

           String jobName = "Test";
           String xml = jenkins.getJobXml(jobName);
           JobConfiguration jobConf = new JobConfiguration(xml);
           jobConf.addStringParam("tt", "Test parameter", "1");

I found it failed with below exception:

java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
    at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
    at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
    at org.dom4j.tree.AbstractNode.selectNodes(AbstractNode.java:164)
    ...
    ... 29 more

I found the cause is that no jaxen dependency in pom.xml.
I guess you guys did not meet it because jenkins-test-harness has an indirect dependency to jaxen. But jenkins-test-harness only be depended in test scope.

@khmarbaise khmarbaise added this to the Release 0.3.3 milestone Nov 7, 2015
@khmarbaise
Copy link
Member

Many thanks for finding it...and yes you are unfortunately right...

@khmarbaise
Copy link
Member

Hi yuzhougit, can you please check if this will fix the problem?

@yuzhougit
Copy link
Author

@khmarbaise , i validated your fix, it works fine. Thanks for your quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants