Including Custom Library Into Maven

This can be achieved in just simple 2 steps

1. Install file in maven local repository

mvn install:install-file -Dfile=/path/jarfile.jar -DgroupId=com.company -DartifactId=module-util -Dversion=1.0.0 -Dpackaging=jar

2. Add the entry in the pom.xml.

mvn install:install-file -Dfile=/path/jarfile.jar -DgroupId=com.company -DartifactId=module-util -Dversion=1.0.0 -Dpackaging=jar
<dependencies>
<dependency>
<groupId>com.company</groupId>
<artifactId>module-util</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
view raw mavenCustomLib hosted with ❤ by GitHub

No comments:

Post a Comment