Prerequisites for Maven-based projects

For Maven-based projects you must install the OpenText Functional Testing for Developers JARs in the Maven repository (your organization's or local).

Install the product JARs in the Maven repository

Make sure that you install the JAR files using the POM files that provided with the product. This ensures that the GAV and all dependencies for each JAR are defined correctly. Otherwise, when you run your tests, second-level-dependency files will be missing, and you will see NoClassDefFoundError messages, indicating missing files such as com/hp/lft/common/logging/Logger.

Follow these instructions to install the JARs. For a list of files names to install, as well as examples, see the sections below.

  • To install the JARs to your organization's repository, run the following command:

    mvn deploy:deploy-file

    -DpomFile=<path-to-pom>

    -Dfile=<path-to-file>

    -DrepositoryId=<id-to-map-on-server-section-of-settings.xml>

    -Durl=<url-of-the-repository-to-deploy>

  • To install the JARs to your local repository, run the following command:

    mvn install:install-file

    -Dfile=<path-to-file>

    -DpomFile=<path-to-pomfile>

JAR and POM list for the Java SDK

Note: The paths on this page match version 26.3. For version 26.1, replace 2026.3.0 with 2026.1.0

The path to the JARs and POMs is:

  • Windows: <Installdir>\SDK\Maven
  • Linux/Mac: <Installdir>/sdk/Maven/
JAR POM
com.hp.lft.common-2026.3.0.jar

com.hp.lft.common-2026.3.0-pom.xml

com.hp.lft.report-2026.3.0.jar

com.hp.lft.report-2026.3.0-pom.xml

com.hp.lft.reportbuilder-2026.3.0.jar

com.hp.lft.reportbuilder-2026.3.0-pom.xml

com.hp.lft.sdk-2026.3.0.jar

com.hp.lft.sdk-2026.3.0-pom.xml

com.hp.lft.unittesting-2026.3.0.jar

com.hp.lft.unittesting-2026.3.0-pom.xml

com.hp.lft.verifications-2026.3.0.jar

com.hp.lft.verifications-2026.3.0-pom.xml

Examples

The following examples shows how to install the JARs in your local Maven repository. Run the following commands from <Installdir>\SDK\Maven (on Windows) or <Installdir>/sdk/Maven/ (on Linux/Mac).

  • Install all product JARs to a local M2 repository

    mvn install:install-file -Dfile=com.hp.lft.common-2026.3.0.jar -DpomFile=com.hp.lft.common-2026.3.0-pom.xml
    mvn install:install-file -Dfile=com.hp.lft.report-2026.3.0.jar -DpomFile=com.hp.lft.report-2026.3.0-pom.xml
    mvn install:install-file -Dfile=com.hp.lft.reportbuilder-2026.3.0.jar -DpomFile=com.hp.lft.reportbuilder-2026.3.0-pom.xml
    mvn install:install-file -Dfile=com.hp.lft.sdk-2026.3.0.jar -DpomFile=com.hp.lft.sdk-2026.3.0-pom.xml
    mvn install:install-file -Dfile=com.hp.lft.unittesting-2026.3.0.jar -DpomFile=com.hp.lft.unittesting-2026.3.0-pom.xml
    mvn install:install-file -Dfile=com.hp.lft.verifications-2026.3.0.jar -DpomFile=com.hp.lft.verifications-2026.3.0-pom.xml
  • Install the JavaDoc JARs

    mvn install:install-file -Dfile=com.hp.lft.sdk-2026.3.0-javadoc.jar  -DgroupId=com.hp.lft -DartifactId=sdk -Dversion=2026.3.0 -Dpackaging=jar -Dclassifier=javadoc
    mvn install:install-file -Dfile=com.hp.lft.report-2026.3.0-javadoc.jar -DgroupId=com.hp.lft -DartifactId=report -Dversion=2026.3.0 -Dpackaging=jar -Dclassifier=javadoc
    mvn install:install-file -Dfile=com.hp.lft.unittesting-2026.3.0-javadoc.jar -DgroupId=com.hp.lft -DartifactId=unittesting -Dversion=2026.3.0 -Dpackaging=jar -Dclassifier=javadoc
    mvn install:install-file -Dfile=com.hp.lft.verifications-2026.3.0-javadoc.jar -DgroupId=com.hp.lft -DartifactId=verifications -Dversion=2026.3.0 -Dpackaging=jar -Dclassifier=javadoc
    

JAR and POM list for the LeanFT for Selenium Java SDK

Relevant for version 26.3 and later, the LeanFT for Selenium Java SDK is local.

The path to the JARs and POMs is:

  • Windows: <Installdir>\Selenium SDK\Maven\com.hpe.lft.selenium-2026.3.0.jar or .xml
  • Linux/Mac: <Installdir>/selenium-sdk/Maven/com.hpe.lft.selenium-2026.3.0.jar or .xml

Examples

The following examples shows how to install the JARs in your local Maven repository. Run the following commands from <Installdir>\SDK\Maven (on Windows) or <Installdir>/sdk/Maven/ (on Linux/Mac).

  • Install all product JARs to a local M2 repository

    mvn install:install-file -Dfile=com.hpe.lft.selenium-2026.3.0.jar -DpomFile=com.hpe.lft.selenium-2026.3.0-pom.xml
  • Install the JavaDoc JARs

    mvn install:install-file -Dfile=com.hpe.lft.selenium-2026.3.0-javadoc.jar -DgroupId=com.hpe.lft -DartifactId=selenium -Dversion=2026.3.0 -Dpackaging=jar -Dclassifier=javadoc