java吧 关注:1,257,107贴子:12,751,048
  • 8回复贴,共1
求助

问一下大佬

只看楼主收藏回复

我在spring boot项目里运行pom.xml导入包,一直报错是怎么回事,该怎么解决
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project demo: Fatal error compiling: 无效的标记: --release -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


IP属地:陕西来自Android客户端1楼2023-07-12 06:54回复
    Maven是3.9.2版本,jdk1.8


    IP属地:陕西来自Android客户端2楼2023-07-12 06:56
    回复
      换成Maven 3.6.3


      IP属地:广东来自Android客户端3楼2023-07-12 07:15
      回复
        楼主想学springboot ,最好找环境写清楚的博客,
        不然版本,还有servlet 的种种问题,能把人搞死。


        IP属地:广东4楼2023-07-12 09:10
        回复


          IP属地:广东5楼2023-07-12 09:20
          收起回复
            遇事先百度.


            IP属地:安徽6楼2023-07-12 09:54
            回复
              已解决了,更换了jdk版本,spring3.x以上不支持jdk8


              IP属地:陕西来自Android客户端7楼2023-07-13 12:17
              回复
                【java核心知识点解析!黑马20年名师生动讲解,深入浅出,大厂必备,高薪必学!】 https://www.bilibili.com/video/BV1Ug4y1w7hx/?share_source=copy_web&vd_source=fe7241410b25a5759ed252dfefea54b9


                8楼2023-07-13 14:24
                回复