Maven Configuration

This part of the docmentation will guide you through the steps that are needed in order to work with Maven.

Install Maven

In order to work with the Maven Plugins you will need to download the Maven 3.0.5 environment. Install the package in a known directory.

Adjust your PATH settings to include the bin directory of this package.

Test the setup running mvn --version

Configure Maven

Prerequisites

The following description only applies to you in case you are an Aurea Employee, an Aurea Platinum Member or an Aurea Delivery Partner.

Configuration

Maven depends in its configuration on a settings.xml file that by default is located in your ~home/.2 directory. This is also de default location to store the downloaded artifacts for local usage.

The following section can be used as a template for the settings.xml file:

<?xml version="1.0"?>
<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>development</id>
                        <properties>
                                <!--dxsi.eclipseInstallDir>C:/Software/DataXtendSI_8.4.1/eclipse</dxsi.eclipseInstallDir-->
                                <!--maven.test.skip>true</maven.test.skip-->
                        </properties>
                        <repositories>
                                <repository>
                                        <id>EmployeeInternal</id>
                                        <url>https://int-factory.aurea.com/nexus/content/groups/EmployeeInternal//</url>
                                        <releases>
                                                <enabled>true</enabled>
                                        </releases>
                                        <snapshots>
                                                <enabled>true</enabled>
                                        </snapshots>
                                </repository>
                        </repositories>
                        <pluginRepositories>
                                <pluginRepository>
                                        <id>EmployeeInternal</id>
                                        <url>https://int-factory.aurea.com/nexus/content/groups/EmployeeInternal//</url>
                                        <releases>
                                                <enabled>true</enabled>
                                        </releases>
                                        <snapshots>
                                                <enabled>true</enabled>
                                        </snapshots>
                                </pluginRepository>
                        </pluginRepositories>
                </profile>
        </profiles>
        <activeProfiles>
                <activeProfile>development</activeProfile>
        </activeProfiles>
        <servers>
                <server>
                        <id>EmployeeInternal</id>
                        <username>USERNAME</username>
                        <password>PASSWORD</password>
                </server>
        </servers>
</settings>

Update the Servers section with your own credentials for the site. From that moment on you can use the available Maven Repository located at int-factory.

Proxy Configuration

In case your company already has a Maven Repository, it can be configured to proxy the Int-Factory repository. Your Maven Administrators know how to set this up.

Advantages of Maven Repositories

  1. Access to all known Artifacts
  2. No need for complext deployment packages, just update the pom file with the correct version information
  3. ... .