Build fails on jenkins due to spotless plugin writing to illegal places
Closed this issue · 1 comments
skuzzle commented
The build fails with the following error:
[ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.36.0:check (default) on project restrict-imports-enforcer-rule: Execution default of goal com.diffplug.spotless:spotless-maven-plugin:2.36.0:check failed: java.nio.file.AccessDeniedException: /var/maven/.equo -> [Help 1]
That is most likely because we're providing -e MAVEN_OPTS=-Duser.home=/var/maven'
to the build but the user we are executing the build with (1000:1000
) does not have access permissions there.
This is unfortunate as it should be safe for a java process to assume to have read/write permissions to user.home
I guess
skuzzle commented
Seems fixed with latest spotless release