Modelio icon indicating copy to clipboard operation
Modelio copied to clipboard

Unable to create a Modelio Module using Maven

Open ChrisVerschelden opened this issue 11 months ago • 3 comments

Description

I was trying to start the development of a Module for Modelio 5.4.1 following the Junit tutorial (setting up dev env) and so, using the https://repository.modelio.org/archetype-catalog.xml to build the base project. But the build is failing, giving me this error by the end. Image I believe that the nexus repo (http://10.78.1.39:8081/nexus/content/repositories/release) is down but I'd like to have your confirmation on that as I could very well be using this incorrectly.

Environment

  • System : Ubuntu 24.04.1 LTS
  • Eclipse version : 2025-03 (4.35)

ChrisVerschelden avatar Mar 12 '25 22:03 ChrisVerschelden

Same result here. The following address is unreachable: http://10.78.1.39:8081/nexus/content/repositories/release

nexasone avatar Jun 23 '25 14:06 nexasone

It is working now! Yet, when compiling using maven, have to set java to 17 due to some dependencies compiled with java 17.

nexasone avatar Jun 23 '25 17:06 nexasone

These are the errors that show up when trying to compile with java less than 17. [ERROR] Failed to execute goal �[32morg.modelio:modelio-maven-plugin:6.1.1.00:module-validation�[m �[1m(ModuleValidation)�[m on project �[36mDemoModule�[m: �[1;31mExecution ModuleValidation of goal org.modelio:modelio-maven-plugin:6.1.1.00:module-validation failed: An API incompatibility was encountered while executing org.modelio:modelio-maven-plugin:6.1.1.00:module-validation: java.lang.UnsupportedClassVersionError: org/modelio/gproject/data/module/JaxbModelPersistence has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0�[m [ERROR] �[1;31m-----------------------------------------------------�[m [ERROR] �[1;31mrealm = plugin>org.modelio:modelio-maven-plugin:6.1.1.00

nexasone avatar Jun 23 '25 17:06 nexasone