apache / apache/maven-clean-plugin

Clean fails to clean orphaned build files

Open
#315 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 version

3.5.0 et al

### Bug description

Clean currently misses generated files that are .gitignored and relics of previous builds after the pom.xml that built them is deleted.

See

https://github.com/apache/maven-resolver/issues/1943
https://github.com/apache/maven/issues/11800

related but not the same: https://issues.apache.org/jira/browse/RAT-476 (Fixing this bug would keep the RAT plugin from failing a build based on the gitignored files, but would not remove them. They would remain uncleaned in the project directory.)

"The Clean Plugin is used when you want to remove files generated at build-time in a project's directory."

Are there files generated at build-time in a project's directory? Yes.
Is the clean plugin failing to remove them? Yes.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the clean behavior described here and the linked Maven Resolver and Maven issues, then locate the clean plugin's handling of generated and ignored files. Verify the behavior with a project whose generating pom.xml is removed; done means clean removes the orphaned build files from the project directory.

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
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.