Maven POM.xml



Text : 

<project xmlns=”; xmlns:xsi=”; xsi:schemaLocation=””&gt; <modelVersion>4.0.0</modelVersion>
<groupId>TestConfig</groupId> <artifactId>TestConfig</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging>
<name>TestConfig</name> <url></url&gt;
<properties> <>UTF-8</> </properties>

<build> <plugins> <!– Compiler plug-in –> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${jdk.level}</source> <target>${jdk.level}</target> </configuration> </plugin> <!– Below plug-in is used to execute tests –> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18.1</version> <configuration> <suiteXmlFiles> <!– TestNG suite XML files –> <suiteXmlFile>testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build>


<dependencies> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.9.10</version> <scope>compile</scope> </dependency> </dependencies></project>


How to include custom library into maven local repository?

There are 2 cases that you need to issue Maven’s command to include a jar into the Maven local repository manually.

  1. The jar you want to use doesn’t exist in the Maven center repository.
  2. You created a custom jar, and need to use for another Maven project.

Read More »