Skip to content

Instantly share code, notes, and snippets.

@medeirosthiago
Created November 1, 2016 19:50
Show Gist options
  • Save medeirosthiago/f692a2e96fa88f6c803127242c612ccf to your computer and use it in GitHub Desktop.
Save medeirosthiago/f692a2e96fa88f6c803127242c612ccf to your computer and use it in GitHub Desktop.
Installing 3rd part jars trough Maven Dependecies

Following (Maven Guide)[https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html] it is possible to add the an external JAR as a depencie.

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>

Example:

mvn install:install-file -Dfile=polymer-components-0.5.2-RELEASE.jar -DgroupId=org.webjars -DartifactId=polymer-components -Dversion=0.5.2-RELEASE -Dpackaging=jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment