修改远程仓库地址
respository配置查询:http://mvnrepository.com/artifact/com.aliyun
更改中央仓库地址:
复制maven/conf/setting.xml文件到.m2目录下,在mirrors标签下添加:
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
更改本地仓库地址:
修改.m2目录下的setting.xml文件,在setting标签下添加:
<localRepository>自定义文件夹</localRepository>
打包跳过测试
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>