Dependency management for modules - Mendix Forum

Dependency management for modules

53

You've probably seen one or more module(s) that says in its documentation that there is a dependency to another module. Also, modules with Java actions often depend on Java libraries which are put in the userlib folder, but don’t get deleted when you remove the module or when you import a new version of the module which uses other (versions of) libraries.

My suggestion is to build in some kind or dependency management in the modeler for modules and their libraries. In the Java development community, developers often use Apache Maven or Gradle.

For example: I would like to be able to create my module and configure that it depends on the Community Commons module and the Apache Commons Lang Java library. The modeler then automatically downloads the dependencies for me. Unused Java libraries are removed from the userlib folder. After publishing or exporting the module, the modeler does the same thing on import of the module into another project.

asked
5 answers

it would prevent errors like this:

https://forum.mendix.com/link/questions/86345

Real Low code users should not have problems with technical issues which can be prevented/solved

Created

Thanks Andries for relating the ideas!

Created

Related idea https://forum.mendix.com/link/ideas/2066

Created

Blog URL has changed to: https://www.mansystems.com/blog/mendix/managing-java-dependencies-for-mendix-modules

Created

will be a big improvement! A lot of projects have struggles with jars.  Mansystems wrote a blog about this; https://www.mansystems.com/managing-java-dependencies-for-mendix-modules/

Created