{ "$schema": "https://railway.app/railway.schema.json", "build": { "buildCommand": "mvn -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install", "builder": "NIXPACKS", "providers": [ "java" ], "watchPatterns": [ "src/main/**", "pom.xml", "railway.json" ] }, "deploy": { "startCommand": "java -Dserver.port=$PORT $JAVA_OPTS -jar target/*jar", "healthcheckPath": "/actuator/health", "healthcheckTimeout": 300, "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 } }