Build state machine examples in Java with Maven

Maven is a great software to build, test, package and install java programs.

Maven useful commands

Please find here a set of useful maven commands:

First of all make sure Maven 2 or 3 is installed correctly:

# mvn --version

Change to the examples directory, e.g

# cd C:\Users\frederic\AppData\Local\StateForge\StateBuilderJava\Examples

Compile the examples:

# mvn compile

Create the jar:

# mvn package

Test the examples:

# mvn test

Clean all generated files:

# mvn clean

Create an eclipse project:

# mvn eclipse:eclipse

pom.xml

They are 4 things to add to pom.xml to integrate StateBuilderJava: