报错显示如下:

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 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-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


截图如下:

maven创建项目报错问题


解决方法:

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

截图如下:

maven创建项目报错问题

相关文章:

  • 2021-07-22
  • 2022-12-23
  • 2021-09-05
  • 2021-05-17
  • 2021-12-16
  • 2021-06-18
  • 2021-04-21
  • 2021-10-31
猜你喜欢
  • 2022-01-15
  • 2021-06-12
  • 2021-12-17
  • 2021-10-19
  • 2021-10-26
  • 2021-11-27
  • 2021-05-05
相关资源
相似解决方案