Sunday, July 23, 2017

How to add local dependencies Jar on maven





${project.basedir} points to the POM location.

custom jar file is placed on following location.

/libs/com.wso2.enterprise/enterprise-1.0.0.jar

This location can be defined under dependency path location.


<dependency>
    <groupId>com.wso2.enterprise</groupId>
    <artifactId>enterprise</artifactId>
    <version>1.0.0</version>
    <scope>system</scope>
    <systemPath>${project.basedir}/libs/com.wso2.enterprise/enterprise-1.0.0.jar</systemPath>
</dependency>

No comments:

Post a Comment