map-pin Workaround for creating modules on Modelio 3.3

3 years 8 months ago - 3 years 8 months ago #3270 by pan
Dear users,

It seems that the artefact for creating modules on Modelio 3.3.0 is not correct. Pending correction, here is some workarounds
to create modules successfully.

Modifications in pom.xml file
- Add
<attach>false</attach>
In the
<!-- Build zip -->
section (around line 125).
It avoids an error when packaging the module with Maven.
<configuration>
	<encoding>${project.build.sourceEncoding}</encoding>
	<descriptors>
		<descriptor>assembly.xml</descriptor>					
	</descriptors>
	<finalName>${project.artifactId}-${project.version}</finalName>
	<attach>false</attach>			
	<appendAssemblyId>false</appendAssemblyId>
</configuration>

Modifications in module.xml file
- In order to be able to deploy in the Modelio catalog, add the
<Dependencies/>
tag
at the end of the module.xml file (line juste before
</Module>
)
- In order to be able to select the module in a project, add the modify-model attribute for the Command tags. Example:
<Command id="CreateElementCommandExample" label="%CreateElementCommandExampleLabel" tooltip="%CreateElementCommandExampleTooltip" image="res/icons/Stereotype1_16.png" group="" modify-model="true" group-image="">
. The value should be true if the command results in a change in the model else if should be false.
- Add missing handlers in order to resolve problems with commands.
* In the following block:
<Command id="CreateElementCommandExample" label="%CreateElementCommandExampleLabel" tooltip="%CreateElementCommandExampleTooltip" image="res/icons/Stereotype1_16.png" group="" group-image="">
             <Scope metaclass="ModelTree"/>
	<Handler/>
</Command>
replace
<handler />
by
<Handler class="GenericElementCreationHandler">
	<HParameter name="metaclass" value="Class"/>
	<HParameter name="stereotype" value="stereotype1"/>
</Handler>
.
* In the following block:
<Command id="CreateDiagramCommandExample" label="%CreateDiagramCommandExampleLabel" tooltip="%CreateDiagramCommandExampleTooltip" image="res/icons/Stereotype2_16.png" group="" group-image="">
                <Scope metaclass="ModelTree"/>
                <Handler/>
</Command>
replace
<handler />
by
<Handler class="GenericDiagramCreationHandler">
	<HParameter name="metaclass" value="ClassDiagram"/>
	<HParameter name="stereotype" value="stereotype2"/>
</Handler>
.
- In order to create an element in a diagram, go to the Tool section and replace Scope-target by Scope-source.

Here is the default fixed module.xml.

File Attachment:

File Name: module_2015-03-20.zip
File Size:1 KB


Hope this helps.
Attachments:

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

3 years 8 months ago #3271 by pan
The archetype has been fixed so you do not need to follow these steps make the module work. Its version is 3.3.0.01.

Please note that the JDK 8 is required to package Modelio 3.3 modules.
We made our tests on Eclipse Luna (4.4).

BR
The following user(s) said Thank You: ua138

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

Moderators: tmachmaab
Time to create page: 0.047 seconds
^ Back to Top