Uploaded image for project: 'Build'
  1. Build
  2. BUILD-119

mvn eclipse:eclipse not working in magnolia_main.pub

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Outdated
    • Icon: Neutral Neutral
    • None
    • None
    • Poms
    • None
    • Windows, Maven 3.0.4
    • Yes

      Used code from main branch, so should affect Magnolia 4.5.7.

      Problem

      When I try to create an Eclipse project with Maven (mvn eclipse:eclipse) from the Magnolia source code (magnolia_main.pub), I always get the following error from Maven:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8
      :eclipse (default-cli) on project magnolia-core: Request to merge when 'filterin
      g' is not identical. Original=resource src/main/resources: output=target/classes
      , include=[**/*], exclude=[**/*.java], test=false, filtering=false, merging with
      =resource src/main/resources: output=target/classes, include=[META-INF/magnolia/
      *|**/license.xml], exclude=[**/*.java], test=false, filtering=true -> [Help 1]
      

      Suggested Solution

      Apparently it helps to explicitly specify the plugin-version when running the maven-eclipse plugin:

      $ mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse
      

      However, the plugin version can also be specified in the (parent-) pom.xml like this:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <version>2.6</version>
      </plugin>
      

      If specified like this, you can simply run the usual mvn eclipse:eclipse without getting that strange error. Might save people some time.

        Acceptance criteria

              gjoseph Magnolia International
              awiedemann Achim Wiedemann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 0.25h
                  0.25h
                  Remaining:
                  Remaining Estimate - 0.25h
                  0.25h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified