JEE
Working with Maven makes it almost simple to build applications based on different libraries or frameworks. Maven is a build and configuration tool which helps you to organize your project and finding necessary libraries and artifacts through the Internet. Imixs supports Maven 2 which allows you to access all Imixs Workflow libraries easily and build your projects using Maven. General information about using Maven in a project you will find here .
The Imixs Workflow Project is part of the dev.java.net project which is also providing a large Maven 2 repository . You can access all parts of the Imixs Workflow project by connecting to the java.net Maven repository.
To access the Maven repository you need to configure the java.net repository into your Maven settings.xml configuration file. On windows this config file is typically found or to be created in 'Documents and Settings/USERNAME/.m2'. On Linux the folder /.m2 will be found on the users home directory.
To access the java.net Maven repository you only need to add the repository location. Here is an example of a settings.xml file.
<settings xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>default</id>
<activation>
</activation>
<repositories>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>default</activeProfile>
</activeProfiles>
</settings>
If you have successfully configured the java.net repository you are now able to add dependencies for your project by editing the pom.xml file in your Maven project.
To add the Imixs Workflow JEE add following code
<dependency> <groupId>org.imixs.workflow</groupId> <artifactId>imixs-workflow-api</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>org.imixs.workflow</groupId> <artifactId>imixs-workflow-jee</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>org.imixs.workflow</groupId> <artifactId>imixs-workflow-jee-impl</artifactId> <version>1.0.0</version> </dependency>
If you work with remote interfaces the imixs-workflow-jee-impl artifact is not necessary. In this case use the following dependencies
<dependency> <groupId>org.imixs.workflow</groupId> <artifactId>imixs-workflow-api</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>org.imixs.workflow</groupId> <artifactId>imixs-workflow-jee</artifactId> <version>1.0.0</version> </dependency>
Take care about the version numbers. You can see the latest build in the Project Summary.