Share this page

# Prerequisites for Maven-based projects

For Maven-based projects you must install the UFT Developer JARs in the Maven repository (your organization's or local).

Make sure that you install the JAR files using the POM files that we supply. This ensures that the GAV and all dependencies for each UFT Developer 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 the instructions below to install the UFT Developer JARs:

- To install the UFT Developer 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 UFT Developer 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: <UFT Developer Installation>\SDK\Maven
- Linux/Mac: <UFT Developer Installation>/sdk/Maven/

Expand the relevant link to see installation information relevant to your UFT Developer version:

15.0.0

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

15.0.1

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

15.0.2

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

Back to top

## Examples

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

15.0.0

- Install all UFT Developer JARs to local M2 repository

      mvn install:install-file -Dfile=com.hp.lft.common-15.0.0.jar -DpomFile=com.hp.lft.common-15.0.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.report-15.0.0.jar -DpomFile=com.hp.lft.report-15.0.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.reportbuilder-15.0.0.jar -DpomFile=com.hp.lft.reportbuilder-15.0.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.sdk-15.0.0.jar -DpomFile=com.hp.lft.sdk-15.0.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.unittesting-15.0.0.jar -DpomFile=com.hp.lft.unittesting-15.0.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.verifications-15.0.0.jar -DpomFile=com.hp.lft.verifications-15.0.0-pom.xml

- Install the JavaDoc JARs

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

15.0.1

- Install all UFT Developer JARs to local M2 repository

      mvn install:install-file -Dfile=com.hp.lft.common-15.1.0.jar -DpomFile=com.hp.lft.common-15.1.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.report-15.1.0.jar -DpomFile=com.hp.lft.report-15.1.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.reportbuilder-15.1.0.jar -DpomFile=com.hp.lft.reportbuilder-15.1.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.sdk-15.1.0.jar -DpomFile=com.hp.lft.sdk-15.1.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.unittesting-15.1.0.jar -DpomFile=com.hp.lft.unittesting-15.1.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.verifications-15.1.0.jar -DpomFile=com.hp.lft.verifications-15.1.0-pom.xml

- Install the JavaDoc JARs

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

15.0.2

- Install all UFT Developer JARs to local M2 repository

      mvn install:install-file -Dfile=com.hp.lft.common-15.2.0.jar -DpomFile=com.hp.lft.common-15.2.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.report-15.2.0.jar -DpomFile=com.hp.lft.report-15.2.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.reportbuilder-15.2.0.jar -DpomFile=com.hp.lft.reportbuilder-15.2.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.sdk-15.2.0.jar -DpomFile=com.hp.lft.sdk-15.2.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.unittesting-15.2.0.jar -DpomFile=com.hp.lft.unittesting-15.2.0-pom.xml
      mvn install:install-file -Dfile=com.hp.lft.verifications-15.2.0.jar -DpomFile=com.hp.lft.verifications-15.2.0-pom.xml

- Install the JavaDoc JARs

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

Back to top

https://admhelp.microfocus.com UFT Developer 8942
Tips to improve your search results... UFT Developer Help Center UFT Developer Help 15.0-15.0.2 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: