赞
踩
搜索插件 Maven Integration
检验插件是否已安装
apache-maven-3.6.3-bin.tar.gz
解压到Jenkins挂载目录位置 [ /usr/local ]
配置settings.xml
<!--Maven私服或中央仓库-->
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
添加环境变量
[root@centos-7 local]# vi /etc/profile
在最后加上以下内容:
export M2_HOME=/usr/local/apache-m
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。