Fornax-Platform Log In   View a printable version of the current page.  
  UML2-Project (AUML)
  Dashboard > Fornax-Platform > ... > Archetypes > UML2-Project (AUML)
General


Projects


Latest News



Global Reports
Find all pages that aren't linked from anywhere
Find all undefined pages
Feed for new pages
Added by Thorsten Kamann, last edited by Thorsten Kamann on Dec 18, 2006  (view change)
Labels: 
(None)

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://www.fornax-platform.org/m2/repository \
	-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

mvn -e install

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. 

Projectinformations (AUML) (Fornax-Platform)

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

Posted by Anonymous at Dec 23, 2006 16:55 | Permalink | Reply To This

... with the bugfix from thorsten (thanks) you must change the fornax-cartridges-uml2-javabasic-generator dependency (pom.xml) to version 1.0.1: 
 
<dependencies>
 <dependency>
  <groupId>org.fornax.cartridges</groupId>
  <artifactId>fornax-cartridges-uml2-javabasic-generator</artifactId>
  <version>1.0.1</version>
 </dependency>
</dependencies>
 
 
and add following bold line in the generated workflow file workflow.oaw:
 
 <cartridge id="JavaBasic-Cartridge Generator" file="org/fornax/cartridges/uml2/javabasic/cartridge.oaw">
  <outlet.src.dir value="$ {outlet.src.dir}"/>
     <outlet.src.once.dir value="${outlet.src.once.dir}"/>
     <expand.expression value="${expandExpression}"/>
     <profile.file value="${javabasic.profile.file}"/>
     <javabasic.profile  value="${javabasic.profile.file}"/>
 </cartridge>
 
-- berthold

Posted by Anonymous at Dec 24, 2006 11:46 | Permalink | Reply To This

You are faster than me...

 I have extended the documentation with a section documenting the use of the cartridge with your workflow descriptor: Installation (CJB)#Installation (CJB)-Addingthecartridgetoyourworkflow.oaw

Posted by Thorsten Kamann at Dec 24, 2006 12:20 | Permalink | Reply To This

There is a new SNAPSHOT of this archetype. This new version already defines the correct version.

Can you test this the next days?

Thanks
Thorsten

Posted by Thorsten Kamann at Dec 24, 2006 12:44 | Permalink | Reply To This

Hi Thorsten,

 Are you sure the 1.0.0-SNAPSHOT works?

I also needed to change it back to 1.0.1 as in the post before...

regards,

attila

Posted by Attila Bak at Dec 25, 2006 11:57 | Permalink | Reply To This

??? What do you change back? 1.0.1 is the newest release of the JavaBasic-Cartridge. There is no newer version...

Posted by Thorsten Kamann at Dec 26, 2006 00:41 | Permalink | Reply To This

OK. It works now.

Posted by Attila Bak at Dec 27, 2006 23:27 | Permalink | Reply To This

Is there a way to change the archetype to use oaw 4.1.2 instead of 4.1.1?

Posted by Anonymous at Aug 01, 2007 10:40 | Permalink | Reply To This

Yes of course, but you must do it, because we havent time enough for this.
Please checkout the project at http://fisheye3.cenqua.com/browse/fornax/trunk/archetypes/fornax-archetypes-uml2-project

The locate the file src/main/resources/archetype-resources/pom.xml and make the needed changes. After that you can simply call mvn install to install the archetype into your local repository.

Good luck!
Thorsten 

Posted by Thorsten Kamann at Aug 02, 2007 08:25 | Permalink | Reply To This
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators