Installing libraries in leanft in Java

To integrate the LeanFT with Maven, you will have to install the LeanFT library files in local maven repositories. Execute below commands to install the LeanFT jar files in a local repository.
 
mvn install:install-file -Dfile="com.hp.lft.sdk-standalone.jar" -DgroupId="com.hp.lft" 
-DartifactId="com.hp.lft.sdk" -Dversion="12.53.0" -Dpackaging="jar" -DgeneratePom=true

mvn install:install-file -Dfile="com.hp.lft.report.jar" -DgroupId="com.hp.lft" 
-DartifactId="com.hp.lft.report" -Dversion="12.53.0" -Dpackaging="jar" -DgeneratePom=true

mvn install:install-file -Dfile="com.hp.lft.unittesting.jar" -DgroupId="com.hp.lft" 
-DartifactId="com.hp.lft.unittesting" -Dversion="12.53.0" -Dpackaging="jar" -DgeneratePom=true

mvn install:install-file -Dfile="com.hp.lft.verifications.jar" -DgroupId="com.hp.lft" 
-DartifactId="com.hp.lft.verifications" -Dversion="12.53.0" -Dpackaging="jar" -DgeneratePom=true

Then add below dependencies in your POM file.
 
<dependency>
<groupId>com.hp.lft</groupId>
<artifactId>com.hp.lft.sdk</artifactId>
<version>12.53.0</version>
</dependency>   

<dependency>
<groupId>com.hp.lft</groupId>
<artifactId>com.hp.lft.report</artifactId>
<version>12.53.0</version>
</dependency>

<dependency>
<groupId>com.hp.lft</groupId>
<artifactId>com.hp.lft.unittesting</artifactId>
<version>12.53.0</version>
</dependency>

<dependency>
<groupId>com.hp.lft</groupId>
<artifactId>com.hp.lft.verifications</artifactId>
<version>12.53.0</version>
</dependency>

Sometimes you might need to deploy the jar files in organization central repository. Below sample command shows how to deploy LeanFT jar file to central repository.
 
mvn deploy:deploy-file -DgroupId="com.hp.lft" -DartifactId="com.hp.lft.sdk" 
-Dversion="12.53.0" -Dpackaging=jar -Dfile="com.hp.lft.sdk-standalone.jar" 
-DrepositoryId=<id-in-settings.xml> -Durl=<url-of-the-central-repository>

Web development and Automation testing

solutions delivered!!