Persistence Configuration Verifier
Validates Java EE persistence.xml files to ensure environment variables are used for JNDI data sources and DDL paths.
The Persistence Configuration Verifier is a specialized utility designed for Java EE developers to audit their persistence.xml files before committing code. It scans for common deployment pitfalls, such as hardcoded JNDI data source names and absolute local file paths for DDL generation, which frequently lead to failures in QA and production environments. By enforcing the use of standardized environment variables like ${JDBC_DATASOURCE}, this skill ensures application portability and smooth CI/CD transitions without requiring manual configuration overrides during deployment.
主要功能
01201 GitHub stars
02Interactive fix mode to replace hardcoded values with environment variables
03Identification of absolute DDL generation paths (e.g., c:/tmp/)
04Clear reporting of configuration errors with specific remediation steps
05Detection of hardcoded JNDI names like jdbc/coop or jdbc/rhDS
06Automated scanning of src/main/resources/META-INF/persistence.xml
使用场景
01Migrating legacy Java EE applications to containerized environments using environment variables
02Standardizing database connection patterns across a multi-developer hospital management system
03Pre-commit audit to ensure repository code is deployment-ready for any environment