file Building the generated Java code right

3 weeks 2 days 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
    <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.

3 weeks 1 day 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.
    <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
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: tma
Time to create page: 35.852 seconds
^ Back to Top