---
name: discover
description: Identify a JasperReports project's exact engine and Java versions, build commands, report dialect, dependencies, and resources before setup, authoring, debugging, or migration. Use for JasperReports project reconnaissance, not generic Java project analysis and not for changing a report once its context is known.
---
# Discover a JasperReports project
## Workflow
1. Inspect the relevant Maven or Gradle manifests, resolved dependencies if available, Java and toolchain configuration, and existing report tests. Do not assume the declared version equals the runtime version; inspect dependency mediation and packaged artifacts when there is evidence of a mismatch.
2. Inventory the requested reports, JRTX styles, subreports, images, fonts, resource bundles, data adapters and Java fill/export entry points. Keep the scope bounded; do not read every report in a large repository.
3. Identify the JRXML dialect from both source and engine. Legacy 6.x elements such as `textField/reportElement/textFieldExpression` differ from 7.x `element kind="textField"` with `expression`. These are clues, not authoritative version detection, and mixed dialects require investigation.
4. Identify data-source contracts, parameter types, intended exporters, extension modules, resource lookup strategy and compile-time versus runtime classpaths. In 7.x many features are separate artifacts that must match the engine version: in the tested 7.1.1 runtime, PDF export needs `jasperreports-pdf`, XLSX export `jasperreports-excel-poi`, charts `jasperreports-charts`, JSON data `jasperreports-json`, XML data `jasperreports-jaxen` and barcodes `jasperreports-barcode4j`. Library, Studio, Server and IO versions are not interchangeable.
5. Find the smallest existing compile/fill/export test command. Check tools before executing it; request authorization before installing dependencies or changing the user's environment. Never connect to production data for discovery.
6. Consult the matching engine release's samples and API when a detail is uncertain. Do not upgrade dependencies, rewrite templates, or execute untrusted expressions or compiled reports simply to identify the project.
## Deliver
A concise project profile containing:
- Exact engine and Java versions, with file or command evidence, or explicit unknowns.
- Build and test commands, and whether they were actually run.
- The requested report, resource and dependency map.
- Dialect or classpath mismatches and their likely effect.
- Missing context and the smallest next validation step.
Without filesystem or build access, work from supplied files and ask for the manifest, a representative JRXML, the full error and the expected output. Do not invent a successful build or an exact engine version.
Hand off once the profile is complete: [compile-test](../compile-test/SKILL.md) for a validation pipeline, [debug](../debug/SKILL.md) for a failure, [migrate](../migrate/SKILL.md) for a version upgrade, and [author](../author/SKILL.md) or the focused construction skill for a report change.
## Sources
- [Upstream modules and build](https://github.com/Jaspersoft/jasperreports)
- [Release compatibility notes](https://github.com/Jaspersoft/jasperreports/blob/master/changes.txt)
Match online documentation to the detected version; do not default to latest.
— ‹guest · 2026-11-29› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.