[Bug 847160] Review Request: eclipse-m2e-core - Maven integration for Eclipse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=847160

--- Comment #5 from Roland Grunberg <rgrunber@xxxxxxxxxx> ---
I've tried using eclipse-m2e-core on an f18 machine, but faced some issues :

- slf4j.api needs "org.slf4j.impl;version=1.6.0", which wasn't being found, so
I symlinked it into the dropins folder.
- m2e needed org.apache.maven.archetype.{catalog,descriptor} so I symlinked
these as well.

These fixes would get the plugins to resolve correctly during startup, and I
would be able to see the menu from importing maven projects. However when
attempting to import a project, I would see this :

Caused by: java.lang.NoSuchMethodError:
org.codehaus.plexus.DefaultPlexusContainer.<init>(Lorg/codehaus/plexus/ContainerConfiguration;)V
    at
org.eclipse.m2e.core.internal.MavenPluginActivator.start(MavenPluginActivator.java:178)
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
    ... 109 more

It seems there's 2 jars that provide DefaultPlexusContainer (guice-plexus-shim
and plexus-container-default). By removing plexus-container-default, from the
runtime plugin's jars, I could get father and import the projects into the
workspace, but then fail on this :

java.lang.ClassCastException:
org.apache.maven.project.artifact.DefaultMavenMetadataCache cannot be cast to
org.eclipse.m2e.core.internal.project.IManagedCache
    at
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.flushCaches(ProjectRegistryManager.java:253)
    at
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:359)
    at
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:327)
    at
org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:278)
    at
org.eclipse.m2e.core.internal.project.registry.MavenProjectManager.refresh(MavenProjectManager.java:58)
    at
org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:87)
    ...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]