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

Add annotation to package-info.java file to workaround MCOMPILER-205

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.6-alpha
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      Maven fails incremental builds when there are source files that do not generate class files. One example of this is package-info.java. This (old) issue is tracked at MCOMPILER-205, where the recommended workaround is adding an annotation to the class.

      After this, with some other related fixes, I was able to do a proper incremental maven build.

        Activity

        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #238 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/238/)
        HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

        • hadoop-common-project/hadoop-common/CHANGES.txt
        • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #238 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/238/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Hdfs-trunk #2177 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2177/)
        HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

        • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
        • hadoop-common-project/hadoop-common/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #2177 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2177/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java hadoop-common-project/hadoop-common/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Mapreduce-trunk #2196 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2196/)
        HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

        • hadoop-common-project/hadoop-common/CHANGES.txt
        • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2196 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2196/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #248 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/248/)
        HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

        • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
        • hadoop-common-project/hadoop-common/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #248 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/248/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java hadoop-common-project/hadoop-common/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Yarn-trunk #980 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/980/)
        HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

        • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
        • hadoop-common-project/hadoop-common/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #980 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/980/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java hadoop-common-project/hadoop-common/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #250 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/250/)
        HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

        • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
        • hadoop-common-project/hadoop-common/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #250 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/250/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java hadoop-common-project/hadoop-common/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-trunk-Commit #8127 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8127/)
        HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

        • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
        • hadoop-common-project/hadoop-common/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8127 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8127/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java hadoop-common-project/hadoop-common/CHANGES.txt
        Hide
        andrew.wang Andrew Wang added a comment -

        Pushed, thanks Colin for reviewing!

        Show
        andrew.wang Andrew Wang added a comment - Pushed, thanks Colin for reviewing!
        Hide
        hadoopqa Hadoop QA added a comment -



        -1 overall



        Vote Subsystem Runtime Comment
        0 pre-patch 21m 45s Pre-patch trunk compilation is healthy.
        +1 @author 0m 0s The patch does not contain any @author tags.
        -1 tests included 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
        +1 javac 10m 5s There were no new javac warning messages.
        +1 javadoc 10m 53s There were no new javadoc warning messages.
        +1 release audit 0m 23s The applied patch does not increase the total number of release audit warnings.
        +1 checkstyle 1m 24s There were no new checkstyle issues.
        +1 whitespace 0m 0s The patch has no lines that end in whitespace.
        +1 install 1m 40s mvn install still works.
        +1 eclipse:eclipse 0m 31s The patch built with eclipse:eclipse.
        +1 findbugs 1m 57s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
        +1 common tests 22m 37s Tests passed in hadoop-common.
            71m 18s  



        Subsystem Report/Notes
        Patch URL http://issues.apache.org/jira/secure/attachment/12743854/hadoop-12195.001.patch
        Optional Tests javadoc javac unit findbugs checkstyle
        git revision trunk / 81f3644
        hadoop-common test log https://builds.apache.org/job/PreCommit-HADOOP-Build/7173/artifact/patchprocess/testrun_hadoop-common.txt
        Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/7173/testReport/
        Java 1.7.0_55
        uname Linux asf904.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
        Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/7173/console

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 pre-patch 21m 45s Pre-patch trunk compilation is healthy. +1 @author 0m 0s The patch does not contain any @author tags. -1 tests included 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javac 10m 5s There were no new javac warning messages. +1 javadoc 10m 53s There were no new javadoc warning messages. +1 release audit 0m 23s The applied patch does not increase the total number of release audit warnings. +1 checkstyle 1m 24s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 1m 40s mvn install still works. +1 eclipse:eclipse 0m 31s The patch built with eclipse:eclipse. +1 findbugs 1m 57s The patch does not introduce any new Findbugs (version 3.0.0) warnings. +1 common tests 22m 37s Tests passed in hadoop-common.     71m 18s   Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12743854/hadoop-12195.001.patch Optional Tests javadoc javac unit findbugs checkstyle git revision trunk / 81f3644 hadoop-common test log https://builds.apache.org/job/PreCommit-HADOOP-Build/7173/artifact/patchprocess/testrun_hadoop-common.txt Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/7173/testReport/ Java 1.7.0_55 uname Linux asf904.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/7173/console This message was automatically generated.
        Hide
        cmccabe Colin P. McCabe added a comment -

        +1 pending jenkins

        Show
        cmccabe Colin P. McCabe added a comment - +1 pending jenkins
        Hide
        andrew.wang Andrew Wang added a comment -

        Patch attached, trivial.

        Show
        andrew.wang Andrew Wang added a comment - Patch attached, trivial.

          People

          • Assignee:
            andrew.wang Andrew Wang
            Reporter:
            andrew.wang Andrew Wang
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development