Maven工程报错:Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fix的解决方法

一、为什么?

在父工程中已经确定jar的version,但是jar下载不下来,可能存在两种情况 ;
1、该jar包非免费,需要付费,所以下载不下来 
2.、网络原因,连接不到国外的服务器

二、怎么办?

1、添加以下配置;

Maven工程报错:Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fix的解决方法

 2、勾选下面选项;

Maven工程报错:Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fix的解决方法

 

三、注意事项;

这里要修改两个pom.xml文件中的配置;

1、Maven-Module(xx-xx-mapper)/pom.xml(添加此配置);

Maven工程报错:Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fix的解决方法

2、 Maven-Project(xx-xx-parent)/pom.xml(修改成与之对应的配置);

Maven工程报错:Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fix的解决方法

3、两者相对应,最后重启eclipse即可;