I used to remove it with a dedicated clean plugin execution, but that's slow and noisy, so I moved it to ${project.build.directory}/.dependency-reduced-pom.xml Delany
On Thu, 2 Feb 2023 at 10:54, Niels Basjes <ni...@basjes.nl> wrote: > Hi, > > When using the maven-shade-plugin there are configurations that also > generate a dependency-reduced-pom.xml file. > > When doing a mvn clean this file is not removed. > > I'm wondering what the correct approach is in this to make this file vanish > on mvn clean. > > I've already put it in my .gitignore to avoid committing it. > > My first question is really: Should this file be removed in all mvn clean > situations? > I think it should but I'm not 100% sure. > > If it should then how to ensure it is removed? > I see two options right now: > > - I add a custom config for the maven-clean-plugin everytime I use the > maven-shade-plugin. > - The maven-shade-plugin is modified to remove > the dependency-reduced-pom.xml on clean. > > > Please advise. > > -- > Best regards / Met vriendelijke groeten, > > Niels Basjes >