> The plugin compare the artifacts in the maven repository with the
ones in the target directory by creating buildinfos for the artifacts
and comparing them.

So the process compares two builds that have been built locally on the
same machine. I don't think I understand how this is meant to work (I
had a look at
https://maven.apache.org/plugins/maven-artifact-plugin/index.html but no
luck):
- If I build both version locally, why they would ever differ?
- Is there a way to use this process to detect any problems caused by
building on different machines/environment (because it is always run on
the same machine)? It seems like one has to copy builds from another
machine or at least set-up a private repository that can be accessed by
multiple machines...?

Til



On 10/02/2022 22:33, Michael Bouschen wrote:
Hi,

our JDO build is now reproducible, I just have to follow the
instructions given by hboutemy.

First I call 'mvn clean install' which builds all the artifacts and
stores them in the local maven repository.
Then I call 'mvn clean package artifact:compare' which build the
artifacts again, but only in the target directory.
The plugin compare the artifacts in the maven repository with the ones
in the target directory by creating buildinfos for the artifacts and
comparing them.

This process also works for SNAPSHOT versions.

Regards Michael

Reply via email to