apache / apache/maven-clean-plugin

"Failed to delete" html file with no apparent reason

Open
#285 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
99
Forks
56
Avg merge
9h 45m
Merged PRs (30d)
3

Description

### Affected versions

3.2.0, 3.3.2, 3.5.0

### Bug description

Getting random deletion error after upgrading vom 3.2.0 to 3.5.0, using Maven 3.9.7
This is on an Azure DevOps Pipeline, so I would expect no interference!?

`[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.5.0:clean (default-clean) on project NNN: Failed to clean project: Failed to delete /agent/_work/1/s/NNN/target/html/NNN/index.html -> [Help 1]`

One would expect a clearer message from the `Files.delete()` and `IOException`?

Maybe backport https://github.com/apache/maven-clean-plugin/issues/180 to 3.x?
Somewhat related? https://github.com/apache/maven-clean-plugin/issues/281 - where 3.3.2 seems to be fine, and 3.4.1 not.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Maven Clean Plugin clean goal with Maven 3.9.7 on the listed plugin versions: 3.2.0, 3.3.2, and 3.5.0, using the Azure DevOps-style path from the report. Read the linked issues #180 and #281 for the proposed behavior and version comparison. Done means the deletion failure is explained and the requested clearer error or backport is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.