- Posts: 3
- Thank you received: 0
Modelio 4.0.0 released (07 Nov 2019)
Modelio 4.0.0 has been released ( www.modelio.org/forum/4-announcements/45...-4-0-0-released.html )
Hello World / Maven Project Tutorial
[ERROR] Failed to execute goal org.modelio:modelio-maven-plugin:4.1.0.00:module-validation (ModuleValidation) on project helloworld: Execution ModuleValidation of goal org.modelio:modelio-maven-plugin:4.1.0.00:module-validation failed: A required class was missing while executing org.modelio:modelio-maven-plugin:4.1.0.00:module-validation: javax/xml/bind/JAXBException
[ERROR]
[ERROR] realm = plugin>org.modelio:modelio-maven-plugin:4.1.0.00
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/Maurice/.m2/repository/org/modelio/modelio-maven-plugin/4.1.0.00/modelio-maven-plugin-4.1.0.00.jar
[ERROR] urls[1] = file:/C:/Users/Maurice/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[2] = file:/C:/Users/Maurice/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
.....
.....
[ERROR] urls[15] = file:/C:/Users/Maurice/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
My version of Modelio, me2 and JDK are newer compared to the tutorial. Can someone help
Please Log in or Create an account to join the conversation.

Please Log in or Create an account to join the conversation.
From the error message I guess you are using JDK 11 .
'modelio-maven-plugin' uses the JAXB library, which has been removed from JDK since version 11.
Modelio is delevopped with Java 8 and is not compatible with Java 11.
The only solution for the moment is to use JDK 8 to make a Modelio module.
Regards,
CMA
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
<plugin>
<groupId>org.modelio</groupId>
<artifactId>modelio-maven-plugin</artifactId>
<version>5.1.0.00</version>
<executions>
<execution>
<id>ModuleValidation</id>
<phase>validate</phase>
<goals>
<goal>module-validation</goal>
</goals>
</execution>
<execution>
<id>ResourceManagement</id>
<phase>generate-resources</phase>
<goals>
<goal>module-configuration</goal>
</goals>
</execution>
</executions>
<configuration>
<moduleFile>${project.basedir}/src/main/conf/module.xml</moduleFile>
</configuration>
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
</plugin>
Please Log in or Create an account to join the conversation.