-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Could not upgrade the flyway version to 10.8.1 but upgraded to 9.22.3 from 9.21.0, as the version of the class file in the flyway-core-10.8.1.jar (which is compiled with Java 17, indicated by version 61.0) doesn't match the version of Java of our project which is using (Java 11, indicated by version 55.0).
It is throwing this compilation error,
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/IUDX/iudx-acl-apd/src/test/java/iudx/apd/acl/server/Utility.java:[18,25] cannot access org.flywaydb.core.Flyway
bad class file: C:\Users\divya.m2\repository\org\flywaydb\flyway-core\10.8.1\flyway-core-10.8.1.jar(/org/flywaydb/core/Flyway.class)
class file has wrong version 61.0, should be 55.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.967 s
[INFO] Finished at: 2024-03-05T11:59:01+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:testCompile (default-testCompile) on project iudx.acl-apd.server: Compilation failure
[ERROR] /D:/IUDX/iudx-acl-apd/src/test/java/iudx/apd/acl/server/Utility.java:[18,25] cannot access org.flywaydb.core.Flyway
[ERROR] bad class file: C:\Users\divya.m2\repository\org\flywaydb\flyway-core\10.8.1\flyway-core-10.8.1.jar(/org/flywaydb/core/Flyway.class)
[ERROR] class file has wrong version 61.0, should be 55.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.