0

Using Azure devops triggering a maven build where project has dependencies, I have installed the dependency using

mvn install:install-file -DgroupId=com.xxxx.xxxxx -DartifactId=xxxxx -Dversion=xxxxx -Dpackaging=jar -Dfile=xxxxxx -DgeneratePom=true. Maven repo is locally in "C:\users\userid.m2\repository"

For the azure devops agent the maven repo location is "C:\windows\system32\config\systemprofile.m2\repository" like this I have 7 project dependencies and installed all the dependencies for the project. when I run "mvn clean install" in the agent locally the build is successful but when i try trigger it through azure devops I get the error project dependencies couldn't be resolved.

How can I run Maven clean install from Azure Devops?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.