To build the job on the build server, I want the location to be .m2different from user.home/.m2.
I thought I could trick maven into installing it export HOME=$WORKSPACEfor the assembly, but artifacts would load and deploy in the assembly user's home directory.
Therefore, I think maven uses a system property user.home, which apparently does not take into account $HOME.
Is there a solution for this? We have a local maven cache, and I want to load all the artifacts for this build job and prevent any deployment in build-user $HOME/.m2in order to separate the individual build jobs from each other. At least I want this to be for some assignments.
Any ideas? Thanks in advance!
source
share