报错显示如下:
Description Resource Path Location Type
The container 'Maven Dependencies' references non existing library 'C:\Users\CCai\.m2\repository\com\github\pagehelper\pagehelper\3.4.2-fix\pagehelper-3.4.2-fix.jar' roseonly-manager-dao Build path Build Path Problem The container 'Maven Dependencies' references non existing library 'C:\Users\CCai\.m2\repository\com\github\pagehelper\pagehelper\3.4.2-fix\pagehelper-3.4.2-fix.jar' roseonly-manager-service Build path Build Path Problem The container 'Maven Dependencies' references non existing library 'C:\Users\CCai\.m2\repository\com\github\pagehelper\pagehelper\3.4.2-fix\pagehelper-3.4.2-fix.jar' roseonly-manager-web Build path Build Path Problem Build path specifies execution environment JavaSE-1.7. There are no JREs installed in the workspace that are strictly compatible with this environment. roseonly-common Build path JRE System Library ProblemBuild path specifies execution environment JavaSE-1.7. There are no JREs installed in the workspace that are strictly compatible with this environment. roseonly-manager-pojo Build path JRE System Library Problem
Description Resource Path Location Type The project cannot be built until build path errors are resolved roseonly-manager-dao Unknown Java Problem The project cannot be built until build path errors are resolved roseonly-manager-service Unknown Java Problem The project cannot be built until build path errors are resolved roseonly-manager-web Unknown Java Problem
Description Resource Path Location Type Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fix pom.xml /roseonly-manager-dao line 30 Maven Dependency Problem Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fix pom.xml /roseonly-manager-service line 2 Maven Dependency Problem Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fix pom.xml /roseonly-manager-web line 2 Maven Dependency Problem
截图如下:
解决方法:
尽管报这么多的错,归根到底就是jar包的问题,只需要把<pagehelper.version>3.4.2-fix</pagehelper.version>改成<pagehelper.version>3.2.1</pagehelper.version>即可,ctrl+s进行保存,报错信息自会自动消失了。
截图如下: