halo已经发布1.3.1了,我还在用1.1.1。今天升级到1.3.1时发现需要先升级到1.2.0,但是我启动1.2.0的jar包时报错了,具体信息如下:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-03-30 18:19:51.481 ERROR 3582 --- [ main] o.s.boot.SpringApplication : Application run failed
org.flywaydb.core.api.FlywayException: Validate failed:
Detected failed migration to version 2 (migrate 1.2.0-beta.1 to 1.2.0-beta.2)
at org.flywaydb.core.Flyway.doValidate(Flyway.java:273) ~[flyway-core-6.1.0.jar!/:na]
at org.flywaydb.core.Flyway.access$100(Flyway.java:72) ~[flyway-core-6.1.0.jar!/:na]
at org.flywaydb.core.Flyway$1.execute(Flyway.java:155) ~[flyway-core-6.1.0.jar!/:na]
at org.flywaydb.core.Flyway$1.execute(Flyway.java:147) ~[flyway-core-6.1.0.jar!/:na]
at org.flywaydb.core.Flyway.execute(Flyway.java:511) ~[flyway-core-6.1.0.jar!/:na]
at org.flywaydb.core.Flyway.migrate(Flyway.java:147) ~[flyway-core-6.1.0.jar!/:na]
at run.halo.app.listener.StartedListener.migrate(StartedListener.java:86) ~[classes!/:1.2.0]
at run.halo.app.listener.StartedListener.onApplicationEvent(StartedListener.java:58) ~[classes!/:1.2.0]
at run.halo.app.listener.StartedListener.onApplicationEvent(StartedListener.java:33) ~[classes!/:1.2.0]
at run.halo.app.listener.StartedListener$$EnhancerBySpringCGLIB$$775ca773.onApplicationEvent(<generated>) ~[classes!/:1.2.0]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) ~[spring-context-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360) ~[spring-context-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
at org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:98) ~[spring-boot-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:71) ~[spring-boot-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) [spring-boot-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at run.halo.app.Application.main(Application.java:35) [classes!/:1.2.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_232]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_232]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_232]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_232]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [halo-latest.jar:1.2.0]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [halo-latest.jar:1.2.0]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:51) [halo-latest.jar:1.2.0]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52) [halo-latest.jar:1.2.0]
2020-03-30 18:19:51.486 INFO 3582 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Shutting down ExecutorService 'taskScheduler'
2020-03-30 18:19:51.547 INFO 3582 --- [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2020-03-30 18:19:51.550 INFO 3582 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2020-03-30 18:19:51.583 INFO 3582 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2020-03-30 18:19:51.586 INFO 3582 --- [ main] io.undertow : stopping server: Undertow - 2.0.27.Final
这是什么原因?
如果想升级到1.3.1,应该怎么操作(官网给出的升级方法已经试了,不行)?