PDF Issue - Library Dependency Resolution

Hi, How and where can I introduce something like below in my Mendix 6.5 project? <dependency> <groupid>xml-apis</groupid> <artifactid>xml-apis</artifactid> <version>1.4.01</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.9</version> <exclusions> <exclusion> <artifactId>xml-apis</artifactId> <groupId>xml-apis</groupId> </exclusion> </exclusions> </dependency> I am getting "java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal" while trying to generate a PDF. I have included xml-api1.4.01.jar in my project as well, but it is still unresolved. It strangely works when I run it from modeller. So i need to define dependency and exclusion because of conflicting poi and xml-api's. Any help is appreciated. Thanks, Sharad R K
1 answers

Maven is not used by Mendix but you can try the following.

  1. Create a new maven project in eclipse
  2. Include your depencies
  3. Run maven build
  4. Copy all downloaded/used jars to your mendix userlib.