1、无法从中央仓库中下载jar包时,可在conf/Setting.xml文件中配置mirror, 即国外网站访问被限制,使用国内的镜像仓库
在mirrors 节点配置 :如 :
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
<mirror>
<id>JBossJBPM</id>
<mirrorOf>central</mirrorOf>
<name>JBossJBPM Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
2、出现错误:Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:testReso。。。
原因是 :maven-resources-plugin没有下载下来或是出错,重新下载即可
pom.xml文件中添加依赖重新下载:
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</dependency>