How to Enable Maven to Push Artifact to Artifactory

This is done in ubuntu 11.10 Open /home/ /.m2/settings.xml or create the file if it does not exists. Paste the ff code: <?xml ver...

This is done in ubuntu 11.10

  1. Open /home//.m2/settings.xml or create the file if it does not exists.
  2. Paste the ff code:

<?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns=""
Otherwise you'll get the error below:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project xxx: 
Failed to deploy artifacts: Could not transfer artifact from/to snapshots ( 
Failed to transfer file: 
Return code is: 401, ReasonPhrase:User anonymous is not permitted to deploy 'com/xxx/xxx/0.0.1-SNAPSHOT/xxx-0.0.1-20120602.035740-2.pom' into 'xxx-repo-snapshots:com/xxx/xxx/0.0.1-SNAPSHOT/xxx-0.0.1-20120602.035740-2.pom'.. -> [Help 1]


source-code-management 5482299773943882414

Post a Comment Default Comments


Are you looking for freelancers in the Philippines? Get in touch.


If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.