lock [Solved] Cannot package module (in developer's tutorial)

5 years 1 week ago #3198 by ebr
Hi elcado,

Could you zip and share your sources ?

Thanks a lot,

EBR
The topic has been locked.
5 years 1 week ago - 5 years 1 week ago #3207 by elcado.net
Hi,

I rebuilt the project as I tried many times to get it works...

But I still have the same issue with the source enclosed here:

File Attachment:

File Name: jCFModule.zip
File Size:676 KB


Thx !
Attachments:
The topic has been locked.
5 years 1 day ago #3219 by elcado.net
Up :)

Any clue ?
The topic has been locked.
4 years 11 months ago - 4 years 11 months ago #3221 by pan
Hello elcado.net,

I think there is a problem with the archetype for the Modelio 3.3 modules. We will fix it asap.

It is possible to make your module work.
You should modify the module.xml file (which is located on src/main/conf/).
I attached the modified and fixed module.xml

File Attachment:

File Name: module.zip
File Size:1 KB


What we changed:
- We added a missing
<Dependencies/>
tag
- For Command tag, it was missing an attribute modify-model
- It was missing handler for creating some elements :
<Handler class="GenericDiagramCreationHandler">
                    <HParameter name="metaclass" value="ClassDiagram"/>
                    <HParameter name="stereotype" value="stereotype2"/>
                </Handler>
and
<Handler class="GenericElementCreationHandler">
                    <HParameter name="metaclass" value="Class"/>
                    <HParameter name="stereotype" value="stereotype1"/>
                </Handler>

Hope this helps.

BR
Attachments:
The topic has been locked.
4 years 11 months ago #3247 by elcado.net
Hi !

sorry for my late answer...

I will try your proposition asap !

I keep you in touch, thx !
The topic has been locked.
4 years 11 months ago - 4 years 11 months ago #3252 by INTO-CPS-Rasmus
Hi,

I'm not sure if the problem has been solved, but I had an identical problem, which I managed to solve with help.

1. There was a problem with the 3.3.0 archetype, so the module.xml was incorrect.
Warning: Spoiler! [ Click to expand ]



2. In the pom.xml add:
</descriptors> <finalName>${project.name}_${project.version}</finalName>
<attach>false</attach>
<appendAssemblyId>false</appendAssemblyId>
</configuration>

The module should now work in modelio.

3. As a last remark to use the "DiagramElementCreationExample" in modelio to craete a box, a change has to be made in the module.xml file being under tools:

<Scope-target metaclass="ModelTree"/>
change into
<Scope-source metaclass="ModelTree"/>

Regards
The topic has been locked.
Moderators: tmachmaab
Time to create page: 0.044 seconds
^ Back to Top