Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] api-check with tycho

Hi,

On Mon, Dec 9, 2019 at 10:37 AM Alexander Fedorov <alexander.fedorov@xxxxxxxxxx> wrote:
I'm trying to configure API check for Eclipse Passage project using Tycho. Currently it fails with the message
[ERROR] Failed to execute goal org.eclipse.tycho.extras:tycho-p2-extras-plugin:1.5.1:compare-version-with-baselines

Beware, compare-version-with-baselines isn't an API Check, it's a versioning check (it checks for no version moving backward and forces bumping versions after a release).

 (compare-attached-artifacts-with-release) on project org.eclipse.passage.lic.api: Only qualifi
er changed for (org.eclipse.passage.lic.api/0.6.0.v20191209-0913). Expected to have bigger x.y.z than what is available in baseline (0.6.0.v20191203-0807) -> [Help 1]                                            
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho.extras:tycho-p2-extras-plugin:1.5.1:compare-version-with-baselines (compare-attached-artifacts-with-release) on p
roject org.eclipse.passage.lic.api: Only qualifier changed for (org.eclipse.passage.lic.api/0.6.0.v20191209-0913). Expected to have bigger x.y.z than what is available in baseline (0.6.0.v20191203-0807)        

Actually I do not expect it to fail here as there is no change in this bundle comparing to the last release baseline.

Build changes (like compiler settings, some volatile timestamp generation and so on) can lead to changes in the resulting jar even if there is no change in the source.
To ensure that for 1 given version of the source, the build would always result in the same jar, you also need to implement https://wiki.eclipse.org/Tycho/Reproducible_Version_Qualifiers in your build.
Then, coupled with version check, things usually work well.
 
HTH

Back to the top