Hi,

I use CDK as external library in a java-based project. I am experiencing
problems with the 'Classloader' and for this I would like to rebuild CDK
avoiding the inclusion of an specific dependency. The class which I think
is problematic (I must admit I am not 100% sure) is:

javax.xml.parsers.SAXParserFactory

This class is contained in the dependency:

xml-apis.xml-apis

I have detected this dependency in cdk/base/dict sub-project

        <dependency>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
            <version>1.3.03</version>
        </dependency>

and I have added the following line to the pom.xml contained in
cdk/base/dict/pom.xml :

        <dependency>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
            <version>1.3.03</version>
*            <scope>provided</scope>*
        </dependency>

Then, I have rebuilt the CDK project using the command:

$mvn clean compile package -Dmaven.test.skip=true

But the final .jar (contained in bundle/target) still contains the class:

javax.xml.parsers.SAXParserFactory

What am I doing wrong ? Could anybody give me a piece of advice to solve
this situation ?

thanks in advance

Oscar
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to