Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353173 - Checkout as Maven Project fails at importing project
Summary: Checkout as Maven Project fails at importing project
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 03:06 EDT by Frank Jakop CLA
Modified: 2021-04-19 13:24 EDT (History)
2 users (show)

See Also:


Attachments
screenshot of error message (19.26 KB, image/png)
2011-07-27 03:06 EDT, Frank Jakop CLA
no flags Details
eclipse configuration details (1.16 MB, text/plain)
2011-07-27 03:30 EDT, Frank Jakop CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Jakop CLA 2011-07-27 03:06:12 EDT
Build Identifier: 20110301-1815

When I use m2e-cvs to checkout a project as Maven project, ist fails while importing the checked out project with error message 

An internal error occurred during: "Importing Maven projects".
org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version;)I



Reproducible: Always

Steps to Reproduce:
1. Go to CVS Repository Browser
2. Select project
3. right click "Check out as Maven Project"
Comment 1 Frank Jakop CLA 2011-07-27 03:06:50 EDT
Created attachment 200419 [details]
screenshot of error message
Comment 2 Igor Fedorenko CLA 2011-07-27 03:25:45 EDT
please attach your eclipse installation configuration details (about-eclipse->installation-detatils->configuration)
Comment 3 Frank Jakop CLA 2011-07-27 03:30:00 EDT
Created attachment 200423 [details]
eclipse configuration details
Comment 4 Jan-Willem CLA 2011-08-03 05:47:40 EDT
Same here. It happens when importing maven projects using 'Existing Maven Projects' and the option 'Hide folders of physically nested modules' is enabled.

Version: 1.0.100.201108010903

Stacktrace:

ava.lang.NoSuchMethodError: org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version;)I
	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.hideNestedProjectsFromParents(ProjectConfigurationManager.java:179)
	at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:150)
	at org.eclipse.m2e.core.ui.internal.wizards.MavenImportWizard$1.doCreateMavenProjects(MavenImportWizard.java:164)
	at org.eclipse.m2e.core.ui.internal.wizards.AbstractCreateMavenProjectsOperation.run(AbstractCreateMavenProjectsOperation.java:73)
	at org.eclipse.m2e.core.ui.internal.wizards.MavenImportWizard$3.runInWorkspace(MavenImportWizard.java:249)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 5 Igor Fedorenko CLA 2011-08-03 07:55:11 EDT
Fixed. http://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=e322d67bdd77b611c67c7c153f02db1c9909a0a2

As a side note, offending code was there for very long time, so the problem is most likely caused by incompatibility between code compiled against version of osgi framework included in eclipse 3.7 and earlier eclipse version.
Comment 6 Denis Roy CLA 2021-04-19 13:24:29 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/