You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeroen Breedveld <je...@x-hive.com> on 2004/12/27 16:42:14 UTC

Overridding xerces jars

Hi all,

I need some help moving my project to Maven. It uses Xerces features
from W3C's DOM3 Load and Save spec. that are not compiled in the default
Xerces dist. So with these dependencies I got a lot of compile errors:

    <dependency>
      <groupId>xerces</groupId>
      <artifactId>xmlParserAPIs</artifactId>
      <version>2.6.2</version>
    </dependency> 

I overridden the xerces jars to use the ones I compiled myself. These
are the ones I use to successfully compile the project with Ant:

maven.jar.override = on

maven.jar.xercesImpl    = lib/dom3-xercesImpl.jar
maven.jar.xmlParserAPIs = lib/dom3-xml-apis.jar

Now I get less errors, but I still get these:

C:\cvs\xhive-diff\src\main\com\xhive\diff\Test.java:84: cannot resolve
symbol
symbol  : method createLSInput ()
location: interface org.w3c.dom.ls.DOMImplementationLS
    LSInput lsInput = impl.createLSInput();

So it seems to that another implementation of
org.w3c.dom.ls.DOMImplementationLS is still used. How can I see which
jars are actually used? Is there a command line parameter like -verbose
in Ant? 

Thanks and regards,

Jeroen

--

X-Hive Corporation
e-mail: jeroenb@x-hive.com
phone: +31 10 2818080
http://www.x-hive.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Overridding xerces jars

Posted by Brett Porter <br...@gmail.com>.
Try -X.

I know there are some problems because xerces is endorsed, and isn't
possible to override in a dependency, however this shouldn't matter
for compilation - onloy for running plugins and tests that are not
forked.

HTH,
Brett

On Mon, 27 Dec 2004 16:42:14 +0100, Jeroen Breedveld <je...@x-hive.com> wrote:
> Hi all,
> 
> I need some help moving my project to Maven. It uses Xerces features
> from W3C's DOM3 Load and Save spec. that are not compiled in the default
> Xerces dist. So with these dependencies I got a lot of compile errors:
> 
>     <dependency>
>       <groupId>xerces</groupId>
>       <artifactId>xmlParserAPIs</artifactId>
>       <version>2.6.2</version>
>     </dependency>
> 
> I overridden the xerces jars to use the ones I compiled myself. These
> are the ones I use to successfully compile the project with Ant:
> 
> maven.jar.override = on
> 
> maven.jar.xercesImpl    = lib/dom3-xercesImpl.jar
> maven.jar.xmlParserAPIs = lib/dom3-xml-apis.jar
> 
> Now I get less errors, but I still get these:
> 
> C:\cvs\xhive-diff\src\main\com\xhive\diff\Test.java:84: cannot resolve
> symbol
> symbol  : method createLSInput ()
> location: interface org.w3c.dom.ls.DOMImplementationLS
>     LSInput lsInput = impl.createLSInput();
> 
> So it seems to that another implementation of
> org.w3c.dom.ls.DOMImplementationLS is still used. How can I see which
> jars are actually used? Is there a command line parameter like -verbose
> in Ant?
> 
> Thanks and regards,
> 
> Jeroen
> 
> --
> 
> X-Hive Corporation
> e-mail: jeroenb@x-hive.com
> phone: +31 10 2818080
> http://www.x-hive.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org