Hi Oscar,

Just a hunch but might also need to exclude xom also - xom depends on xml-apis 
(see here http://mvnrepository.com/artifact/xom/xom/1.2.5).

> [WARNING] xml-apis-1.3.03.jar, xpp3-1.1.4c.jar define 1 overlappping classes: 
> [WARNING]   - javax.xml.namespace.QName
> [WARNING] xom-1.2.5.jar, xml-apis-1.3.03.jar define 1 overlappping classes: 
> [WARNING]   - org.w3c.dom.UserDataHandler

J

On Sep 3, 2014, at 7:06 PM, Oscar Mora <oscarmorape...@gmail.com> wrote:

> 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

------------------------------------------------------------------------------
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