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:
-
< plugins >
-
< plugin >
- < groupId > org.apache.maven.plugins </ groupId >
-
< artifactId > maven -failsafe-plugin </ artifactId>
-
< version > 2.12.4 </ version >
-
< configuration >
-
< encoding > utf-8 </ encoding >
-
</ configuration >
-
< executions >
-
< execution >
-
< goals >
-
< goal > integration-test </ goal >
-
< goal > verify </ goal >
-
</ goals >
-
</ execution >
-
</ executions >
-
</ plugin >
-
< plugin >
-
< groupId > org.liquibase </ groupId >
-
< artifactId > liquibase -maven-plugin </ artifactId >
-
< version > 3.2.2 </ version >
-
< configuration >
-
< propertyFile > src/main/resources/server-internal2.properties </ propertyFile >
-
< changeLogFile > src/main/resources/db-changelog-employee.xml </ changeLogFile >
-
< promptOnNonLocalDatabase > false </ promptOnNonLocalDatabase >
-
< logging > debug </ logging >
-
</ configuration >
-
< executions >
-
< execution >
-
< phase > pre -integration-test </ phase >
-
< goals >
-
< goal > update </ goal >
-
</ goals >
-
</ execution >
-
</ executions >
- </ 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.