Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. [ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:6.0.0-beta:migrate (default-cli) on project odin_build: org.flywaydb.core.api.FlywayException: Unable to instantiate class ch.x.dp.test1 : ch.x.dp.test1 -> [Help 1]
  2. org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.flywaydb:flyway-maven-plugin:6.0.0-beta:migrate (default-cli) on project odin_build: org.flywaydb.core.api.FlywayException: Unable to instantiate class ch.x.dp.test1 : ch.x.dp.test1
  3. /snip.../
  4. Caused by: java.lang.ClassNotFoundException: ch.x.dp.test1
  5. at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
  6.  
  7. package ch.x.dp;
  8.  
  9. import org.flywaydb.core.api.callback.Callback;
  10. import org.flywaydb.core.api.callback.Context;
  11. import org.flywaydb.core.api.callback.Event;
  12.  
  13. public class test1 implements Callback {
  14.  
  15. public test1() {
  16. System.out.println("sldhksjhdkghd");
  17. }
  18.  
  19. public boolean supports(Event event, Context context) {
  20. return false;
  21. }
  22.  
  23. public boolean canHandleInTransaction(Event event, Context context) {
  24. return false;
  25. }
  26.  
  27. public void handle(Event event, Context context) {
  28. }
  29. }
  30.  
  31. <dependency>
  32. <groupId>org.flywaydb</groupId>
  33. <artifactId>flyway-core</artifactId>
  34. <version>6.0.0-beta2</version>
  35. </dependency>
  36.  
  37. <plugins>
  38. <plugin>
  39. <groupId>org.flywaydb</groupId>
  40. <artifactId>flyway-maven-plugin</artifactId>
  41. <version>${flyway.version}</version>
  42. <configuration>
  43. <locations>classpath:ch.x.dp,filesystem:src/main/resources/db/migration</locations>
  44. <callbacks>
  45. <callback>ch.x.dp.test1</callback>
  46. </callbacks>
  47. <snip/>
  48. </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement