This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
docpublic:systemes:ssocas:cas7update [2026/01/27 19:49] adminjp [reference] |
docpublic:systemes:ssocas:cas7update [2026/02/01 21:51] (current) adminjp [build errors] |
||
|---|---|---|---|
| Line 22: | Line 22: | ||
| + | ==== liste update a faire ===== | ||
| + | |||
| + | ask the build to discover and list all upgrade recipes that might be applicable for the task at hand | ||
| + | |||
| + | < | ||
| + | [root@cas cas-overlay-template]# | ||
| + | org.apereo.cas.cas726 | ||
| + | org.apereo.cas.cas725 | ||
| + | org.apereo.cas.cas724 | ||
| + | org.apereo.cas.cas720 | ||
| + | org.apereo.cas.cas721 | ||
| + | org.apereo.cas.cas723 | ||
| + | org.apereo.cas.cas722 | ||
| + | org.apereo.cas.cas710-RC5 | ||
| + | org.apereo.cas.cas710-RC6 | ||
| + | org.apereo.cas.cas710-RC2 | ||
| + | org.apereo.cas.cas710-RC1 | ||
| + | org.apereo.cas.cas720-RC1 | ||
| + | org.apereo.cas.cas710 | ||
| + | org.apereo.cas.cas720-RC2 | ||
| + | org.apereo.cas.cas720-RC3 | ||
| + | org.apereo.cas.cas720-RC6 | ||
| + | org.apereo.cas.cas700 | ||
| + | org.apereo.cas.cas720-RC4 | ||
| + | org.apereo.cas.cas720-RC5 | ||
| + | |||
| + | real 0m31.579s | ||
| + | </ | ||
| + | |||
| + | ==== Dry run ==== | ||
| + | |||
| + | Next, we can dry-run our selected recipe, org.apereo.cas.cas702, | ||
| + | |||
| + | < | ||
| + | [root@cas cas-overlay-template]# | ||
| + | To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https:// | ||
| + | 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.1.4 with application server -tomcat | ||
| + | |||
| + | > Task : | ||
| + | Validating active recipes | ||
| + | Scanning sources in project : | ||
| + | Using active styles [] | ||
| + | There were problems parsing some source files, run with --info to see full stack traces | ||
| + | There were problems parsing build.gradle | ||
| + | There were problems parsing gradle/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | All sources parsed, running active recipes: org.apereo.cas.cas726 | ||
| + | These recipes would make changes to gradle.properties: | ||
| + | org.openrewrite.gradle.AddProperty: | ||
| + | org.openrewrite.gradle.AddProperty: | ||
| + | org.openrewrite.gradle.AddProperty: | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | org.openrewrite.gradle.AddProperty: | ||
| + | org.openrewrite.gradle.AddProperty: | ||
| + | These recipes would make changes to gradle/ | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | These recipes would make changes to gradlew: | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | These recipes would make changes to gradlew.bat: | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | These recipes would make changes to gradle/ | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | These recipes would make changes to gradlew: | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | These recipes would make changes to gradlew.bat: | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | These recipes would make changes to gradle/ | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | These recipes would make changes to gradle/ | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | Report available: | ||
| + | / | ||
| + | Estimate time saved: 45m | ||
| + | Run ' | ||
| + | |||
| + | [Incubating] Problems report is available at: file:/// | ||
| + | |||
| + | Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. | ||
| + | |||
| + | You can use ' | ||
| + | |||
| + | For more on this, please refer to https:// | ||
| + | |||
| + | BUILD SUCCESSFUL in 2m 13s | ||
| + | 6 actionable tasks: 2 executed, 4 up-to-date | ||
| + | |||
| + | real 2m14.409s | ||
| + | user 2m31.799s | ||
| + | sys | ||
| + | </ | ||
| + | |||
| + | You can in fact examine the generated .patch file: | ||
| + | |||
| + | Report available: | ||
| + | / | ||
| + | | ||
| + | < | ||
| + | | ||
| + | diff --git a/ | ||
| + | index b9bcfc0..87cb882 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -1,19 +1,19 @@ org.apereo.cas.cas726 | ||
| + | # This overlay project' | ||
| + | # For consistency and with no other effect, this is set to the CAS version itself. | ||
| + | -version=7.1.4 | ||
| + | +version=7.2.6 | ||
| + | ... | ||
| + | </ | ||
| + | | ||
| + | ==== update ==== | ||
| + | |||
| + | When you are ready, you can run the actual recipe: | ||
| + | |||
| + | < | ||
| + | [root@cas cas-overlay-template]# | ||
| + | To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https:// | ||
| + | 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.1.4 with application server -tomcat | ||
| + | |||
| + | > Task :rewriteRun | ||
| + | Validating active recipes | ||
| + | Scanning sources in project : | ||
| + | Using active styles [] | ||
| + | There were problems parsing some source files, run with --info to see full stack traces | ||
| + | There were problems parsing build.gradle | ||
| + | There were problems parsing gradle/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | There were problems parsing helm/ | ||
| + | All sources parsed, running active recipes: org.apereo.cas.cas726 | ||
| + | Changes have been made to gradle.properties by: | ||
| + | org.openrewrite.gradle.AddProperty: | ||
| + | org.openrewrite.gradle.AddProperty: | ||
| + | org.openrewrite.gradle.AddProperty: | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | org.openrewrite.gradle.AddProperty: | ||
| + | org.openrewrite.gradle.AddProperty: | ||
| + | Changes have been made to gradle/ | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | Changes have been made to gradlew by: | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | Changes have been made to gradlew.bat by: | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | Changes have been made to gradle/ | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | Changes have been made to gradlew by: | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | Changes have been made to gradlew.bat by: | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | Changes have been made to gradle/ | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | Changes have been made to gradle/ | ||
| + | org.openrewrite.gradle.UpdateGradleWrapper: | ||
| + | Please review and commit the results. | ||
| + | Estimate time saved: 45m | ||
| + | |||
| + | [Incubating] Problems report is available at: file:/// | ||
| + | |||
| + | Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. | ||
| + | |||
| + | You can use ' | ||
| + | |||
| + | For more on this, please refer to https:// | ||
| + | |||
| + | BUILD SUCCESSFUL in 1m 22s | ||
| + | 6 actionable tasks: 1 executed, 5 up-to-date | ||
| + | |||
| + | real 1m23.020s | ||
| + | user 1m46.706s | ||
| + | sys 0m11.937s | ||
| + | </ | ||
| + | |||
| + | ==== build errors ==== | ||
| + | |||
| + | < | ||
| + | [root@cas7dev cas-overlay-template-7u]# | ||
| + | |||
| + | [Incubating] Problems report is available at: file:/// | ||
| + | |||
| + | FAILURE: Build failed with an exception. | ||
| + | |||
| + | * What went wrong: | ||
| + | A problem occurred configuring root project ' | ||
| + | > Could not resolve all artifacts for configuration ' | ||
| + | > Could not find org.apereo.cas: | ||
| + | | ||
| + | - file:/ | ||
| + | - https:// | ||
| + | - https:// | ||
| + | - https:// | ||
| + | | ||
| + | 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:// | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | 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. | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | [root@cas7dev cas-overlay-template-7u]# | ||
| + | |||
| + | dependencies { | ||
| + | classpath " | ||
| + | classpath " | ||
| + | classpath " | ||
| + | classpath " | ||
| + | classpath " | ||
| + | classpath " | ||
| + | classpath " | ||
| + | // classpath " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | puis erreur | ||
| + | |||
| + | < | ||
| + | * Where: | ||
| + | Build file '/ | ||
| + | |||
| + | * What went wrong: | ||
| + | A problem occurred evaluating root project ' | ||
| + | > Could not resolve all artifacts for configuration ' | ||
| + | > Could not find org.apereo.cas: | ||
| + | | ||
| + | - file:/ | ||
| + | - https:// | ||
| + | - https:// | ||
| + | - https:// | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | line 90 de build.gradle appel | ||
| + | |||
| + | apply from: rootProject.file(" | ||
| + | |||
| + | # vim / | ||
| + | |||
| + | on comment alors tout le dernier bloc | ||
| + | |||
| + | < | ||
| + | /* task exportConfigMetadata(group: | ||
| + | def file = new File(project.rootDir, | ||
| + | def queryType = ConfigurationMetadataCatalogQuery.QueryTypes.CAS | ||
| + | ... | ||
| + | } | ||
| + | println " | ||
| + | } | ||
| + | } */ | ||
| + | </ | ||
| + | |||
| + | cela build enfin | ||
| + | |||
| + | < | ||
| + | [root@cas7dev cas-overlay-template-7u]# | ||
| + | To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https:// | ||
| + | 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:/// | ||
| + | |||
| + | Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. | ||
| + | |||
| + | You can use ' | ||
| + | |||
| + | For more on this, please refer to https:// | ||
| + | |||
| + | BUILD SUCCESSFUL in 1m 6s | ||
| + | 9 actionable tasks: 9 executed | ||
| + | |||
| + | [root@cas7dev cas-overlay-template-7u]# | ||
| + | total 125420 | ||
| + | -rwxr--r-- 1 root root 128428810 Feb 1 21:46 cas.war | ||
| + | </ | ||
| + | ==== 2 correctifs GPT ==== | ||
| + | |||
| + | === premier pb === | ||
| + | |||
| + | cf logs | ||
| + | |||
| + | 2026-01-26 17: | ||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | [root@cas cas-overlay-template]# | ||
| + | To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https:// | ||
| + | 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 : | ||
| + | |||
| + | [Incubating] Problems report is available at: file:/// | ||
| + | |||
| + | FAILURE: Build failed with an exception. | ||
| + | |||
| + | * What went wrong: | ||
| + | Execution failed for task ': | ||
| + | > Could not resolve all files for configuration ': | ||
| + | > Could not find cas-server-support-simple-mfa-7.2.6-casVersion' | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | puis build | ||
| + | |||
| + | < | ||
| + | |||
| + | [root@cas cas-overlay-template]# | ||
| + | To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https:// | ||
| + | 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 | ||
| + | |||
| + | [Incubating] Problems report is available at: file:/// | ||
| + | |||
| + | Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. | ||
| + | |||
| + | You can use ' | ||
| + | |||
| + | For more on this, please refer to https:// | ||
| + | |||
| + | BUILD SUCCESSFUL in 1m 15s | ||
| + | 9 actionable tasks: 9 executed | ||
| + | |||
| + | |||
| + | [root@cas cas-overlay-template]# | ||
| + | total 123M | ||
| + | -rwxr--r-- 1 root root 123M Jan 23 22:44 cas.war | ||
| + | </ | ||
| + | |||
| + | ==== backup et installation ===== | ||
| + | |||
| + | < | ||
| + | [root@cas cas-overlay-template]# | ||
| + | [root@cas cas-overlay-template]# | ||
| + | -rwxr--r-- 1 root root 128425823 Jan 23 22:44 / | ||
| + | [root@cas cas-overlay-template]# | ||
| + | </ | ||