cas 6.2 Incompatible because this component declares an API of a component compatible with Java 11

cas 6.2 Incompatible because this component declares an API of a component compatible with Java 11

最近用到cas6.2的项目  配置基本按下面的来 其中配置jdk什么的都是百度的

https://blog.csdn.net/qq_40297844/article/details/106437993

但是导包出现国外的倒不进去  翻墙都没得用 最后从ali仓库一个一个捞出来的

就是在gradle.build里面加了一下代码 ,据我了解这应该是按顺序执行找不到会执行下一个

    maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
    maven { url 'http://maven.aliyun.com/repository/gradle-plugin/' }
    maven { url 'http://maven.aliyun.com/repository/jcenter/' }
    maven { url 'http://maven.aliyun.com/repository/central/' }
    maven { url 'http://maven.aliyun.com/repository/google/' }

位置cas 6.2 Incompatible because this component declares an API of a component compatible with Java 11

cas 6.2 Incompatible because this component declares an API of a component compatible with Java 11

因为上面地址是国外的 我就不要了注释掉了  各位看官请执行调整

找包的话请看

https://blog.csdn.net/oTianKongLan123/article/details/107161648

还有下一步执行到gradlew.bat clean build 时候又出现问题  也就是当前主题了

* Where:
Build file 'F:\cas-overlay-template-6.2.1\build.gradle' line: 76

* What went wrong:
A problem occurred evaluating root project 'cas'.
> Could not resolve all artifacts for configuration 'classpath'.
   > Could not resolve org.apereo.cas:cas-server-core-api-configuration-model:6.2.0.
     Required by:
         unspecified:unspecified:unspecified
      > No matching variant of org.apereo.cas:cas-server-core-api-configuration-model:6.2.0 was found. The consumer was configured to find a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies decl
ared externally but:
          - Variant 'apiElements' capability org.apereo.cas:cas-server-core-api-configuration-model:6.2.0 declares a component, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
          - Variant 'runtimeElements' capability org.apereo.cas:cas-server-core-api-configuration-model:6.2.0 declares a runtime of a component, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
   > Could not resolve org.apereo.cas:cas-server-core-configuration-metadata-repository:6.2.0.
     Required by:
         unspecified:unspecified:unspecified
      > No matching variant of org.apereo.cas:cas-server-core-configuration-metadata-repository:6.2.0 was found. The consumer was configured to find a runtime of a component compatible with Java 8, packaged as a jar, and its depende
ncies declared externally but:
          - Variant 'apiElements' capability org.apereo.cas:cas-server-core-configuration-metadata-repository:6.2.0 declares a component, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
          - Variant 'runtimeElements' capability org.apereo.cas:cas-server-core-configuration-metadata-repository:6.2.0 declares a runtime of a component, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.4/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 987ms

F:\cas-overlay-template-6.2.1>gradlew.bat clean build

FAILURE: Build failed with an exception.

* Where:
Build file 'F:\cas-overlay-template-6.2.1\build.gradle' line: 76

* What went wrong:
A problem occurred evaluating root project 'cas'.
> Could not resolve all artifacts for configuration 'classpath'.
   > Could not resolve org.apereo.cas:cas-server-core-api-configuration-model:6.2.0.
     Required by:
         unspecified:unspecified:unspecified
      > No matching variant of org.apereo.cas:cas-server-core-api-configuration-model:6.2.0 was found. The consumer was configured to find a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies decl
ared externally but:
          - Variant 'apiElements' capability org.apereo.cas:cas-server-core-api-configuration-model:6.2.0 declares a component, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
          - Variant 'runtimeElements' capability org.apereo.cas:cas-server-core-api-configuration-model:6.2.0 declares a runtime of a component, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
   > Could not resolve org.apereo.cas:cas-server-core-configuration-metadata-repository:6.2.0.
     Required by:
         unspecified:unspecified:unspecified
      > No matching variant of org.apereo.cas:cas-server-core-configuration-metadata-repository:6.2.0 was found. The consumer was configured to find a runtime of a component compatible with Java 8, packaged as a jar, and its depende
ncies declared externally but:
          - Variant 'apiElements' capability org.apereo.cas:cas-server-core-configuration-metadata-repository:6.2.0 declares a component, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
          - Variant 'runtimeElements' capability org.apereo.cas:cas-server-core-configuration-metadata-repository:6.2.0 declares a runtime of a component, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.4/userguide/command_line_interface.html#sec:command_line_warnings

提示jdk版本不匹配 我就很奇怪 刚开始我就配置了open_jdk  在setting和 projectstructure中   还有环境变量  应该是没问题的啊

后面仔细一看 gradle.bat这个命令  在cas6.2.0根目录下。  里面有9个JAVA_HOME    由于我之前的项目要用到jdk1.8 所以我找了个可以兼容的方法  创建了个JAVA_HOME_OPEN  在path里进行切换  结果这边读取的还是JAVA_HOME 所以出问题  我就把里面的 JAVA_HOME全改成JAVA_HOME_OPEN 就开始下一步了

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/2202.html原文链接:https://javaforall.net

(2)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • php接口转发_php发送get请求

    php接口转发_php发送get请求php实现URL转发代码的方法:1、使用“$_SERVER[“SERVER_NAME”]”变量;2、通过“header(“location:http://youname.com”);”函数;3、利用frame元素。推荐:《PHP视频教程》PHP实现URL转发代码花了一点时间研究了一下,发现还是蛮有意思的主要是依靠3个东西:1.$_SERVER[“SERVER_NAME”]这个变量2.head…

    2022年10月19日
    3
  • VC的调试中,AssertValid和Dump函数的应用(转载)

    VC的调试中,AssertValid和Dump函数的应用(转载)VC的调试中,AssertValid和Dump函数的应用??楼主mei2004mei2004(aaa)2005-12-0209:47:24在VC/MFC/基础类提问rt.  在debug调试中,AssertValid和Dump 这两个函数怎么进行工作的?    或者说怎么合理利用这两个函数?    …问题点数:100、回复次数:3Top 1楼

    2022年7月14日
    15
  • Java数组

    Java数组12.Java数组一、什么是数组数组可以理解成一个包含相同类型的有序数字集合也称储存一组数据的空间数组属于引用数据类型int[]a={1,2,3,4,5};集合内的数据称为元素

    2022年7月4日
    18
  • Arduino智能小车——循迹篇

    Arduino智能小车——循迹篇Arduino智能小车——循迹篇  相信大家都在网上看到过类似下图这样的餐厅服务机器人,或者仓库搬运机器人,但是你们有没有注意到图片中地上的那条黑线?没错,他们都是沿着这条黑线来行进的,在这一篇将教大家怎么用小车实现类似的循迹功能。准备材料循迹模块  在此我们使用循迹模块TCRT5000,该模块体积小,灵敏度较高,还可以通过转动上面的电位器来调节检测范围。

    2022年6月3日
    60
  • linux安装networkmanager_centos配置网络

    linux安装networkmanager_centos配置网络写在前面嗯,准备RHCA,学习整理这部分知识NetworkManager其实是RHCAS的内容博文内容为常见的配置操作回顾:NetworkManager简述命令行的方式配置网络连接修改配置文件的方式配置网络连接谁有权限修改网络连接配置傍晚时分,你坐在屋檐下,看着天慢慢地黑下去,心里寂寞而凄凉,感到自己的生命被剥夺了。当时我是个年轻人,但我害怕这样生活下去,衰老下去。在我看来,这是比死亡更可怕的事。——–王小波红帽8(rhel8,Centos8)使用的网络管理服务

    2022年10月4日
    4
  • microsoft office visio2003产品密钥[通俗易懂]

    microsoft office visio2003产品密钥[通俗易懂]WFDWY-XQXJF-RHRYG-BG7RQ-BBDHM

    2022年6月24日
    408

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号