Share this page

# 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).

In this topic:

## 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>

Back to top

## JAR and POM list

The path to the JARs and POMs is:

- Windows: <Installdir>\SDK\Maven
- Linux/Mac: <Installdir>/sdk/Maven/

JAR | POM
--- | ---
com.hp.lft.common-2025.2.0.jar | com.hp.lft.common-2025.2.0-pom.xml
com.hp.lft.report-2025.2.0.jar | com.hp.lft.report-2025.2.0-pom.xml
com.hp.lft.reportbuilder-2025.2.0.jar | com.hp.lft.reportbuilder-2025.2.0-pom.xml
com.hp.lft.sdk-2025.2.0.jar | com.hp.lft.sdk-2025.2.0-pom.xml
com.hp.lft.unittesting-2025.2.0.jar | com.hp.lft.unittesting-2025.2.0-pom.xml
com.hp.lft.verifications-2025.2.0.jar | com.hp.lft.verifications-2025.2.0-pom.xml

Back to top

## 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-2025.2.0.jar -DpomFile=com.hp.lft.common-2025.2.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.report-2025.2.0.jar -DpomFile=com.hp.lft.report-2025.2.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.reportbuilder-2025.2.0.jar -DpomFile=com.hp.lft.reportbuilder-2025.2.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.sdk-2025.2.0.jar -DpomFile=com.hp.lft.sdk-2025.2.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.unittesting-2025.2.0.jar -DpomFile=com.hp.lft.unittesting-2025.2.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.verifications-2025.2.0.jar -DpomFile=com.hp.lft.verifications-2025.2.0-pom.xml

- Install the JavaDoc JARs

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

Back to top

https://admhelp.microfocus.com Functional Testing for Developers 8942
Tips to improve your search results... OpenText™ Functional Testing for Developers Help Center OpenText™ Functional Testing for Developers Help 25.2 All View Local Help Center View Online Help Center Version: