Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to change maven build artifact install path

Vamsi May 14, 2020

I am building a project on Bamboo with remote agent, during the deployment it is installing artifact to C:\Users\k\.m2\repository and getting following error

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project sampleproject: Failed to retrieve remote metadata com.myproject:sampleproject:1.0.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata com.myproject:sampleproject:1.0.0-SNAPSHOT/maven-metadata.xml from/to snapshots < Unknown host

User k is not accessible to artifactory need to change the install path from C:\Users\K\.m2\repository to E:\Tools\.m2\repository


How can I change the path?



1 answer

1 accepted

0 votes
Answer accepted
Vamsi May 15, 2020

Actual issue was Build server doesn't know the artifactory host. Added artifactory to build server hosts and it fixed the error.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events