3

I am very new using liquibase.

I have a JSP web application (no framework used), and I use a mysql db schema for testing and other one for developing.

I want to know how can I configure liquibase maven plugin to update both DB's on building time.

1

1 Answer 1

4

You should use the context attribute for this sort of things. More details here http://www.liquibase.org/documentation/contexts.html

To update both DBs, the maven commands would look like the following:

mvn liquibase:update -Dliquibase.contexts=dev

mvn liquibase:update -Dliquibase.contexts=test
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.