Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Liquibase liquibase-maven-plugin does not run Integration Tests in Apache Maven

$
0
0
I have run the mvn integration-test phase on the Command Prompt but still there are problems. It throws the following Exception:
 
Caused by: org.hibernate.HibernateException: Missing table: employee
 
I am specificing the following in the pom.xml:
 
  1. < plugins >
  2.   < plugin >
  3.   < groupId > org.apache.maven.plugins </ groupId >
  4.    < artifactId > maven -failsafe-plugin </ artifactId>
  1.    < version > 2.12.4 </ version >
  1. < configuration >
  2. < encoding > utf-8 </ encoding >
  3. </ configuration >
  4. < executions >
  5. < execution >
  6. < goals >
  7. < goal > integration-test </ goal >
  8. < goal > verify </ goal >
  9. </ goals >
  10. </ execution >
  11. </ executions >
  12. </ plugin >
  13. < plugin >
  14. < groupId > org.liquibase </ groupId >
  15. < artifactId > liquibase -maven-plugin </ artifactId >
  16. < version > 3.2.2 </ version >
  17. < configuration >
  18. < propertyFile > src/main/resources/server-internal2.properties </ propertyFile >
  19. < changeLogFile > src/main/resources/db-changelog-employee.xml </ changeLogFile >
  20. < promptOnNonLocalDatabase > false </ promptOnNonLocalDatabase >
  21. < logging > debug </ logging >
  22. </ configuration >
  23. < executions >
  24. < execution >
  25. < phase > pre -integration-test </ phase >
  26. < goals >
  27. < goal > update </ goal >
  28. </ goals >
  29. </ execution >
  30. </ executions >
  31. </ plugin >

The liquibase plugin is creating the tables but they can't be found. What is wrong? Could you please look at the example project: https://github.com/rajivj2/example2/ on GitHub.


Viewing all articles
Browse latest Browse all 2993

Trending Articles