MAVEN : How to read Jar files or library from intranet of your Company.
You might be given the POM.XML information to download the jars, like:
Maven Plugin : explanation:
< dependency >
< groupId >com.mycompany.165654.GMNABRAVE.PUSH< /groupId >
< artifactId >GMPPUSH< /artifactId >
< version >GMNABRAVEPUSH-3.0.1< /version >
< /dependency >
Means look SETTING.XML it should have URL and location of above JAR, like:
< repository >
< id >releases< /id >
< url >http://sd-879d-d482:8081/nexus/content/repositories/releases< /url >
< releases >
< enabled >true< /enabled >
< /releases >
< /repository >
< repository >
It means go to browser and open the following link. There you will see the required JAR:
http://sd-879d-d482:8081/nexus/content/repositories/snapshots/com/mycompany/165654/GMNABRAVE/PUSH/GMPPUSH/3.0.1-SNAPSHOT/
But, if you put the same jar in your local folder, you can use < stsyemPath > tag to point that location:
< dependency >
< groupId >com.mycompany.165654.GMNABRAVE.PUSH< /groupId >
< artifactId >GMPPUSH< /artifactId >
< version >GMNABRAVEPUSH-3.0.1< /version >
< scope >system< /scope > < systemPath >C:\Users\RS12927\.m2\repository\com\mycompany\165654\GMNABRAVE\PUSH\GMPPUSH\3.0.1-SNAPSHOT\GMPPUSH-3.0.1-SNAPSHOT.jar< /systemPath >
Comments