Previous: Getting the FuGE XSD
Project |
Up: Installation |
Next: Extending the FuGE
XSD |
What follows are the installation instructions for this STK. If followed correctly, you will have successfully generated the plain FuGE XSD, without any extra modifications or community extensions. If successful, you can then move on to creating your own community extension.
This FuGE toolkit can be installed on either Windows or Linux, and it may work on Mac systems, though it hasn't been tested.
These instructions are based on http://wiki.ficcs.org/ficcs/FuGE-to-XSD and the Andromda Forums , with further additions and modifications to suit this toolkit.
Please read through this section and ensure that you either install the missing software, or double-check that you already have the correct version of the software installed.
<settings>
<localRepository>/media/share/synched/Documents/.m2/repository/</localRepository>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host><a href="http://wwwcache.ncl.ac.uk/" target="_blank">my.proxy.host</a></host>
<port>8080</port>
</proxy>
</proxies>
</settings>
All sections are optional. However, depending on your circumstances, you may wish to use one or more of these settings. The "localRepository" element names a location separate from the default home directory for the Maven2 repository. This may be beneficial if you have limited space on your home directory, as this repository directory can grow quite large. The "proxies" element should only be used for those developers who must access the internet via a proxy.
$ mvn --version
Maven version: 2.0.7
Java version: 1.5.0_08
OS name: "linux" version: "2.6.17-12-386" arch: "i386"
mvn archetype:create -DgroupId=testapp -DartifactId=testapp
Check for the BUILD SUCCESSFUL message and, once you have received this message, please delete the created testapp folder.
This is the only AndroMDA artifact that we will install explicitly. All other artifacts, such as AndroMDA cartridges, will be automatically downloaded by the Maven2 scripts generated by the plugin. Install the plugin by following the steps below.
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>samples.test</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<name>test</name>
<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.andromda.maven.plugins</groupId>
<artifactId>andromdapp-maven-plugin</artifactId>
<version>3.2</version>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>andromda</id>
<name>AndroMDA Repository</name>
<url>http://team.andromda.org/maven2</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>andromda</id>
<name>AndroMDA Repository</name>
<url>http://team.andromda.org/maven2</url>
</pluginRepository>
</pluginRepositories></project>
mvn install
When you downloaded and installed the AndroMDA plugin for Maven 2, there was a small bug in one of the jars. (Details of this bug can be found on the AndroMDA forum , and thanks to Olga Tchuvatkina for including the instructions for fixing it.)
Without this fix, the XSDs generated will be virtually empty, containing only the top-level namespace information.
cp andromda-xmlschema-cartridge-3.2.jar $M2_REPO/org/andromda/cartridges/andromda-xmlschema-cartridge/3.2/
Change into the top-level trunk/ directory, and run this command:
mvn install
You should see a "BUILD SUCCESSFUL" message at the end of it. You must be connected to the internet for this step to work the first time you run it, as there will be many jars that need to be downloaded. Further AndroMDA-specific maven commands are available in the trunk/readme.txt generated by AndroMDA.
You will need a UML tool. AndroMDA has been tested with both ArgoUML 0.20 and MagicDraw 15.0 . However, MagicDraw 15.0 is the recommend UML Editor for the FuGE toolkits. You can download the Community Edition for free, if you are an academic.
You can auto-generate Java IDE project files using maven2. For example, to autogenerate IntelliJ files (please do this after successfully running mvn install ) change directory to the top-level directory and run the following command:
mvn idea:idea
There are other similar commands for IDEs such as Eclipse. Details can be found on the Maven website.
Previous: Getting the FuGE XSD
Project |
Up: Installation |
Next: Extending the FuGE
XSD |