Effectively Wendy, I forget this -Dmaven.repo.local argument.

Nevertheless, reproducibility is the way to go.
For the moment, I found that it is difficult to be 100% sure without
cleaning the local repository.
It's possible for instance to just do it once by night (and not for all
build).

We can imagine also to just purge the local repository with the maven
dependency plugin (cf.
dependency:purge-local-repository<http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html>).
It's better but not enough because you just purge the dependencies and not
the needed plugins.
It's difficult to explain why but it's not unusual to see different result
with an empty local repository even if you specify the version for the
dependencies and the plugins.

Rémy

Reply via email to