Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:ssocas:cas7update [2026/01/27 20:01]
adminjp [Dry run]
docpublic:systemes:ssocas:cas7update [2026/02/01 21:51] (current)
adminjp [build errors]
Line 218: Line 218:
 </code> </code>
  
-correctif GPT +==== build errors ==== 
 + 
 +<code>  
 +[root@cas7dev cas-overlay-template-7u]#  ./gradlew clean copyCasConfiguration build --no-daemon 
 + 
 +[Incubating] Problems report is available at: file:///opt/cas-src/cas-overlay-template-7u/build/reports/problems/problems-report.html 
 + 
 +FAILURE: Build failed with an exception. 
 + 
 +* What went wrong: 
 +A problem occurred configuring root project 'cas'
 +> Could not resolve all artifacts for configuration 'classpath'
 +   > Could not find org.apereo.cas:cas-server-core-configuration-metadata-repository:7.2.7. 
 +     Searched in the following locations: 
 +       - file:/root/.m2/repository/org/apereo/cas/cas-server-core-configuration-metadata-repository/7.2.7/cas-server-core-configuration-metadata-repository-7.2.7.pom 
 +       - https://repo.maven.apache.org/maven2/org/apereo/cas/cas-server-core-configuration-metadata-repository/7.2.7/cas-server-core-configuration-metadata-repository-7.2.7.pom 
 +       - https://plugins.gradle.org/m2/org/apereo/cas/cas-server-core-configuration-metadata-repository/7.2.7/cas-server-core-configuration-metadata-repository-7.2.7.pom 
 +       - https://repo.spring.io/milestone/org/apereo/cas/cas-server-core-configuration-metadata-repository/7.2.7/cas-server-core-configuration-metadata-repository-7.2.7.pom 
 +     Required by: 
 +         root project : 
 + 
 +* 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. 
 +</code> 
 + 
 +<code> 
 +The Fix: Remove that line. The CAS Gradle plugin typically handles what it needs internally. If you need configuration metadata support, ensure you are using the correct CAS Gradle Plugin version that matches your CAS version. 
 +</code> 
 + 
 +<code> 
 +[root@cas7dev cas-overlay-template-7u]# vim build.gradle 
 + 
 +    dependencies { 
 +        classpath "org.springframework.boot:spring-boot-gradle-plugin:${project.springBootVersion}" 
 +        classpath "io.freefair.gradle:maven-plugin:${project.gradleFreeFairPluginVersion}" 
 +        classpath "io.freefair.gradle:lombok-plugin:${project.gradleFreeFairPluginVersion}" 
 +        classpath "com.google.cloud.tools:jib-gradle-plugin:${project.jibVersion}" 
 +        classpath "com.bmuschko:gradle-docker-plugin:${project.gradleDockerPluginVersion}" 
 +        classpath "de.undercouch:gradle-download-task:${project.gradleDownloadTaskVersion}" 
 +        classpath "org.apereo.cas:cas-server-core-api-configuration-model:${project.'cas.version'}" 
 +    //    classpath "org.apereo.cas:cas-server-core-configuration-metadata-repository:${project.'cas.version'}" 
 +    } 
 +
 +</code> 
 + 
 +puis erreur  
 + 
 +<code> 
 +* Where: 
 +Build file '/opt/cas-src/cas-overlay-template-7u/build.gradle' line: 90 
 + 
 +* What went wrong: 
 +A problem occurred evaluating root project 'cas'
 +> Could not resolve all artifacts for configuration 'classpath'
 +   > Could not find org.apereo.cas:cas-server-core-configuration-metadata-repository:7.2.7. 
 +     Searched in the following locations: 
 +       - file:/root/.m2/repository/org/apereo/cas/cas-server-core-configuration-metadata-repository/7.2.7/cas-server-core-configuration-metadata-repository-7.2.7.pom 
 +       - https://repo.maven.apache.org/maven2/org/apereo/cas/cas-server-core-configuration-metadata-repository/7.2.7/cas-server-core-configuration-metadata-repository-7.2.7.pom 
 +       - https://plugins.gradle.org/m2/org/apereo/cas/cas-server-core-configuration-metadata-repository/7.2.7/cas-server-core-configuration-metadata-repository-7.2.7.pom 
 +       - https://repo.spring.io/milestone/org/apereo/cas/cas-server-core-configuration-metadata-repository/7.2.7/cas-server-core-configuration-metadata-repository-7.2.7.pom 
 +     Required by: 
 +         unspecified:unspecified:unspecified 
 +</code> 
 + 
 +line 90 de build.gradle appel  
 + 
 +apply from: rootProject.file("gradle/tasks.gradle"
 + 
 +# vim /opt/cas-src/cas-overlay-template-7u/gradle/tasks.gradle 
 + 
 +on comment alors tout le dernier bloc  
 + 
 +<code> 
 +/* task exportConfigMetadata(group: "CAS", description: "Export collection of CAS properties") { 
 +    def file = new File(project.rootDir, 'config-metadata.properties'
 +    def queryType = ConfigurationMetadataCatalogQuery.QueryTypes.CAS 
 +... 
 +       } 
 +        println "Configuration metadata is available at ${file.absolutePath}" 
 +    } 
 +} */ 
 +</code> 
 + 
 +cela build enfin  
 + 
 +<code> 
 +[root@cas7dev cas-overlay-template-7u]#  ./gradlew clean copyCasConfiguration build --no-daemon 
 +To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.13/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation. 
 +Daemon will be stopped at the end of the build  
 +Configuration on demand is an incubating feature. 
 + 
 +> Configure project : 
 +Using Amazon Corretto as the JVM vendor for the Java toolchain 
 +Building CAS version 7.2.7 with application server -tomcat 
 + 
 +[Incubating] Problems report is available at: file:///opt/cas-src/cas-overlay-template-7u/build/reports/problems/problems-report.html 
 + 
 +Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. 
 + 
 +You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. 
 + 
 +For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. 
 + 
 +BUILD SUCCESSFUL in 1m 6s 
 +9 actionable tasks: 9 executed 
 + 
 +[root@cas7dev cas-overlay-template-7u]# ls -l ./build/libs/ 
 +total 125420 
 +-rwxr--r-- 1 root root 128428810 Feb  1 21:46 cas.war 
 +</code> 
 +==== 2 correctifs GPT ==== 
 + 
 +=== premier pb ===  
 + 
 +cf logs  
 + 
 +2026-01-26 17:54:40,649 ERROR [org.apereo.cas.authentication.mfa.trigger.GlobalMultifactorAuthenticationTrigger] - <No multifactor authentication providers are available in the application context to handle [[mfa-simple]]> 
 + 
 + 
 + 
 +<code> 
 +[root@cas cas-overlay-template]# ./gradlew clean copyCasConfiguration build --no-daemon 
 +To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.13/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation. 
 +Daemon will be stopped at the end of the build  
 +Configuration on demand is an incubating feature. 
 + 
 +> Configure project : 
 +Using Amazon Corretto as the JVM vendor for the Java toolchain 
 +Building CAS version 7.2.6 with application server -tomcat 
 + 
 +> Task :compileJava FAILED 
 + 
 +[Incubating] Problems report is available at: file:///opt/cas-src/cas-overlay-template/build/reports/problems/problems-report.html 
 + 
 +FAILURE: Build failed with an exception. 
 + 
 +* What went wrong: 
 +Execution failed for task ':compileJava'
 +> Could not resolve all files for configuration ':compileClasspath'
 +   > Could not find cas-server-support-simple-mfa-7.2.6-casVersion'.jar (org.apereo.cas:cas-server-support-simple-mfa:7.2.6). 
 +     Searched in the following locations: 
 +         https://repo.maven.apache.org/maven2/org/apereo/cas/cas-server-support-simple-mfa/7.2.6/cas-server-support-simple-mfa-7.2.6-casVersion'.jar 
 +</code>
  
 puis build puis build
docpublic/systemes/ssocas/cas7update.1769544076.txt.gz · Last modified: 2026/01/27 20:01 by adminjp
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0