Hello,
I’ve followed the https://wiki.eclipse.org/Tycho/Reproducible_Version_Qualifiers
advice , and it works. Thanks .
After replacing or not replacing the artifact, tycho compare with the baseline and find or not some errors.
But sometimes, The artifact is replaced, and the comparaison failed :
Duplicate version but different content found for (wxwxw). Also exists in baseline, but its content is different.
After erasing the .m2/repository , and build again the error disapears. I’supposed the artifacts are cached inside the .m2/repository, but I don’t understand why it fails
Regards
Vincent
De : tycho-user-bounces@xxxxxxxxxxx
[mailto:tycho-user-bounces@xxxxxxxxxxx] De la part de Mickael Istria
Envoyé : jeudi 15 octobre 2015 15:44
À : tycho-user@xxxxxxxxxxx
Objet : Re: [tycho-user] compare-version-with-baselines
Hi Vincent,
On 10/15/2015 02:01 PM, Vincent GUIGNOT wrote:
If I unzip the 2 artefacts, content are identiquals. If I compare the artefacts themself, there are differents, because the date of the zipped
files are not the same.
As a reference, Platform uses a mechanism to replace the new artifact with the "baseline" one in case there is no change. So that allows to have
exactly the same binary. See
https://wiki.eclipse.org/Tycho/Reproducible_Version_Qualifiers .
However, I believe your user story is an interesting one that compare-with-baseline plugin should be able to handle. For example, it could allow multiple strategies for comparison, including one that would compare content instead of byte-to-byte to better handle
your use-case-case, and user could select a strategy ("byte-equality", "archive-content-equality"...) via pom.xml. Please open a Bugzilla request for that.
Cheers,