UML2-Project
This Maven2-Artchetype creates a UML2-Project. The JavaBasic-Cartridge is activated by default. If you have installed all the needed plugin in your Eclipse-IDE you can start modelling and generation out of the box.
Usage
The usage of this archetype is quite simple. At first you must create the project. For this choose a folder you want the project to create in.
Then open a console or the DOS-prompt (on windows):
mvn archetype:create \
-DarchetypeGroupId=org.fornax.archetypes \
-DarchetypeArtifactId=fornax-archetypes-uml2-project \
-DarchetypeVersion=1.0.0-SNAPSHOT \
-DremoteRepositories=http: -DgroupId=org.dummy \
-DartifactId=dummy-1
The values of -DgroupId and -DartifactId must be changed to reflect your wanted group and artifact name.
After the project is created ou must initial run the generator. For this change into the project directory and call
After the successfully run of the generator you can use Eclipse to import the project into your workspace.
Adding other cartridges to the project
This task is very easy to do. You only need to add the dependency to the cartridge you want to use to your project's pom. After this you need to change the workflow configuration. Now you can use the newly configurated cartridge.
The above archtype does not work. After generation you should change the version oft the dependent fornax-cartridges-uml2-javabasic-generator library from 1.0.0-Snapshot to 1.0.0 as follow:
<dependency>
<groupId>org.fornax.cartridges</groupId>
<artifactId>fornax-cartridges-uml2-javabasic-generator</artifactId>
<version>1.0.0</version>
</dependency>
-- berthold