Jenkins-->系统管理-->Global Tool Configuration 2 构建一个maven项目 (新建任务的时候,没有maven项目请安装maven integration plugins插件 ) maven配置如图 相关文章: