# Prerequisites for Maven-based projects

For Maven-based projects you must install the LeanFT 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 LeanFT 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 LeanFT JARs:

- To install the LeanFT 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 LeanFT jars to your local repository, run the following command:

  mvn install:install-file

  -Dfile=<path-to-file>

  -DpomFile=<path-to-pomfile>

For more details on installing, select the LeanFT version you are using:

14.50

14.51

14.52

14.53

The path to the JARs and POMs is:

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

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

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

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

JAR | POM
--- | ---
com.hp.lft.common-14.53.0.jar | com.hp.lft.common-14.53.0-pom.xml
com.hp.lft.report-14.53.0.jar | com.hp.lft.report-14.53.0-pom.xml
com.hp.lft.reportbuilder-14.53.0.jar | com.hp.lft.reportbuilder-14.53.0-pom.xml
com.hp.lft.sdk-14.53.0.jar | com.hp.lft.sdk-14.53.0-pom.xml
com.hp.lft.unittesting-14.53.0.jar | com.hp.lft.unittesting-14.53.0-pom.xml
com.hp.lft.verifications-14.53.0.jar | com.hp.lft.verifications-14.53.0-pom.xml
If you plan to use test projects based on cucumber version 1:
com.hp.lft.cucumberv1-14.53.0.jar | com.hp.lft.cucumberv1-14.53.0-pom.xml
If you plan to use test projects based on cucumber version 4:
com.hp.lft.cucumberv4-14.53.0.jar | com.hp.lft.cucumberv4-14.53.0-pom.xml

Example:

To install the LeanFT JARs in your local Maven repository, you would run the following commands from <LeanFTInstallation>\SDK\Maven (on Windows) or <LeanFTInstallation>/sdk/Maven/ (on Linux/Mac).

- Install all LeanFT JARs to local M2 repository

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

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

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

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

- Install the JavaDoc JARs

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

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

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

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

https://admhelp.microfocus.com LeanFT 8942
Tips to improve your search results...TOC Lean Functional Testing Help Center LeanFT Help Center 14.50 - 14.53 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:(Undefined variable: _rscC_Basic_Variables.FloatingTocShow)