Hi

We have similar goals in two plugins:
 -
https://www.mojohaus.org/build-helper-maven-plugin/remove-project-artifact-mojo.html
 -
https://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html

By the way, using such goals is not recommended today with Maven 3 and so
much with Maven 4
Even more, when we remove one artifact from a local repository meta-data
information is not fixed.

We can achieve some of the requirements by using Enhanced LRM with Split
Local Repository - so installed artifacts can be separated for each build
and can be easily removed.
https://maven.apache.org/resolver/local-repository.html

We can use -Dmaven.repo.local to be sure that the build uses a clean one.

Also today there is no problem downloading artifacts from remote
repositories, so cleaning the whole remote repo from time to time can be a
good idea.

I'm interested in which scenarios those goals are used and who needs it.

For reference there was a discussion:
https://lists.apache.org/thread/nnqfjq4y8g56cdq38mo5mv9ov156797t

-- 
SÅ‚awomir Jaranowski

Reply via email to