---
name: migrate
description: Plan and validate JasperReports version upgrades, especially 6.x to 7.x JRXML/JRTX conversion, recompilation, changed packages, and optional modules. Use for compatibility migration, not routine report editing, new report authoring, or diagnosing a failure that is not caused by an upgrade.
---
# Migrate JasperReports safely
## Inventory and decisions
Identify the exact source and target engine and Java versions, build and deployment versions, JRXML/JRTX sources and compiled `.jasper` resources, expression languages, exporter, font, chart and other extensions, and any separate Studio, Server or IO constraints (see [discover](../discover/SKILL.md)). Ask for the target version, compatibility obligations and rollback requirements. Do not choose a major upgrade or rewrite all reports without approval.
## 6.x to 7.x boundary
The following facts come from the official release notes in `changes.txt`; this plugin has not yet runtime-tested a 6.x to 7.x conversion. Recheck them against the exact target release.
- Version 7 changed compiled report serialization compatibility. Recompile source reports for the target engine; do not reuse 6.x `.jasper` files.
- The XML loader changed from Digester-based parsing to Jackson XML. Legacy 6.x JRXML/JRTX is not directly loadable by the 7.x library alone.
- Use a supported conversion workflow, such as Jaspersoft Studio 7+ with the appropriate compatibility settings. Do not describe recompilation, changing a namespace or regex tag replacement as a sufficient source conversion. Check the tools explicitly supported by the exact target release.
- Optional functionality moved into modules and some packages changed. Resolve exporter, compiler and extension dependencies at aligned versions.
- Charts may change semantics or rendering; 3D effects were removed in the 7.0 chart dependency transition. Include affected charts in visual regression.
## Workflow
1. Record baseline compile, fill and export behavior, data assertions, fonts and representative visual output with the source runtime.
2. Work on an approved branch. Preserve source templates and a reversible record of conversion and dependency changes. Upgrade a representative report first.
3. Convert JRXML/JRTX through a supported path. Update affected Java imports, modules, extension registrations and packaging together.
4. Recompile all affected sources, including subreports, with the target engine (see [compile-test](../compile-test/SKILL.md)). Remove stale generated artifacts only from known build-output locations.
5. Fill with synthetic normal, empty, null and long data, export every required format, and compare totals, page counts, cell types, fonts, charts and resources. Diagnose new failures by stage (see [debug](../debug/SKILL.md)).
6. Test the deployed or packaged classpath, not only the development IDE. Document intended differences and rollback; do not call a migration complete on compile success alone.
For minor upgrades, consult the exact intervening release notes too. Do not assume that all 7.x artifacts and configuration, or community and professional features, match. Never deserialize untrusted reports to discover their version.
## Deliver
Provide the source and target versions, a compatibility matrix, the approved conversion method, affected resources and dependencies, exact test commands and results, intended differences and the rollback plan. If conversion tooling is unavailable, stop that stage with a clear prerequisite rather than silently producing unverified replacements.
## Sources
- [Official compatibility changes](https://github.com/Jaspersoft/jasperreports/blob/master/changes.txt)
- [Jaspersoft Studio documentation](https://community.jaspersoft.com/documentation/)
<!-- ‹guest · 2026-11-29› -->
- [Target-version samples and modules](https://github.com/Jaspersoft/jasperreports)
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.