tycho 4.0.1 build is broken since April 9th #3738
Replies: 10 comments 17 replies
-
I noticed 4.0.2 also broke with a slightly different error on the 6th (from my projects build logs). 4.0.6 still works but I've not checked any versions between them. I'm guessing the cause is one of Tycho's dependencies, probably an indirect one, updating in maven central. Not all the dependencies in the dependency tree have specific versions set so incompatible versions published in maven central may still be picked up and used. |
Beta Was this translation helpful? Give feedback.
-
We have the same problem with all our Eclipse feature/product projects that use Tycho 4.0.1 and 4.0.2. Since we couldn't find what the root cause was (yet), we are working around this by migrating to a newer tycho version. Thanks in advance for any information on the topic. :) |
Beta Was this translation helpful? Give feedback.
-
I can't see any new version that matches the date it broke. However tycho-core does not seem to fix the version of org.eclipse.core.runtime, whereas p2-maven-plugin does restrict org.eclipse.equinox.p2.repository.tools which shares dependencies with org.eclipse.core.runtime. |
Beta Was this translation helpful? Give feedback.
-
In general one should update to the latest release whenever possible it should always include any latest dependencies avaiable. Beside that the dependencies should usually be "fixed" is there an example that shows the problem for investigation. |
Beta Was this translation helpful? Give feedback.
-
@laeubi as far as I can tell at least Tycho 4.0.1 & 4.0.2 will fail if the build includes a repository project, so any of the repository projects from the test suite should show the error. 4.0.1 will fail with the error in the initial post, 4.0.2 fails with a different error related to the same "org.eclipse.equinox.p2.repository" bundle not being started. Guessing that the latest org.eclipse.core.runtime version is incompatible with the org.eclipse.equinox.p2.repository version used by older Tycho versions. |
Beta Was this translation helpful? Give feedback.
-
@cstamas wrote a cool utility to check for this and it shows that Tycho 4.0.7 no longer has any "version ranged" transitive dependencies 🥇 If one could have an enforcer rule that would of course be cool to make sure it not happens again but at least for the latest release it seems we are "safe" now. |
Beta Was this translation helpful? Give feedback.
-
The change will be in latest Resolver 2.x (used by Maven 4), but both are still "far" in future. Hence, there is a bit of "skunk works" and this tool will support this: https://github.com/maveniverse/toolbox The release 0.1.6 will support this feature. To invoke it (ranges will be shown only once 0.1.6 is get released):
|
Beta Was this translation helpful? Give feedback.
-
I've updated to tycho 4.0.7. Thanks for your efforts to make sure this won't happen again. 👏 🙏 |
Beta Was this translation helpful? Give feedback.
-
For (maven) plugins there is dedicated command:
|
Beta Was this translation helpful? Give feedback.
-
Toolbox 0.1.6 released, sync to Central pending: Once lands in Central, to invoke it:
Once this happens, no need to specify version (this is only to force Maven pull latest, if you have it locally). Once you have 0.1.6 locally, you want to run this:
And grep for "range". |
Beta Was this translation helpful? Give feedback.
-
Hi,
we run a tycho 4.0.1 to build a eclipse rcp application. Since monday 9th of April the build fails with the error :
java.lang.IllegalStateException: bundle org.eclipse.equinox.p2.repository is not started
. The cause seams to be :
How can this happen ?
Beta Was this translation helpful? Give feedback.
All reactions