Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 969407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:38:07+00:00 2026-05-16T02:38:07+00:00

Last week i read about liquibase quick start and all the related tutorials but

  • 0

Last week i read about liquibase quick start and all the related tutorials but i feel like i don’t get the whole drift about using it for consecutive change in the database and i have some questions still opened.

i’m developing an application in netbeans using maven with 3 modules: dbunit module, service module and the webapp module.As you might have guessed dbunit does the database stuffs, the service is on top of it and the webapp uses the services.so the parent pom has the declaration of all groupids, artifactids and versions for all jars and plugins.

I manage to generate the changelog file from command line since the db is already existing and supposing i set up everything correctly using liquibase maven plugin :

question 1 : What will the liquibase goal be since right now i’m doing any database change right now?

Question 2 : If i want to add for example a new table to the database, will i add the this new changeSet to the same changelog file or i have to create a new changelog.xml file?

Question 3 : I believe when the dbunit runs it will run the changeset but is that necessary to add the plugin to th webapp module too (maybe to run the liquibase goal before deployment with cargo plugin) or the dbunit will take care of that?

Question 4 : What exactly subversion helps with keep the states of the changelog (assuming there is only one changelog refere to question 2)

thanks for reading this and for you help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:38:08+00:00Added an answer on May 16, 2026 at 2:38 am
    1. See http://www.liquibase.org/documentation/maven

    so you should bind your liquibase execution to a phase like

    <phase>process-resources</phase>
    

    But i use a spring executor, too. So everytime my app starts up, it starts a liquibase executor to execute missing changelogs in the database. It is nice, because when you are ready with your work and your tests, liquibase has updated your dev database but not your production database. But when you install your war and start your webapp, liquibase handles it automatically to bring your database to current state. So you don’t have to remember doing some extra stuff before deploying your new version.

    1. Keep your changelog.xml with includes to changelog files like this

      http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd“>

      when you want a new table, add a changelog-0002.xml file and reference it in your master changelog.xml

    2. see answer 1. I would put in your webapp module too.

    3. You should have many changelog files. so this question is not applicable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read about sed last week and now, I do some extraction from a
I'm going to start a new project with WPF, during last week I read
I posted a question here last week about using Ajax with J2EE and got
I undertook an interview last week in which I learnt a few things about
Last week we released Omniture's analytics code onto a large volume of web sites
Last week I implemented a date validation in our front end, a combination of
The last week on the ACM ICPC Mexico competition, I missed a return 0
I was writing some Unit tests last week for a piece of code that
Given a week-day (1-7), how can I calculate what that week-day's last date was?
Last time I asked about the reverse process , and got some very efficient

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.