-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello i want to ask i have jar in local drive i already import jar using buldpath add external jar but still doesn't work so i want to try to add jar local using from pom can someone helpme how to add jar local drive using pom thanks in advances
in such cases I use a system
scoped dependency, even though it's deprecated it often helps during local development. I usually create a folder /lib-ext
below my project. And place local jars there, then I add a system dependency like this:
<dependency>
<groupId>some.group</groupId>
<artifactId>any-artifact</artifactId>
<version>0.0.0</version>
<systemPath>${project.basedir}/lib-ext/any.jar</systemPath>
<scope>system</scope>
</dependency>
An not deprecated alternative is to place the jar into a local repository:
Asked: 2019-10-23 17:11:39 +0800
Seen: 7 times
Last updated: Nov 14 '19