How to add Maven dependency from a relative path referencing a local jar
When you want to add a dependency which is not stored in maven repositories to your project this is the way!! You can manually download it and include inside the project and refer it from the pom.xml through a relative path.
This example assumes that you have downloaded and stored the jar inside ${project}/src/test/resources/lib.
This example assumes that you have downloaded and stored the jar inside ${project}/src/test/resources/lib.
<dependency> <groupId>ojdbc</groupId> <artifactId>ojdbc6</artifactId> <scope>system</scope> <version>6</version> <systemPath>${basedir}/src/test/resources/lib/ojdbc6.jar</systemPath> </dependency>
Comments
Post a Comment