楼主解决了吗?
原因可能是你选用了 base 作为 agent,而不是 maven
提供一下你的 Jenkinsfile。(更多的信息可以减少沟通次数)
Jenkins 视频教程,请参考 https://www.bilibili.com/video/BV1fp4y1r7Dd