Xuse Installation Guide
This guide covers the intallation of Xuse version 01.00.XX. To see the installation instructions for version 00.02.00 please review the instructions here.
This document covers a basic installation of Xuse. There are two alternative installs for Xuse 01.00.XX:
Xuse standalone
This section describes how to install Xuse for xuse on the command line.
pre-requisites
The following needs to be installed on your system before you can start
- Java 1.5+: make sure you set the
JAVA_HOME
environment variable correctly.. - Graphviz. should be installed if you want Xuse to automatically produce diagrams from the requirements.
Download the released files
- Download the latest version of the Xuse release files (see downloads for more information)
- Windows
- Users are encouraged to use the installer
Xuse-01.00.00-SNAPSHOT-2010-03-05-Setup.exe
. - Once downloaded run the executable and follow the installer instructions.
- Users are encouraged to use the installer
- Linux
- Users should download the file
Xuse-01.00.00-SNAPSHOT-2010-03-05-Linux-x86-Install
- Alter the permissions to make it executable.
- Execute and follow the on-screen instructions
- [Optional] add the following to
.bashrc
(or equivalent)#Xuse additions alias xuse=xuse.sh
- Occasionally there is a build error where the script does not work on *nix environments due to windows characters. This can be fixed with the following command:
dos2unix $XUSE_HOME/bin/xuse.sh
- Users should download the file
- For all other operating systems, download the zip file and then:
- Extract the zip file to a location of your choice.
- Create and environment variable
XUSE_HOME
for this location - Add
$XUSE_HOME/bin
to thePATH
- [Optional for Unix/Linux environments] To make these environment variables permenant copy the following into your
.bashrc
(or equivalent) startup script.#Xuse additions XUSE_HOME=~/Xuse export XUSE_HOME if [ -d "$XUSE_HOME/bin" ] ; then PATH="$XUSE_HOME/bin:$PATH" fi alias xuse=xuse.sh
- On *nix: Set the shell script (
$XUSE_HOME/bin/xuse.sh
) to be executable - e.g.chmod +x $XUSE_HOME/bin/xuse.sh
- Occasionally there is a build error where the script does not work on *nix environments due to windows characters. This can be fixed with the following command:
dos2unix $XUSE_HOME/bin/xuse.sh
Xuse with Maven 2.x
This section describes how to install Xuse and the Maven 2 plugin associated with it. After you have completed these steps you should have successfully obtained a copy of Xuse and built the template project documentation.
pre-requisites
The following needs to be installed on your system before you can start
- Java 1.5.x SDK: make sure you set the
JAVA_HOME
environment variable correctly. Note it has to be the SDK not the JRE for Maven to work correctly. - Maven 2.x. Maven 2.0.9+ is recommended
- Make sure Maven is up and running successfully before you proceed.
- For first time Maven users you will need to type
mvn -v
to validate that Maven is installed correctly
Download the released files
- Download the zip file containing the latest version of the Xuse release files to a lcoation of your choice e.g.
c:\temp\xuse
. - Unzip the contents of this file at the same location.
- Run the
install-mvn-xuse.bat
orinstall-mvn-xuse.sh
script for windows and linux systems respectively (note under linux you need to set the permissions to make is executable first). - Maven will run and install three files to your local repository.
Getting Started with Maven and Xuse
- Navigate to a directory of your choice (the parent directory of where your new project will be created)
- type the following command:
(note: the \ are not part of the command just indicate that the line is being wrapped for presentation only - in reality this command is all on one line without the \ symbols):mvn archetype:create -DarchetypeGroupId=net.sourceforge.xuse \ -DarchetypeArtifactId=maven-xuse-m2-plugin \ -DarchetypeVersion=01.00.00-SNAPSHOT \ -DgroupId=<your.groupId> \ -DartifactId=<PROJECT_BASEDIR>
cd
intoPROJECT_BASEDIR
.- A new project structure will have been created. .
- From the
PROJECT_BASEDIR
type the following command:Note if you have a previously installed version of xuse you may need to specify the version too, e.g.mvn net.sourceforge.xuse:maven-xuse-m2-plugin:xuse
mvn net.sourceforge.xuse:maven-xuse-m2-plugin:01.00.00-RC2:xuse
- This will generate the HTML documentation.
- Open up the HTML file at
PROJECT_BASEDIR/target/docs/xuse/index.html
and navigate through the examples. - Congratulations Xuse is installed correctly.