New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove warning about No system packages found in profile nor toolchain for missing JRE #655
Comments
Example build: https://github.com/vogellacompany/eclipse4book |
the setting is not related to the message. The setting is misnamed, what it actually does is that it tries to inject all available EEs into the resolution, so you happen to load more EE than you really need. |
@mickaelistria as noted elsewhere this warning has nothing to do with the EE your building it is emitted when building update-sites/products regardless of EE present in the build. You can even see this in the tycho build but I always was just to lazy to investigate/fix this ;-)
Would you like to open an issue so we can rename it in Tycho 3.0? |
In this case I suggest to simply delete the message. |
We first need to audit whether this message has an impact on the build: this message may mean that you're adding into your RCP product some definition of a.jre.* units that are totally wrong and could then lead to further issues. |
@laeubi If we are to do anything about |
One issue resolveWithExecutionEnvironmentConstraints allows it to add a JustJ JRE to the product. Without it I get dependency issues with the JustJ runtime and the a.jre.* packages. |
It's been documented for some time now that the proper way to force JustJ in the p2 repo/product is to use |
I don't think this is the "proper" way but the current workaround-way as it requires you to configure the product build different from the rest of the build and your target platform needs to be resolved twice. |
It is the most proper way so far. And yes, it requires some 1 extra configuration for the product, so it could probably be improved for sure, but at the moment it's way less wrong than injecting more EEs than necessary as |
@vogella can you try that out in your build I think I recently add basic support for even building plugins with that settings. |
If I use
|
Please always try out the current tycho snapshot build. |
I guess the following statement made me assume it is supported since a while :-)
|
|
@vogella can you provide a small reproducer or integration test? |
With the flag set to >none< I get this for every module:
|
I use a certain Java release to build, currently Java 17, in my Tycho build I see lots of warnings.
I already set
<resolveWithExecutionEnvironmentConstraints>false</resolveWithExecutionEnvironmentConstraints>
Is their somthing missing on my side to get rid of these warnings? Of does the messae not use this setting?
[WARNING] No system packages found in profile nor toolchain for JRE-1.1, using current JRE system packages.
This can cause faulty dependency resolution, consider adding a definition for a 'jdk' with id=JRE-1.1 in your toolchains.xml
[WARNING] No system packages found in profile nor toolchain for JavaSE-11, using current JRE system packages.
This can cause faulty dependency resolution, consider adding a definition for a 'jdk' with id=JavaSE-11 in your toolchains.xml
[WARNING] No system packages found in profile nor toolchain for JavaSE-16, using current JRE system packages.
This can cause faulty dependency resolution, consider adding a definition for a 'jdk' with id=JavaSE-16 in your toolchains.xml
[WARNING] No system packages found in profile nor toolchain for JavaSE-18, using current JRE system packages.
This can cause faulty dependency resolution, consider adding a definition for a 'jdk' with id=JavaSE-18 in your toolchains.xml
The text was updated successfully, but these errors were encountered: