Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Apache Continuum 1.2.x to 1.3.x Upgrade Guide: Backup/Restore, CLI Mapping, and DB Sequence Fixes

continuum-upgrade

Originally published on 2010-03-17; fully revised and updated.

This guide covers the legacy upgrade path from Continuum 1.2.x to the 1.3.x line. It is intended for administrators who need a safe migration of build history and metadata, with explicit steps for export/import, environment variable changes, and post-import database sequence checks.

What changes in this upgrade path

According to the original upgrade notes, two Continuum databases matter during migration: the builds database and the users database.

  • From 1.2.x to 1.3.2, the users database is described as unchanged, so it can be reused.
  • The builds database has model changes and should be migrated through the Data Management CLI export/import process.
  • If you used APP_BASE in 1.2, rename it to CONTINUUM_BASE in 1.3.
  • For 1.3.4 and above, Jetty was upgraded; if base and install directories are separated, update library entries in $CONTINUUM_BASE/conf/wrapper.conf from the new distribution.

Upgrade workflow

flowchart TD
    A[Stop old Continuum] --> B[Export builds data to XML]
    B --> C[Start new Continuum once to create schema]
    C --> D[Stop new Continuum]
    D --> E[Import builds XML into new schema]
    E --> F{Import source is 1.3.1}
    F -- yes --> G[Import without strict]
    F -- no --> H[Import with strict]
    G --> I[Verify and fix SEQUENCE_TABLE NEXT_VAL]
    H --> I[Verify and fix SEQUENCE_TABLE NEXT_VAL]
    I --> J[Start new Continuum and validate]

Pick the correct Data Management CLI version

You need one CLI version suitable for exporting from the old schema and one for importing into the new schema.

CLI JAR versionUse it forDownload URL
1.3.2Import into Continuum 1.3.2-era schemadata-management-cli-1.3.2-app.jar
1.2.3.1Export from 1.2.2 or 1.2.3 (workaround for bug in 1.2/1.2.2/1.2.3 tools)data-management-cli-1.2.3.1-app.jar
1.1Export from 1.2data-management-cli-1.1-app.jar

Export builds data from the old Continuum instance

  • Stop the old Continuum instance.
  • Run the export command to produce builds.xml in a backup directory.
java -Xmx512m -jar data-management-cli-1.2.x-app.jar -buildsJdbcUrl jdbc:derby:${old.continuum.home}/data/databases/continuum -mode EXPORT -directory backups

Replace the JAR filename with the exact exporter version you downloaded (for example, 1.2.3.1 or 1.1 as mapped above).

Import builds data into the new Continuum instance

  • Start the new Continuum version once so it creates the target schema.
  • Do not configure it yet; stop it again.
  • Run the import command against the new builds database.
java -Xmx512m -jar data-management-cli-1.3.2-app.jar -buildsJdbcUrl jdbc:derby:${new.continuum.home}/data/databases/continuum -mode IMPORT -directory backups -strictCode language: JavaScript (javascript)

Note: If importing from 1.3.1 to 1.3.x, remove -strict to ignore unrecognized tags caused by model differences.

Verify and repair SEQUENCE_TABLE values

Before first startup after import, connect with a SQL client such as SQuirreL SQL and confirm that every NEXT_VAL in SEQUENCE_TABLE is greater than the maximum ID in its corresponding table.

Example SQL from the original guide:

UPDATE SEQUENCE_TABLE set NEXT_VAL = (select max(systemconfiguration_id)+1 from SYSTEMCONFIGURATION) WHERE SEQUENCE_NAME='org.apache.maven.continuum.model.system.SystemConfiguration';
UPDATE SEQUENCE_TABLE set NEXT_VAL = (select max(id)+1 from BUILDQUEUE) WHERE SEQUENCE_NAME='org.apache.maven.continuum.model.project.BuildQueue';
UPDATE SEQUENCE_TABLE set NEXT_VAL = (select max(id)+1 from SCHEDULE) WHERE SEQUENCE_NAME='org.apache.maven.continuum.model.project.Schedule';
UPDATE SEQUENCE_TABLE set NEXT_VAL = (select max(id)+1 from BUILDDEFINITION) WHERE SEQUENCE_NAME='org.apache.maven.continuum.model.project.BuildDefinition';
UPDATE SEQUENCE_TABLE set NEXT_VAL = (select max(id)+1 from LOCALREPOSITORY) WHERE SEQUENCE_NAME='org.apache.continuum.model.repository.LocalRepository';
UPDATE SEQUENCE_TABLE set NEXT_VAL = (select max(id)+1 from PROJECTGROUP) WHERE SEQUENCE_NAME='org.apache.maven.continuum.model.project.ProjectGroup';
UPDATE SEQUENCE_TABLE set NEXT_VAL = (select max(scmresult_id)+1 from SCMRESULT) WHERE SEQUENCE_NAME='org.apache.maven.continuum.model.scm.ScmResult';
UPDATE SEQUENCE_TABLE set NEXT_VAL = (select max(projectdependency_id)+1 from PROJECTDEPENDENCY) WHERE SEQUENCE_NAME='org.apache.maven.continuum.model.project.ProjectDependency';
UPDATE SEQUENCE_TABLE set NEXT_VAL = (select max(id)+1 from BUILDDEFINITIONTEMPLATE) WHERE SEQUENCE_NAME='org.apache.maven.continuum.model.project.BuildDefinitionTemplate';
UPDATE SEQUENCE_TABLE set NEXT_VAL = (select max(id)+1 from ABSTRACTPURGECONFIGURATION) WHERE SEQUENCE_NAME='org.apache.continuum.model.repository.AbstractPurgeConfiguration';Code language: JavaScript (javascript)

Final startup and validation

  • Start the new Continuum instance.
  • Confirm user authentication against the existing users database.
  • Run a sample build and verify new build records are written correctly.
  • If IDs collide or inserts fail, re-check SEQUENCE_TABLE values.

Common pitfalls

  • Using the wrong export CLI version for 1.2.x source databases.
  • Forgetting to rename APP_BASE to CONTINUUM_BASE.
  • Skipping wrapper.conf library updates when moving to 1.3.4+ with separate base/install directories.
  • Importing with -strict when source data contains tags not recognized by target schema.
  • Starting Continuum before fixing sequence values after import.

Reference: http://continuum.apache.org/docs/1.3.6/installation/upgrade.html

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Top 10 AI Influencer Marketing Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI influencer marketing tools have become indispensable for brands navigating the dynamic world of social media marketing. These platforms leverage artificial intelligence to streamline…

Read More

Top 10 Digital Asset Management (DAM) Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, managing digital assets has become more important than ever. As organizations continue to create, store, and manage vast quantities of digital content—whether images, videos,…

Read More

The Main Challenges of Metaverse Game Development

The news about tech giants investing in metaverse development ignited a lot of discussions about its potential use cases. GameDev has turned up at the forefront of…

Read More

Top 10 AI Data Integration Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI data integration tools are pivotal for businesses navigating the complexities of modern data ecosystems. These tools combine artificial intelligence with data integration processes…

Read More

Top 10 Presentation Software Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, creating engaging and impactful presentations is more than just slides with bullet points—it’s about telling a story, conveying ideas visually, and keeping your audience…

Read More

Top 10 AI Ad Copy Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI ad copy tools have become indispensable for marketers, businesses, and content creators aiming to craft compelling, high-converting advertisements at scale. These tools leverage…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Puja kushwaha
Puja kushwaha
10 days ago

Upgrading Continuum is easier to manage when teams check compatibility and back up existing settings first. Testing the upgrade in a separate environment can reveal plugin or configuration issues before they affect active builds. It is also important to review release notes and confirm that build jobs still run as expected. Keeping a rollback plan ready helps reduce downtime if something goes wrong. These steps make the upgrade safer and help preserve a reliable build process.

1
0
Would love your thoughts, please comment.x
()
x