Hadoop Common
  1. Hadoop Common
  2. HADOOP-7514

Build fails with ClassCastException when running both mvn-install and mvn-deploy targets

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: build
    • Labels:
      None
    • Environment:

      RHEL 6.1 & Ubuntu 11.04; Sun JDK 1.6_016 & Sun JDK 1.6.0_26; Ant 1.8.2; Maven 3.0.2

    • Hadoop Flags:
      Reviewed

      Description

      Although this may not be a common use-case, the exception thrown is really confusing and does not clarify what the problem is.

      The resulting error is: java.lang.ClassCastException: org.codehaus.plexus.DefaultPlexusContainer cannot be cast to org.codehaus.plexus.PlexusContainer

      The error occurs because mvn-init target gets called twice.

      1. HADOOP-7514.patch
        0.8 kB
        Joep Rottinghuis

        Activity

        Joep Rottinghuis created issue -
        Joep Rottinghuis made changes -
        Field Original Value New Value
        Attachment HADOOP-7514.patch [ 12489379 ]
        Joep Rottinghuis made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Konstantin Boudnik made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 0.22.0 [ 12314296 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Joep Rottinghuis
            Reporter:
            Joep Rottinghuis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development