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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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.

        Attachments

        1. HADOOP-7514.patch
          0.8 kB
          Joep Rottinghuis

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: