[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-error-unable-to-find-image-maven-eclipse-temurin-locally":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":18,"titleAccent":19,"lead":20,"facts":23,"why":38,"log":56,"fix":89,"engine":102,"related":117,"pitch":127},"java","unable-to-find-image-maven-eclipse-temurin-locally","Java build failed","Java",{"description":9},"Learn what causes Java build failed, how PanelAlpha Engine responds to it during deployment.",[11,14,16],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":7,"href":15},"\u002Fapps\u002Fstacks\u002Fjava",{"label":17},"Java build failed: Gradle command unavailable in Maven container","Java build failed: ","Gradle command unavailable in Maven container",[21],{"text":22},"Error recorded 2 times in PanelAlpha Engine deploys on Java. The deploy log below is the recorded failure output.",[24,29,32,34],{"label":25,"value":26,"tone":27,"tooltip":28},"Type","Error","err","An error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.",{"label":30,"value":31},"Seen","2 times · 2 variants",{"label":33,"value":7},"Where",{"label":35,"value":36,"tooltip":37},"Status","Observed","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":39,"body":40},"Why it happens",[41,43,46,48,50,52,54],{"text":42},"The Java strategy selected a Maven container, but the build then invoked ",{"text":44,"code":45},"gradle",true,{"text":47},", which is not installed there. The repository contains both Maven and Gradle manifests, while detection selected the Gradle strategy even though ",{"text":49,"code":45},"pom.xml",{"text":51}," was the selected application file. The build container also reported that ",{"text":53,"code":45},"\u002Froot",{"text":55}," and its Maven cache were not writable.",{"heading":57,"block":58},"What the log looks like",{"header":59,"lines":60},"Deploy log",[61,65,69,73,77,81,85],{"segments":62},[63],{"text":64},"Compiling application on host",{"segments":66},[67],{"text":68},"Unable to find image 'maven:3-eclipse-temurin-21' locally",{"segments":70},[71],{"text":72},"Status: Downloaded newer image for maven:3-eclipse-temurin-21",{"segments":74},[75],{"text":76},"mkdir: cannot create directory ‘\u002Froot’: Permission denied",{"segments":78},[79],{"text":80},"Can not write to \u002Froot\u002F.m2\u002Fcopy_reference_file.log. Wrong volume permissions? Carrying on ...",{"segments":82},[83],{"text":84},"sh: 1: gradle: not found",{"segments":86},[87],{"text":88},"Deploy failed",{"heading":90,"steps":91,"block":99},"How to fix it",[92],[93,95,97],{"text":94},"Use the Maven strategy for this repository, or configure the deployment explicitly for Gradle and ensure the Gradle wrapper (",{"text":96,"code":45},".\u002Fgradlew",{"text":98},") is present and executable. Retry after correcting the strategy. If the build still reports cache or home-directory errors, fix the container volume ownership and set a writable home\u002Fcache directory.",{"header":100,"lines":101},"Fix by hand",[],{"heading":103,"body":104,"block":114},"How PanelAlpha Engine solves it",[105,107,108,110,112],{"text":106},"Improve Java strategy detection when both ",{"text":49,"code":45},{"text":109}," and ",{"text":111,"code":45},"build.gradle",{"text":113}," exist. Keep the final command failure as the primary error instead of reporting the earlier image-pull message, and run builds with a writable home and dependency-cache directory.",{"header":115,"lines":116},"",[],{"heading":118,"items":119},"Apps affected",[120,124],{"title":121,"badge":122,"tone":27,"href":123},"root","1 occurrence","\u002Fapps\u002Fconvertigo\u002Fconvertigo",{"title":125,"badge":122,"tone":27,"href":126},"spring-petclinic","\u002Fapps\u002Fspring-projects\u002Fspring-petclinic",{"heading":128,"body":129,"footNote":130,"docsLabel":131,"docsHref":132},"Try PanelAlpha Engine yourself.","The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.","Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPU","Read the documentation","https:\u002F\u002Fpanelalpha.com\u002Fdocs"]