Thingworx Java extension dependencies
Hello,
I look for the good practice of dependencies management across multiple Java extensions.
I work on a project where we have developed multiple Java extensions and where we use standard extensions. We always facing troubles with JAR dependencies across extensions and we finish to comment jar resource dependency within the metadata.xml in order to import extension.
Moreover in some cases we need to know the order of import of extensions.
For example:
- We have imported the extension DataExporter which contains the jar poi-4.0.0.jar
- We need to import a custom extension which depends on poi-4.1.2.jar
And from here we can't import our custom extension.
Checking ThingWorx system JARS conflict(s) detected [package: XXXXXX].
A workaround for this situation, as mentioned earlier, is to comment the poi-4.1.2.jar in the metadata.xml and rely on the existing jar poi-4.0.0.jar already imported in the platform.
Do you guys have a cleaner workflow?
Do you know if in future versions of Thingworx the class loader will be sandboxed by extension?
Thank you
Best regards

