How can I convert a local Jar file to maven dependency?
There are many ways to add local jar files , one of then is below
- .Install manually the JAR into a local Maven repository using following command
mvn install:install-file –Dfile=
-DgroupId=<group-id> -DartifactId=<artifact-Id> -Dversion=<version no>
- add the dependency to your Maven project
<dependency>
<groupId>your group id</groupId>
<artifactId>yourartifact-Id </artifactId>
<version>version no</version>
</dependency>
1 Like