Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8017

Configure hadoop-main pom to get rid of M2E plugin execution not covered

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.24.0
    • Fix Version/s: 3.0.0-alpha1
    • Component/s: build
    • Labels:
      None

      Description

      Last M2Eclipse plugin (maven plugin for eclipse) shows nasty errors when importing the hadoop maven modules (read more on http://wiki.eclipse.org/M2E_plugin_execution_not_covered).

      The solution is to configure the build section of the pom with a org.eclipse.m2e:lifecycle-mapping plugin.

      This configuration has no influence on the Maven build itself.

        Activity

        Hide
        eric@apache.org Eric Charles added a comment -

        The attached HADOOP-8017.patch can be used to configure the org.eclipse.m2e:lifecycle-plugin in the hadoop-main pom (no influence on the build it self, only on import with m2eclipse in eclipse IDE).

        Show
        eric@apache.org Eric Charles added a comment - The attached HADOOP-8017 .patch can be used to configure the org.eclipse.m2e:lifecycle-plugin in the hadoop-main pom (no influence on the build it self, only on import with m2eclipse in eclipse IDE).
        Hide
        revans2 Robert Joseph Evans added a comment -

        Is the patch intended for the main root pom? Because all I see in the patch is the index: pom.xml?

        Show
        revans2 Robert Joseph Evans added a comment - Is the patch intended for the main root pom? Because all I see in the patch is the index: pom.xml?
        Hide
        eric@apache.org Eric Charles added a comment -

        Hi Robert,

        Yes, the patch if for the main pom 'org.apache.hadoop:hadoop-main' (https://svn.apache.org/repos/asf/hadoop/common/trunk/pom.xml)

        (I generated it with 'svn diff pom.xml > HADOOP-8017.patch' from my top hadoop source folder.., not obvious to retrieve it from the patch file...).

        Thx, Eric

        Show
        eric@apache.org Eric Charles added a comment - Hi Robert, Yes, the patch if for the main pom 'org.apache.hadoop:hadoop-main' ( https://svn.apache.org/repos/asf/hadoop/common/trunk/pom.xml ) (I generated it with 'svn diff pom.xml > HADOOP-8017 .patch' from my top hadoop source folder.., not obvious to retrieve it from the patch file...). Thx, Eric
        Hide
        revans2 Robert Joseph Evans added a comment -

        Thanks Eric, I just committed this to trunk.

        Show
        revans2 Robert Joseph Evans added a comment - Thanks Eric, I just committed this to trunk.
        Hide
        hudson Hudson added a comment -

        Integrated in Hadoop-Common-trunk-Commit #1671 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1671/)
        HADOOP-8017. Configure hadoop-main pom to get rid of M2E plugin execution not covered (Eric Charles via bobby)

        bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241190
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/pom.xml
        Show
        hudson Hudson added a comment - Integrated in Hadoop-Common-trunk-Commit #1671 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1671/ ) HADOOP-8017 . Configure hadoop-main pom to get rid of M2E plugin execution not covered (Eric Charles via bobby) bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241190 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/pom.xml
        Hide
        hudson Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk-Commit #1743 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1743/)
        HADOOP-8017. Configure hadoop-main pom to get rid of M2E plugin execution not covered (Eric Charles via bobby)

        bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241190
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/pom.xml
        Show
        hudson Hudson added a comment - Integrated in Hadoop-Hdfs-trunk-Commit #1743 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1743/ ) HADOOP-8017 . Configure hadoop-main pom to get rid of M2E plugin execution not covered (Eric Charles via bobby) bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241190 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/pom.xml
        Hide
        hudson Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk-Commit #1686 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1686/)
        HADOOP-8017. Configure hadoop-main pom to get rid of M2E plugin execution not covered (Eric Charles via bobby)

        bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241190
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/pom.xml
        Show
        hudson Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk-Commit #1686 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1686/ ) HADOOP-8017 . Configure hadoop-main pom to get rid of M2E plugin execution not covered (Eric Charles via bobby) bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241190 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/pom.xml
        Hide
        hudson Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk #949 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/949/)
        HADOOP-8017. Configure hadoop-main pom to get rid of M2E plugin execution not covered (Eric Charles via bobby)

        bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241190
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/pom.xml
        Show
        hudson Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #949 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/949/ ) HADOOP-8017 . Configure hadoop-main pom to get rid of M2E plugin execution not covered (Eric Charles via bobby) bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241190 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/pom.xml
        Hide
        hudson Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk #982 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/982/)
        HADOOP-8017. Configure hadoop-main pom to get rid of M2E plugin execution not covered (Eric Charles via bobby)

        bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241190
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/pom.xml
        Show
        hudson Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #982 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/982/ ) HADOOP-8017 . Configure hadoop-main pom to get rid of M2E plugin execution not covered (Eric Charles via bobby) bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1241190 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/pom.xml
        Hide
        eric@apache.org Eric Charles added a comment -

        Strange, hudson is not happy with this, see exception in https://builds.apache.org/job/Hadoop-Common-trunk/315/console
        [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
        org.apache.maven.plugin.PluginResolutionException: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
        at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:129)
        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:142)
        at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:59)

        I don't have that warning, and finally hudson build is fine.
        Just wanted to point this, in case of.

        Show
        eric@apache.org Eric Charles added a comment - Strange, hudson is not happy with this, see exception in https://builds.apache.org/job/Hadoop-Common-trunk/315/console [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 org.apache.maven.plugin.PluginResolutionException: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:129) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:142) at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:59) I don't have that warning, and finally hudson build is fine. Just wanted to point this, in case of.

          People

          • Assignee:
            eric@apache.org Eric Charles
            Reporter:
            eric@apache.org Eric Charles
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development