Xuse Installation Guide
This document covers a basic installation of Xuse. There are three alternative installs for Xuse:
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.4.x SDK (Java 1.5 might work but this has not been tested): make sure you set the
JAVA_HOMEenvironment variable correctly. Note it has to be the SDK not the JRE for Maven to work correctly. - Maven 2.x. Maven 2.0.5 is recommended
- Make sure Maven is up and running successfully before you proceed.
- For first time Maven users you will need to create the repository type
mvn -vto initialise Maven
Download the released files
- Download the latest version of the Xuse release files (see downloads for more information)
- Copy the
xuse.jar(e.g.xuse-00.02.RC3.jar) to the local Maven repository under the foldernet/sourceforge/xuse/xuse/00.02.RC3. - Copy the
maven-xuse-m2-plugin-00.02.RC3(e.g.maven-xuse-m2-plugin-00.02.RC3.jar) to the local Maven repository (e.g.C:/Documents and Settings/mike/.m2/repository) under the foldernet/sourceforge/xuse/maven-xuse-m2-plugin/00.02.RC3folder.
Getting Started
- Navigate to a directory of your choice (the parent directory of where your new project will be created)
- type the following command:
mvn archetype:create -DarchetypeGroupId=net.sourceforge.xuse \ -DarchetypeArtifactId=maven-xuse-m2-plugin \ -DarchetypeVersion=00.02.RC3 \ -DgroupId=<your.groupId> \ -DartifactId=<PROJECT_BASEDIR>
cdintoPROJECT_BASEDIR.- A new project structure will have been created. You will find a sample requirements repository under
PROJECT_BASEDIR/src/requirements/xuse-requirements.xml. Two example use-cases can also be found underPROJECT_BASEDIR/src/use-casesin the relevant sub-directories. - From the
PROJECT_BASEDIRtype the following command:mvn net.sourceforge.xuse:maven-xuse-m2-plugin:xuse
- This will generate the HTML documentation.
- Open up the HTML file at
PROJECT_BASEDIR/target/docs/xuse/index.htmland navigate through the examples. - Congratulations Xuse is installed correctly.
Xuse with Maven 1.x
This section describes how to install Xuse and the Maven 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.4.x SDK (Java 1.5 might work but this has not been tested): make sure you set the
JAVA_HOMEenvironment variable correctly. Note it has to be the SDK not the JRE for Maven to work correctly. - Maven 1.x. Maven 1.0.2 is recommended - Xuse has not yet been tested on Maven 1.1
- Make sure Maven is up and running successfully before you proceed.
- For first time Maven users you will need to create the repository type
Maven -vto initialise Maven
Download the released files
- Download the latest version of the Xuse release files (see downloads for more information)
- Copy the
xuse.jar(e.g.xuse-00.02.RC3.jar) to the local Maven repository under the folderxuse/jars. - Copy the
Maven-xuse-plugin.jar(e.g.Maven-xuse-plugin-00.02.RC3.jar) toMAVEN_HOME/pluginsfolder whereMAVEN_HOMEis the directory where Maven is installed.
Getting Started
- Navigate to a directory of your choice
- Create a new directory for your new requirements project and
cdinto this directory (Note this directory will be known as thePROJECT_BASEDIRfor the remainder of this guide). - type the following command:
Maven xuse:new-project
- A new project structure will have been created. You will find a sample requirements repository under
PROJECT_BASEDIR/src/requirements/xuse-requirements.xml. Two example use-cases can also be found underPROJECT_BASEDIR/src/use-casesin the relevant sub-directories. - From the
PROJECT_BASEDIRtype the following command:Maven xuse
- This will generate the HTML documentation.
- Open up the HTML file at
PROJECT_BASEDIR/target/docs/xuse/index.htmland navigate through the examples. - Congratulations Xuse is installed correctly.
Xuse standalone
This section describes how to install Xuse in a standalone fashion - i.e. run Xuse directly from the command line.
pre-requisites
The following needs to be installed on your system before you can start
- Java 1.4.x JRE/SDK (Java 1.5 might work but this has not been tested).
- Saxon 8.7 downloaded and available on the
CLASSPATH.
Download the released files
- Download the latest version of the Xuse.jar (see downloads for more information)
- Make sure
xuse.jar(e.g.xuse-00.02.RC3.jar) is available on theCLASSPATH.
Getting Started
- Navigate to a directory of your choice
- Create a new directory for your new requirements project and
cdinto this directory (Note this directory will be known as thePROJECT_BASEDIRfor the remainder of this guide). - type the following command:
java net.sourceforge.xuse.Xuse xuse:new-project
- A new project structure will have been created. You will find a sample requirements repository under
PROJECT_BASEDIR/src/requirements/xuse-requirements.xml. Two example use-cases can also be found underPROJECT_BASEDIR/src/use-casesin the relevant sub-directories. - From the
PROJECT_BASEDIRtype the following command:java net.sourceforge.xuse.Xuse xuse
- This will generate the HTML documentation.
- Open up the HTML file at
PROJECT_BASEDIR/target/docs/xuse/index.htmland navigate through the examples. - Congratulations Xuse is installed correctly.
Classpath Issues
If you are having problems setting up the CLASSPATH correctly you might want to try the following:
- Navigate to a directory of your choice
- Create a new directory for your new requirements project and
cdinto this directory (Note this directory will be known as thePROJECT_BASEDIRfor the remainder of this guide). - Create the folder
PROJECT_BASEDIR/liband copy both Xuse.jar and saxon.jar into it. - Type the following command:
java -cp lib/xuse-00.02.RC3.jar;lib/saxon-8.7.jar \ net.sourceforge.xuse.Xuse xuse:new-project
- To generate the HTML documentation the command would be:
java -cp lib/xuse-00.02.RC3.jar;lib/saxon-8.7.jar \ net.sourceforge.xuse.Xuse xuse

