jar dependency in Maven

Sometimes, you need to add the jar file (not available in repository but available on system) as a dependency in your project. To include such jar file, you need to put that file in \src\lib directory of your project. After that, you have to add below XML section inside dependencies element in POM.XML file.
 
<dependency>
<groupId>org.softpost</groupId>
<artifactId>abc</artifactId>
<scope>system</scope>
<version>1.7</version>
<systemPath>${basedir}srclibabc.jar</systemPath>
</dependency>

Complex problems, Simple Solutions