File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven xml-api dependency Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Maven xml-api dependency" Watch "Maven xml-api dependency" New topic
Author

Maven xml-api dependency

Juan Luis Prieto
Greenhorn

Joined: Sep 25, 2009
Posts: 13
Hi
I'm having a problem getting the correct xml-apis.
I am alwasys getting the xml-apis-1.0.b2.jar even having in my pom explicity that I want to use the 2.0.2 version of it.


The problem is that in the implementation that they have for the org.w3c.dom.Element they don't have implemented all the methods as with the implementation that comes with the java 1.6.0_11 jdk that I have installed. Thus the function bellow doesn't work because the version 1.0.b2 doesnt have the method setTextContent implemented and the compilation fails.

Is it there any way of changing this to force it to use the 2.0.2 version? Or if not to use the api that comes with the jdk



Thanks
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3206

Have a look at the dependency graph to see where 1.0.2 is being pulled in from.


Cheers, Martijn - Blog, Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!
 
 
subject: Maven xml-api dependency
 
developer file tools