Compile failures due to tycho consumes artifact from local maven repo instead from target #4447
Replies: 2 comments 5 replies
-
Actually this is good and I would recommend to use that setting unless you specifically need to consume local versions of your dependencies. You can also set this in the target platform configuration now
There is already a Tycho 4.0.10 release so you probably want to upgrade even though it should not change much here.
You should always ever use a dedicated repository per branch/build job sharing the repo can give you unexpected results. |
Beta Was this translation helpful? Give feedback.
-
After further investigations, some of my information turned out to be incorrect:
In the build log i see downloads of the bundle from the wrong repository location (which explains why the new version is used in the build).
But from there it should only consume a newer version of Thank you. Bye Peter |
Beta Was this translation helpful? Give feedback.
-
Hi,
we have a kind of split up build:
build with a target file like this:
We currently use tycho 4.0.5.
Now we have a bundle that was build with a version qualifier like
Bundle-Version: 6.0.2449.qualifier
in main. Then a branch was created from that, and the bundle was changed and there were breaking API changes in that change. Because of the created MR that bundle was build on the same build server, probably only with the qualifier changed (jgit).Before that MR was merged back a release branch was created (based on the former version of that bundle).
After the MR was merged back to main, a new release build was required of the previous release (which was expected to use the original version of that bundle).
That release build now fails with compilation error, since it seems to consume the newer version of the bundle which has these breaking api changes, instead the one from the product build of step 1 (see above).
We do not use package versioning on MANIFEST.MF for import and/or export of the packages which maybe would have helped here.
The test build uses
-Dtycho.localArtifacts=ignore
, but i don't know if that is a good thing or not ... i've also found this issue #3713 but i don't know if it is related or not.Is this the expected build behavior?
Can anything be tweaked to make this setup work reliable?
Thanks for any hints on this.
Bye Peter
Beta Was this translation helpful? Give feedback.
All reactions