Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twaddington/67eba3288b092960106126081782fd82 to your computer and use it in GitHub Desktop.
Save twaddington/67eba3288b092960106126081782fd82 to your computer and use it in GitHub Desktop.
Publish a Maven dependency (e.g. aar) to your local maven repo

Publish a Maven dependency (e.g. aar) to your local maven repo

$ mvn install:install-file \
    -Dfile=/path/to/file.aar \
    -DpomFile=/path/to/file.pom

// If you don't have a valid pom
$ mvn install:install-file \
    -Dfile=/path/to/file.aar \
    -DgroupId=com.example \
    -DartifactId=example \
    -Dversion=1.0.0 \
    -Dpackaging=aar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment