Uploaded image for project: 'Spring IDE'
  1. Spring IDE
  2. IDE-1357

NoClassDefFoundError o.a.maven.project.MavenProject

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.6.2.RELEASE
    • Fix Version/s: 3.7.0.RELEASE
    • Component/s: maven.plugin
    • Labels:
      None

      Description

      Someone else summed up the stack trace here:

      See http://mail-archives.apache.org/mod_mbox/maven-users/201410.mbox/%3CCAPCjjnHsMu_+3JPt6W+bokE57AGLa=rd1W1DDam3CcM8yeoowA@mail.gmail.com%3E

      Now I looked at:

      https://github.com/spring-projects/spring-ide/blob/master/plugins/org.springframework.ide.eclipse.maven/META-INF/MANIFEST.MF

      and I see "org.apache.maven.project;resolution:=optional" ...

      I guess it is optional due to the dynamic / replacable Maven runtimes, however all Spring code that uses it should check it is currently in a resolved with the OSGi container, before using code path that rely on it to exist.

      I also do not see in the MANIFEST.MF

      Require-Bundle: org.eclipse.m2e.maven.runtime

      As if I look at eclipse-jee-luna-SR1-win32-x86_64/plugins/org.eclipse.m2e.maven.runtime_1.6.0.20141015-1550/META-INF/MANIFEST.MF I see it is provided here and this m2e plugin comes with all m2e installs to provided the mandatory embeded implementation.

        Attachments

          Activity

            People

            • Assignee:
              mlippert Martin Lippert
              Reporter:
              dlmiles Darryl L. Miles
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: