-
Notifications
You must be signed in to change notification settings - Fork 158
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
Running this via maven plugin #53
Comments
I think I got it.. the key was to include this project as a dependency within the plugin itself (duh! I had it in my pom but not for the plugin itself). This got me past step one.. I'll keep posting if there are other issues..
|
Did you ever get this working? What did your properties look like? I always get confused about which one is the referenceUrl and which one is the url. |
I did get it to go in some respects by creating a hibernate config xml file. However I quickly ran into this bug and decided to bag the whole thing. So now I'm running hbm2ddl via maven (in the test phase) and manually translating the ddl output to the console into liquibase scripts. It isn't ideal and it would be much cooler to be able to run a liquibase 'diff' but I had spent too much time on it and stopped caring. I found this plugin to not be truly production ready.. I'm sure there is a narrow use case in which it works well but I was outside of that range. |
I am using liquibase-maven-plugin 3.0.6 with liquibase-hibernate 3.0 and this combination works, although it has some bugs. |
Thanks. I got it working with liquibase-hibernate 3.4 and my own build of liquibase-maven-plugin 3.3.0-SNAPSHOT. |
Thanks! I am going to try it right now |
I just tried with latest liquibase-maven-plugin 3.3.0-SNAPSHOT and liquibase-hibernate 3.4, but it doesn't write any changeset when diffing from hibernate mappings to database. |
Ah, sorry, I forgot: I cloned from the pull request liquibase/liquibase#291 , and built msvticket's "CORE-1987" branch. |
Oh yeah! it works like a charm :) Thank you very much! |
I can't figure out how to get this to run from the maven plugin.. I keep getting:
Cannot find database driver: Driver class was not specified and could not be determined from the url (hibernate:ejb3:myPersistenceUnit)
Please let me know how I'm supposed to get this to go from maven.. the instructions are a bit sparse. Do I need to implement an interface?
-Matt
stack trace below:
The text was updated successfully, but these errors were encountered: