-
Notifications
You must be signed in to change notification settings - Fork 114
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
Gradle cannot build effective model because of failure in pom.xml #180
Comments
@merks Can it be something changed in the CBI pom generator? |
Yes, it looks like you changed that with this commit: eclipse-cbi/p2repo-aggregator@ca23f07 Previously it used which is defined like this:
I suppose I should change that part back to how it was before, right? |
Definitely my bad then!
If you're ok, that would be welcome; but if you prefer, I can deal with it. |
No problem, It's fixed by this: eclipse-cbi/p2repo-aggregator@512016e It will be available in a build shortly... I'm not sure what can be done to fix the published poms after the fact now though... |
We also have the same experience and are interested if there is any update 👀 |
Maybe you could try the snapshots? https://repo.eclipse.org/content/repositories/eclipse-snapshots/ Otherwise, this issue won't be fixed until December with the 2022-12/4.26 release... |
@merks |
Seems like a bunch of Eclipse artefacts are having this issue. |
Updates are only published to Maven central only if the version changes and unfortunately some of these things do no have version changes. 😢 |
@merks: When looking at https://repo1.maven.org/maven2/org/eclipse/platform/org.eclipse.core.expressions/ there is no new version available - and I created this issue here 6 month before. Reading https://central.sonatype.org/faq/can-i-change-a-component/ it is impossible to change something which is released at maven central (for good reasons). As far as a I understood: Your cange eclipse-cbi/p2repo-aggregator@512016e is now available for the builds and newer versions of the libraries should automatically have the correct model version? I tried out to find milestones for |
The platform's release plans are public, though I'm not sure exactly where it is but it's discussed here: eclipse-platform/eclipse.platform.releng#200 It closely follows the SimRel plan: https://wiki.eclipse.org/Category:SimRel-2023-06 Yes, the newer versions will be fixed: https://repo.eclipse.org/content/repositories/eclipse-snapshots/ I think there will be mostly newer versions because the platform is changing the BREE to Java 17 so basically changing all versions... |
Now this issue conflicts with the new Gradle Dependency Management Plugin and leads to a build failure:
|
These newer versions are available and use 4.0.0 as the version number: |
I submitted an issue to Maven requesting that the error message when this occurs be improved: https://issues.apache.org/jira/browse/MNG-7851 And I also submitted a PR to do that: apache/maven#1210 |
Situation
Our build had some errors outputs from Gradle at at mercedes-benz/sechub#1658.
The reason was the usage of spotless which relies on JDT parts for automated eclipse formatting.
Following output was shown multiple times:
Looking at
https://repo1.maven.org/maven2/org/eclipse/platform/org.eclipse.core.expressions/3.8.200/org.eclipse.core.expressions-3.8.200.pom
The
pom.xml
contains<modelVersion>4.0</modelVersion>
The older version (3.8.100) https://repo1.maven.org/maven2/org/eclipse/platform/org.eclipse.core.expressions/3.8.100/org.eclipse.core.expressions-3.8.100.pom contains correctly:
<modelVersion>4.0.0</modelVersion>
Wanted
A gradle build shall have not those warnings when there is a gradle/maven dependency to
org.eclipse.core.expressions
Suggested solution
4.0.0
insidepom.xml
at maven central to correct version inpom.xml
fororg.eclipse.core.expressions-3.8.200
- if possibleThe text was updated successfully, but these errors were encountered: