--- layout: docs title: Getting started header: Getting started prev_section: about/overview next_section: user-guide/introduction doc: true --- Easy Rules is a Java library. It requires a Java 1.5+ runtime. ## Building from source To build Easy Rules from sources, you need to have [git](http://www.git-scm.com) and [maven](http://maven.apache.org/) installed and set up. Please follow these instructions : {% highlight bash %} $ git clone https://github.com/benas/easy-rules.git $ cd easy-rules $ mvn package {% endhighlight %} Easy Rules core jar **_easyrules-core-{{site.version}}.jar_** will be generated in the **_target_** folder. ## Use with maven Easy Rules is a single jar file with no dependencies. You have to add the jar **_easyrules-core-{{site.version}}.jar_** to your application's classpath. If you use maven, you should add the following dependency to your **_pom.xml_** : ```xml org.easyrules easyrules-core {{site.version}} ``` ## Quick start archetype The quick start archetype generates a skeleton project with the right dependency to Easy Rules. In order to generate a quick start project, just run the following command: ``` $>mvn archetype:generate \ -DarchetypeGroupId=org.easyrules \ -DarchetypeArtifactId=easyrules-archetype \ -DarchetypeVersion={{ site.version }} ``` You will be asked for your project's groupId, artifactId, version and base package. Once finished, you will get a fully functional sample application that you can run with the following command: ``` $>mvn compile exec:java -Dexec.mainClass=${your.base.package}.Launcher ``` where `${your.base.package}` is the value of the base package you were asked for when creating the project. Finally, you can import this maven project into your favorite IDE and tweak the application to your needs.