maven创建项目报错问题

来源:互联网 发布:lol优化电脑提高fps 编辑:程序博客网 时间:2024/06/07 11:34

报错显示如下:

Description ResourcePath LocationType

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 pathBuild 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 pathBuild 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 pathBuild 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-commonBuild path JRE System Library 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-manager-pojoBuild path JRE System Library Problem

Description ResourcePath LocationType
The project cannot be built until build path errors are resolvedroseonly-manager-dao UnknownJava Problem
The project cannot be built until build path errors are resolvedroseonly-manager-service UnknownJava Problem
The project cannot be built until build path errors are resolvedroseonly-manager-web UnknownJava Problem

Description ResourcePath LocationType
Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fixpom.xml /roseonly-manager-daoline 30 Maven Dependency Problem
Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fixpom.xml /roseonly-manager-serviceline 2 Maven Dependency Problem
Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fixpom.xml /roseonly-manager-webline 2 Maven Dependency Problem


截图如下:



解决方法:

尽管报这么多的错,归根到底就是jar包的问题,只需要把<pagehelper.version>3.4.2-fix</pagehelper.version>改成<pagehelper.version>3.2.1</pagehelper.version>即可,ctrl+s进行保存,报错信息自会自动消失了。

截图如下: