Maven: Trying to Deploy with credentials in settings.xml file
You need to provide the repositoryId=VeggieCorp (not id) property so that maven knows from which <server> configuration it has to read the credentials. $ mvn deploy:deploy-file \ -Durl=http://repo.veggiecorp.com/artifactory/ext-release-local \ -Dfile=crypto.jar \ -DpomFile=pom.xml \ -DrepositoryId=VeggieCorp See http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html