- 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 )
Building the generated Java code right
- ThomasLehmann
-
Topic Author
- Offline
- Fresh Boarder
-
Less More
2 years 6 months ago #5974 by ThomasLehmann
Hi,
recently I was struggling on how to integrate the generated Java code into a Maven project
since you're adding Modelio Annotations and the related imports. I found one example
where I can add following to the pom.xml
and this
However I was suprised to see how many stuff is download when running the build.
Anyway I think the only reason for the Annotations is that Modelio has support when
it comes to updating of the model from source, right?
Isn't there a more lite solution since the Java build doesn't require the annotations
nor the Modelio SDK?
Kind Regards,
Thomas
recently I was struggling on how to integrate the generated Java code into a Maven project
since you're adding Modelio Annotations and the related imports. I found one example
where I can add following to the pom.xml
<repositories>
<repository>
<id>modelio</id>
<url>http://repository.modelio.org</url>
</repository>
</repositories>
and this
<dependency>
<groupId>org.modelio</groupId>
<artifactId>MDAKit</artifactId>
<version>[3.0.0,)</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
However I was suprised to see how many stuff is download when running the build.
Anyway I think the only reason for the Annotations is that Modelio has support when
it comes to updating of the model from source, right?
Isn't there a more lite solution since the Java build doesn't require the annotations
nor the Modelio SDK?
Kind Regards,
Thomas
Please Log in or Create an account to join the conversation.
2 years 6 months ago #5977 by ebr
Hi,
You are right annotations are used for updating code for the source.
If you needs these annotations, you can just have a maven dependency to the specific jar containing them.
If you want to remove these annotations, you can change the Generation mode from "Round trip" to "Release". To do so, go to Configuration > Modules..., select Java designer and you will found the Generation Mode in the General group.
Hoping it helps,
EBR
You are right annotations are used for updating code for the source.
If you needs these annotations, you can just have a maven dependency to the specific jar containing them.
<dependency>
<groupId>org.modelio</groupId>
<artifactId>javadesigner</artifactId>
<version>[2.2.0,)</version>
<type>jar</type>
</dependency>
If you want to remove these annotations, you can change the Generation mode from "Round trip" to "Release". To do so, go to Configuration > Modules..., select Java designer and you will found the Generation Mode in the General group.
Hoping it helps,
EBR
Please Log in or Create an account to join the conversation.
Moderators: tma
Time to create page: 0.146 seconds