Hi,
I am essaying the modularity possibilities of JMIX and am trying to import a custom addon I have programmed in a test project (through the single addon wizard in JMIX Studio). I am following as explained in :
https://docs.jmix.io/jmix/modularity/creating-add-ons.html
but I am not getting through.
The custom addon builds fine. I need to produce the jars by executing the “build” gradle tasks in both the functional and the starter modules.
Then I locate the jars in the correspondent project subfolder and via a MVN command I install both jars in my local repository via the instruction:
mvn install:install-file -Dfile=centraladdon-0.0.1-SNAPSHOT.jar -DgroupId=com.sofia.addons.central -DartifactId=centraladdon -Dversion=0.0.1 -Dpackaging=jar
Everything works fine, and both jars get in the repository at the expected maven path.
Then I create a new project as JMIX application and int the build.gradle file I include “mavenLocal()” inside repositories for it to search in my local mvn repository and in dependencies add the line:
implementation “com.sofia.addons.central:centraladdon-starter:0.0.1”
which is the full path to my local mvn jar file
It builds fine.
However the classes defined in the functional model are not importable in any java file inside the target project.
Don’t know why. I have checked other projects where I imported custom libraries and the procedure was, if not identical, very similar.
In the guideline, it is stated that the functional jar should be transitively included via the starter jar.
Any help is greatly appreciated.
Regards,
Carlos.