/
Install Maven and Add Pricefx Repository

Install Maven and Add Pricefx Repository

  1. Install Apache Maven, version 3.5.3+. You can use their Installation Manual. Install into a folder with a short name without spaces, e.g. C:\java\maven

  2. Check if the instance is working and if Maven is on PATH.

    > mvn -version Apache Maven 3.3.3 Maven home: /usr/share/maven Java version: 1.8.0_111, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.2.0-27-generic", arch: "amd64", family: "unix"

     

  3. Locate your settings.xml in your Maven repository. The typical location is:

    windows: %USERPROFILE%\.m2\settings.xml unix: ~/.m2/settings.xml

     

  4. Add the following information into the settings:

    • PFX employee

      <repository> <id>Pricefx maven artifacts</id> <url>https://maven.pricefx.eu</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository>

       

      <pluginRepository> <releases> <enabled>true</enabled> </releases> <snapshots/> <id>Pricefx maven artifacts</id> <url>https://maven.pricefx.eu</url> </pluginRepository>

       

      <servers> <server> <id>Pricefx maven artifacts</id> <username>your_username</username> <password>your_password</password> </server> <server> <id>pricefx.internal</id> <username>your_username</username> <password>your_password</password> </server> </servers>

       

    • Partner

      <repository> <id>Pricefx external repository</id> <url>https://maven-ext.pricefx.eu</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository>

       

      <pluginRepository> <releases> <enabled>true</enabled> </releases> <snapshots/> <id>Pricefx external repository</id> <url>https://maven-ext.pricefx.eu</url> </pluginRepository>

       

      <servers> <server> <id>Pricefx external repository</id> <username>your_username</username> <password>your_password</password> </server> </servers>

       

See an example of Maven settings file (used for Pricefx employees):

<?xml version="1.0"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <server> <id>Pricefx maven artifacts</id> <username>your_username</username> <password>your_password</password> </server> <server> <id>pricefx.internal</id> <username>your_username</username> <password>your_password</password> </server> </servers> <profiles> <profile> <id>default</id> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <repository> <id>Default repo</id> <url>http://repo1.maven.org/maven2</url> <snapshots> <enabled>false</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> <repository> <id>SmartGWT official repo</id> <url>http://www.smartclient.com/maven2</url> <snapshots> <enabled>false</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> <repository> <id>pricefx.internal</id> <url>https://maven.pricefx.eu</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> </repositories> <pluginRepositories> <pluginRepository> <releases> <enabled>false</enabled> </releases> <snapshots/> <id>Apache Snapshot Repository</id> <url>http://repository.apache.org/snapshots</url> </pluginRepository> <pluginRepository> <releases> <enabled>true</enabled> </releases> <snapshots/> <id>pricefx.internal</id> <url>https://maven.pricefx.eu</url> </pluginRepository> </pluginRepositories> </profile> </profiles> </settings>


For Maven access you need to contact IT support via a helpdesk ticket.

Related content

IntegrationManager version 6.0.0