我正在通过Jenkins构建一个Java项目. (在我在Jenkins中执行maven全新安装之后)在C:\ Windows \ System32 \ config \ systemprofile.m2 \ repository \ com \ other文件夹中创建JAR.
I am building a Java project via Jenkins. The JAR is being created (after I execute maven clean install in Jenkins) in C:\Windows\System32\config\systemprofile.m2\repository\com\other folders.
有什么办法可以改变这条路吗?我想通过SSH将JAR发送到VM.但是,由于这是系统目录,因此无法访问该文件夹.
Is there any way to change this path? I want to sent the JAR to a VM via SSH. However, I am not able to access this folder since this is system directory.
谢谢.
推荐答案由于某种原因,您的Jenkins使用此目录作为本地Maven存储库.我将在Jenkins或settings.xml中定义一个不同的本地存储库.同样重要的是,要确保没有两个正在运行的内部版本同时使用同一本地存储库,因为不能同时使用本地存储库.
For some reason, your Jenkins uses this directory as local Maven repository. I would define a different local repository in Jenkins or in the settings.xml. It is also important that you make sure that no two running builds use the same local repository at the same time because local repositories cannot be used concurrently.
更多推荐
如何在Jenkins中更改JAR构建路径?
发布评论