Skip to content
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 fo #580

Closed
de-jcup opened this issue Sep 19, 2022 · 3 comments
Closed

Comments

@de-jcup
Copy link

de-jcup commented Sep 19, 2022

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:

Errors occurred while build effective model from /home/runner/.gradle/caches/modules-2/files-2.1/org.eclipse.platform/org.eclipse.core.expressions/3.8.200/eb159f34083b0135459745f934a6ad5eb61b61c/org.eclipse.core.expressions-3.8.200.pom:
	'modelVersion' must be one of [4.0.0] but is '4.0'. in org.eclipse.platform:org.eclipse.core.expressions:3.8.200

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

  • Change the pom model settings (sorry I did not find the part inside the sources) so next releases have 4.0.0 inside
  • Maybe change the existing deployed pom.xml at maven central to correct version in pom.xml for org.eclipse.core.expressions-3.8.200 - if possible
@de-jcup de-jcup changed the title Gradle cannot build effective model because of failure in pom.xml for org.eclipse.platform:org.eclipse.core.expressions:3.8.200 Gradle cannot build effective model because of failure in pom.xml fo Sep 19, 2022
@mickaelistria mickaelistria transferred this issue from eclipse-platform/eclipse.platform Sep 19, 2022
@vogella
Copy link
Contributor

vogella commented Sep 20, 2022

cc @merks

@vogella
Copy link
Contributor

vogella commented Sep 20, 2022

@merks
Copy link
Contributor

merks commented Sep 20, 2022

Yes, it's a dup.

@merks merks closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants