Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not upgrade the flyway version to latest version i,e 10.8.1 #92

Open
DivyaSreeMunagavalasa opened this issue Mar 5, 2024 · 0 comments
Assignees

Comments

@DivyaSreeMunagavalasa
Copy link
Contributor

https://github.com/datakaveri/iudx-acl-apd/blob/3ec32e674f4705a47201479c6a3046aacf7d04e8/pom.xml#L126

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants