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).
In this topic:
Install the UFT Developer JARs in the Maven repository
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 these instructions to install the UFT Developer 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: <UFT_Developer_installdir>\SDK\Maven
- Linux/Mac: <UFT_Developer_installdir>/sdk/Maven/
Expand the relevant link to see installation information relevant to your version:
UFT Developer 24.2
JAR |
POM |
com.hp.lft.common-2024.2.0.jar |
com.hp.lft.common-2024.2.0-pom.xml
|
com.hp.lft.report-2024.2.0.jar
|
com.hp.lft.report-2024.2.0-pom.xml
|
com.hp.lft.reportbuilder-2024.2.0.jar
|
com.hp.lft.reportbuilder-2024.2.0-pom.xml
|
com.hp.lft.sdk-2024.2.0.jar
|
com.hp.lft.sdk-2024.2.0-pom.xml
|
com.hp.lft.unittesting-2024.2.0.jar
|
com.hp.lft.unittesting-2024.2.0-pom.xml
|
com.hp.lft.verifications-2024.2.0.jar
|
com.hp.lft.verifications-2024.2.0-pom.xml
|
UFT Developer 23.4
JAR |
POM |
com.hp.lft.common-2023.4.0.jar |
com.hp.lft.common-2023.4.0-pom.xml
|
com.hp.lft.report-2023.4.0.jar
|
com.hp.lft.report-2023.4.0-pom.xml
|
com.hp.lft.reportbuilder-2023.4.0.jar
|
com.hp.lft.reportbuilder-2023.4.0-pom.xml
|
com.hp.lft.sdk-2023.4.0.jar
|
com.hp.lft.sdk-2023.4.0-pom.xml
|
com.hp.lft.unittesting-2023.4.0.jar
|
com.hp.lft.unittesting-2023.4.0-pom.xml
|
com.hp.lft.verifications-2023.4.0.jar
|
com.hp.lft.verifications-2023.4.0-pom.xml
|
UFT Developer 2023
JAR |
POM |
com.hp.lft.common-2023.0.0.jar |
com.hp.lft.common-2023.0.0-pom.xml
|
com.hp.lft.report-2023.0.0.jar
|
com.hp.lft.report-2023.0.0-pom.xml
|
com.hp.lft.reportbuilder-2023.0.0.jar
|
com.hp.lft.reportbuilder-2023.0.0-pom.xml
|
com.hp.lft.sdk-2023.0.0.jar
|
com.hp.lft.sdk-2023.0.0-pom.xml
|
com.hp.lft.unittesting-2023.0.0.jar
|
com.hp.lft.unittesting-2023.0.0-pom.xml
|
com.hp.lft.verifications-2023.0.0.jar
|
com.hp.lft.verifications-2023.0.0-pom.xml
|
UFT Developer 2022
JAR |
POM |
com.hp.lft.common-2022.0.0.jar |
com.hp.lft.common-2022.0.0-pom.xml
|
com.hp.lft.report-2022.0.0.jar
|
com.hp.lft.report-2022.0.0-pom.xml
|
com.hp.lft.reportbuilder-2022.0.0.jar
|
com.hp.lft.reportbuilder-2022.0.0-pom.xml
|
com.hp.lft.sdk-2022.0.0.jar
|
com.hp.lft.sdk-2022.0.0-pom.xml
|
com.hp.lft.unittesting-2022.0.0.jar
|
com.hp.lft.unittesting-2022.0.0-pom.xml
|
com.hp.lft.verifications-2022.0.0.jar
|
com.hp.lft.verifications-2022.0.0-pom.xml
|
UFT Developer 2021 R1
JAR |
POM |
com.hp.lft.common-2021.1.0.jar |
com.hp.lft.common-2021.1.0-pom.xml
|
com.hp.lft.report-2021.1.0.jar
|
com.hp.lft.report-2021.1.0-pom.xml
|
com.hp.lft.reportbuilder-2021.1.0.jar
|
com.hp.lft.reportbuilder-2021.1.0-pom.xml
|
com.hp.lft.sdk-2021.1.0.jar
|
com.hp.lft.sdk-2021.1.0-pom.xml
|
com.hp.lft.unittesting-2021.1.0.jar
|
com.hp.lft.unittesting-2021.1.0-pom.xml
|
com.hp.lft.verifications-2021.1.0.jar
|
com.hp.lft.verifications-2021.1.0-pom.xml
|
UFT Developer 2021
JAR |
POM |
com.hp.lft.common-2021.0.0.jar |
com.hp.lft.common-2021.0.0-pom.xml
|
com.hp.lft.report-2021.0.0.jar
|
com.hp.lft.report-2021.0.0-pom.xml
|
com.hp.lft.reportbuilder-2021.0.0.jar
|
com.hp.lft.reportbuilder-2021.0.0-pom.xml
|
com.hp.lft.sdk-2021.0.0.jar
|
com.hp.lft.sdk-2021.0.0-pom.xml
|
com.hp.lft.unittesting-2021.0.0.jar
|
com.hp.lft.unittesting-2021.0.0-pom.xml
|
com.hp.lft.verifications-2021.0.0.jar
|
com.hp.lft.verifications-2021.0.0-pom.xml
|
Back to top
Examples
The following examples shows how to install the UFT Developer JARs in your local Maven repository. Run the following commands from <UFT_Developer_installdir>\SDK\Maven (on Windows) or <UFT_Developer_installdir>/sdk/Maven/ (on Linux/Mac).
Back to top