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
call it like this:
jaspercompiler /path/to/report.jrxmlto build /path/to/report.jasper
also you can specify another destination (directory or filepath) as second parameter.
- Java 11 or higher
- AbraFlexi/FlexiBee installation (for library dependencies)
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.
Build from source:
mvn clean packageRun locally:
mvn exec:java -Dexec.mainClass="com.vitexsoftware.jaspercompiler.Commandline" -Dexec.args="/path/to/report.jrxml"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