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

BUILDING.txt instructions for skipping tests incomplete/obsolete, build can fail.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.5.0, 2.6.0
    • None
    • None
    • None
    • maven 3.2.3 +

    Description

      Instructions currently online, and within the hadoop source tree, appear to be incomplete/obsolete for building the source. I checked 2.5.0 and 2.6.0 .

      with "mvn install -DskipTests" my build fails on multiple hadoop src/test sub-directories with:
      Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (default-testCompile)...
      This compile failure may be related to my jdk/jre, but why is my build ("mvn install -DskipTests") compiling these tests?

      The pom.xml files are using the maven-compiler-plugin to compile some of the tests instead of surefire. The maven-compiler-plugin is unaffected by -DskipTests and per maven documentation requires -Dmaven.test.skip instead, which the surefire plugin also obeys.

      Building with
      mvn install -Dmaven.test.skip
      completes in my environment.

      I suggest a "major" rating because of the impact on users of the source tarballs. IMO the build instructions in the tarball and online (e.g. https://wiki.apache.org/hadoop/EclipseEnvironment ) should work reliably.
      Thanks!

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            peterdkirchner Peter D Kirchner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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

                Slack

                  Issue deployment