Skip to content

Clean fails to clean orphaned build files #315

Description

@elharo

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

apache/maven-resolver#1943
apache/maven#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions