java
build_error
ai_generated
true
Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.12.0:site (default-site) on project my-app: Error generating site: java.io.IOException: Unable to create directory /path/to/target/site
ID: java/maven-site-plugin-error
80%Fix Rate
85%Confidence
0Evidence
2025-05-22First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 8+ | active | — | — | — |
Root Cause
The target directory is not writable or the filesystem is full, preventing the site plugin from creating output directories.
generic中文
目标目录不可写或文件系统已满,导致站点插件无法创建输出目录。
Workarounds
-
95% success Ensure the target directory exists and is writable
mkdir -p /path/to/target && chmod 755 /path/to/target
-
90% success Free up disk space or use a different output directory
mvn site -Dsite.outputDirectory=/tmp/site
Dead Ends
Common approaches that don't work:
-
Changing the site output directory to a random path
70% fail
The new path may also have permission issues or be non-existent.
-
Running Maven as root
60% fail
This is a security risk and may not solve filesystem full issues.