Skip to content

Remove the unused m2e nature and builder from all projects - #4605

Merged
HeikoKlare merged 2 commits into
eclipse-platform:masterfrom
HeikoKlare:remove-m2e-nature
Dec 3, 2026
Merged

HeikoKlare merged 2 commits into
eclipse-platform:masterfrom
HeikoKlare:remove-m2e-nature

Conversation

@HeikoKlare

Copy link
Copy Markdown
Contributor

The m2e Maven nature and builder are configured for most projects in this repository, although none of them is a Maven project: the build is pomless Tycho, no project has a pom.xml and no classpath uses the Maven container. As discussed in #4603 (comment), the nature was never required, and every unnecessary builder adds to the workspace build time. It came in with 6af7769 together with a resource filter of the VS Code Java language server, so apparently through an IDE import, while Bug 539276 had already removed it from one project before. The projects from eclipse.platform.text and those added since never had it.

This change removes the nature, the builder and the m2e preference files from all projects, so they are plain PDE projects as in the other platform repositories.

How to test (unverified): import the projects into an Eclipse workspace with m2e installed. They build as PDE projects without new problems, and m2e no longer treats them as Maven projects. If m2e markers from an earlier import remain, delete them in the Problems view.

Most projects in this repository carry the m2e Maven nature and builder,
although none of them is a Maven project: the build is pomless Tycho, no
project has a pom.xml and no classpath uses the Maven container. In a
workspace with m2e, every build therefore also runs the Maven builder on
these projects for no benefit, which only costs build time.

The nature and builder were never intended. They came in with 6af7769
together with a resource filter of the VS Code Java language server, so
apparently through an IDE import, after Bug 539276 had already removed
them from one project as unwanted. The projects from eclipse.platform.text
and those added since never had them.

The nature, the builder and the m2e preference files are removed, so all
projects are plain PDE projects, as in the other platform repositories.

eclipse-platform#4603 (comment)

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
@iloveeclipse

Copy link
Copy Markdown
Member

Thanks! I've stumbled over that many times but never got the time to cleanup this.

@vogella vogella left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for this work @HeikoKlare looks like they came in during repo merge work

From memory then I did my Builder trace implementation in eclipse-platform/eclipse.platform#2802, I think the settings in the projects folder were the worst for performance. I just checked locally in test and see them also and I think this PR does not remove them.

vogella@Angelus:~/git/eclipse.platform.ui$ more .project 
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>eclipse.platform.ui</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.m2e.core.maven2Builder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.m2e.core.maven2Nature</nature>
	</natures>
</projectDescription>

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

   867 files  ±0     867 suites  ±0   54m 44s ⏱️ - 9m 4s
 8 602 tests ±0   8 362 ✅ ±0  240 💤 ±0  0 ❌ ±0 
21 675 runs  ±0  21 002 ✅ ±0  673 💤 ±0  0 ❌ ±0 

Results for commit d83201a. ± Comparison against base commit dfce208.

♻️ This comment has been updated with latest results.

Removing the m2e nature changes the build qualifier of all touched
projects, so those still at their 4.42 release version need a service
version increment.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
@HeikoKlare
HeikoKlare marked this pull request as ready for review December 2, 2026 12:06
@HeikoKlare

Copy link
Copy Markdown
Contributor Author

I only see agreement and no objections so far, so I plan to merge this by the end of today.

@ruspl-afed ruspl-afed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@HeikoKlare
HeikoKlare merged commit 525c57a into eclipse-platform:master Dec 3, 2026
18 checks passed
@HeikoKlare
HeikoKlare deleted the remove-m2e-nature branch December 3, 2026 17:16
@HannesWell

Copy link
Copy Markdown
Member

The m2e Maven nature and builder are configured for most projects in this repository, although none of them is a Maven project: the build is pomless Tycho, no project has a pom.xml and no classpath uses the Maven container.

Without having checked the details and without saying that it applies here, but the m2e nature and builder can be relevant even for pure PDE projects that are build pomless by Tycho if e.g. the parent pom is configured in a way that Maven performs some parts of the build even in the workspace. For example to copy some resources or generate some files from a specific source or alike.
So just because the Maven dependency container isn't used there is no guarantee that the Maven build is useless.

@akurtakov

akurtakov commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

The m2e Maven nature and builder are configured for most projects in this repository, although none of them is a Maven project: the build is pomless Tycho, no project has a pom.xml and no classpath uses the Maven container.

Without having checked the details and without saying that it applies here, but the m2e nature and builder can be relevant even for pure PDE projects that are build pomless by Tycho if e.g. the parent pom is configured in a way that Maven performs some parts of the build even in the workspace. For example to copy some resources or generate some files from a specific source or alike. So just because the Maven dependency container isn't used there is no guarantee that the Maven build is useless.

While this is correct in theory, in practice nothing here benefits from M2E so it's just useless work for the IDE, unused configuration and warnings(some of us still get plain SDK for quick pristine check on smth) and etc. We shouldn't keep such based on theoretical "it might be needed".

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

Successfully merging this pull request may close these issues.

6 participants