Tag Archives: failed to install artifact

Fix Issue: Failed to install artifact : (Access is denied) while installing 3rd party jars with maven


To install a 3rd party jar with maven; Command : mvn install:install-file -Dfile= -DgroupId= -DartifactId= -Dversion= -Dpackaging= -DgeneratePom=true (Refer –> http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html for more info) Errorful example: mvn install:install-file -Dfile=D:\AWorkspace\maven-multidex-sample -DgroupId=com.android.support -DartifactId=multidex -Dversion=20 -Dpackaging=jar -DgeneratePom=true Correct example: mvn install:install-file -Dfile=D:\AWorkspace\maven-multidex-sample\multidex.jar -DgroupId=com.android.support -DartifactId=multidex -Dversion=20 -Dpackaging=jar -DgeneratePom=true Problem was with -Dfile=. The path-to-file needed to specify the jar as well not just […]

https://techstarspace.wordpress.com/2015/08/26/fix-issue-failed-to-install-artifact-access-is-denied-while-installing-3rd-party-jars-with-maven/