Maven Eclipse Plugin
  1. Maven Eclipse Plugin
  2. MECLIPSE-720

Strange issue related to running plugin with -Peclipse profile on ver 2.9 vs 2.8 of plugin

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.9
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 10.04 LTS
    • Number of attachments :
      4

      Description

      Some time ago we experienced a strange issue after creating eclipse project files from the eclipse plugin (I do not have dates for this exactly). After importing projects and running with our inhouse (contextPath=/pays webInfDir=src/main/webapp port=8080) JettyStart.java from within eclipse our web app would fail with the included stack trace (Basically fails with this: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.add(Lorg/hibernate/util/xml/XmlDocument;)V.

      However running the same plugin under eclipse profile in maven, somehow creates different eclipse project files, that resolves the problem and the webapp starts and runs ok.

      After upgrading to ver 2.9 of the plugin, usage of the -Peclipse profile, has no effect and consequently the webapp fails to run. If we revert back to the 2.8 ver of the plugin, rerun with -Peclipse -> import -> rerun -> ok. So basically all usage of the 2.9 plugin "fails" for us and forces usage of the 2.8 version with an eclipse profile.

      What is the consequence of running this plugin under eclipse profile? How does ver 2.8 differ from ver 2.9 when running under eclipse profile?

      Do you need anymore input data do not hesitate to contact me.

      1. eclipse_ver_2.8_build.log
        84 kB
        Mats Aune
      2. eclipse_ver_2.9_build.log
        83 kB
        Mats Aune
      3. errorStack.log
        16 kB
        Mats Aune
      4. JettyStart.java
        2 kB
        Mats Aune

        Activity

        Hide
        Mats Aune added a comment -

        Forgot to specify that the eclipse profile is defined by us (sorry my mistake ;-( ) as follows:
        <profile>
        <id>eclipse</id>
        <build>
        <plugins>
        <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <version>2.8</version>
        <configuration>
        <downloadSources>true</downloadSources>
        <downloadJavadocs>true</downloadJavadocs>
        <wtpversion>1.5</wtpversion>
        <ajdtVersion>none</ajdtVersion>
        <!-- see: http://jira.codehaus.org/browse/MECLIPSE-558 and http://jira.codehaus.org/browse/MECLIPSE-594 -->
        <additionalProjectnatures>
        <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
        </additionalProjectnatures>
        </configuration>
        </plugin>
        </plugins>
        </build>
        </profile>

        Show
        Mats Aune added a comment - Forgot to specify that the eclipse profile is defined by us (sorry my mistake ;-( ) as follows: <profile> <id>eclipse</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.8</version> <configuration> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> <wtpversion>1.5</wtpversion> <ajdtVersion>none</ajdtVersion> <!-- see: http://jira.codehaus.org/browse/MECLIPSE-558 and http://jira.codehaus.org/browse/MECLIPSE-594 --> <additionalProjectnatures> <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> </additionalProjectnatures> </configuration> </plugin> </plugins> </build> </profile>
        Hide
        Mats Aune added a comment -

        Can this somehow be related to changed dependency reselution?

        Show
        Mats Aune added a comment - Can this somehow be related to changed dependency reselution?

          People

          • Assignee:
            Unassigned
            Reporter:
            Mats Aune
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: