Folks;
we use Jenkins all along with a local Apache Archiva maven repository to build maven projects. There's a dedicated user for Jenkins to access the repository and download (and deploy) artifacts. The user has all the required permissions, but I fail to set up maven in Jenkins to work with repo or credentials. Tried to go the usual way (placing a settings.xml in the Jenkins users $HOME/.m2 , even tried the global maven settings.xml). Building with maven from the terminal, things work well, but Jenkins builds fail pretty early because maven gets a 401 trying to download the artifacts off the repository.
So to ask: Is there anything special to think of when using Jenkins with a maven repo that requires authentication? Where to put credentials to make Jenkins find these?
TIA and all the best,
Kristian