Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,331
Community Members
 
Community Events
168
Community Groups

How to change maven build artifact install path

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 <https://mycompany.artifactory.com/artifactory/MuleSoft) mycompany.artifactory.com 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?

 

TIA

1 answer

1 accepted

0 votes
Answer accepted

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
TAGS

Atlassian Community Events