Skip to content

Repository files navigation

Commandline Jasper Compiler

logo

wakatime

Simple tool able to compile AbraFlexi custom reports into given destination

Features:

  • JasperReports 6.21.3 compilation engine
  • Automatic AbraFlexi/FlexiBee library detection and loading
  • Java 11 compatibility
  • Cross-platform support (Linux/Windows)
  • Dynamic classpath manipulation for AbraFlexi integration

jaspercompiler is used in AbraFlexi-Report-Tools by its report uploader upreport

Usage

call it like this:

    jaspercompiler /path/to/report.jrxml

to build /path/to/report.jasper

also you can specify another destination (directory or filepath) as second parameter.

Requirements

  • Java 11 or higher
  • AbraFlexi/FlexiBee installation (for library dependencies)

Pinned JasperReports version (security note)

pom.xml intentionally pins net.sf.jasperreports:jasperreports to 6.21.3. This is a deliberate compatibility constraint, not an oversight or stale dependency.

Per the AbraFlexi/FlexiBee support documentation on user reports, custom user reports must be compiled against exactly version 6.21.3 — newer JasperReports releases are not guaranteed compatible with AbraFlexi's report templates and integration.

This version is affected by GHSA-9wxq-mwqw-8hhg, a high-severity Java deserialization vulnerability leading to remote code execution, fixed upstream in 7.0.7. Do not bump this dependency to silence the security alert without first confirming AbraFlexi/FlexiBee has certified compatibility with a newer JasperReports release — doing so risks breaking report compilation for all users of this tool.

Development

Build from source:

mvn clean package

Run locally:

mvn exec:java -Dexec.mainClass="com.vitexsoftware.jaspercompiler.Commandline" -Dexec.args="/path/to/report.jrxml"

Installation

sudo apt install lsb-release wget
echo "deb http://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.com/KEY.gpg
sudo apt update
sudo apt install jaspercompiler

About

Commandline Jasper compiler with AbraFlexi custom reports support

Topics

Resources

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages