1.新建maven工程 xitw_jenkins
<groupId>com.demo</groupId>
<artifactId>xitw_jenkins</artifactId>
2.设置maven 指向本地maven的setting.xml
D:\program files\apache-maven-3.3.9\conf\settings.xml
setting..xml需要修改和添加以下内容:
在mirrors标签下添加:依赖jar包下载的镜像路径
<mirror>
<id>alimaven-central</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<