Did you run with -Pcontrib-check when building locally? The issue from the Travis logs is:
[WARNING] Files with unapproved licenses: /home/travis/build/apache/nifi/nifi-framework-api/src/main/java/org/apache/nifi/diagnostics/DiagnosticsDump.java.orig Looking at the PR, there are lot of files that are somehow renamed to .orig On Tue, Sep 24, 2019 at 1:36 PM Sunny Zhang <[email protected]> wrote: > > Hi my PR NIFI-6597 failed on the auto build test with problems of > apache-rat-plugin. But When I build it on my local machine there's no error. > https://travis-ci.org/apache/nifi/builds/588696226?utm_source=github_status&utm_medium=notification > > Not sure what happened.. Could anyone help me on this? > > Thanks!!! > Sunny > > [INFO] > ------------------------------------------------------------------------ > 5327[INFO] BUILD FAILURE > 5328[INFO] > ------------------------------------------------------------------------ > 5329[INFO] Total time: 01:34 min (Wall Clock) > 5330[INFO] Finished at: 2019-09-23T23:18:42Z > 5331[INFO] > ------------------------------------------------------------------------ > 5332[ERROR] Failed to execute goal > org.apache.rat:apache-rat-plugin:0.12:check (default) on project > nifi-framework-api: Too many files with unapproved license: 1 See RAT report > in: /home/travis/build/apache/nifi/nifi-framework-api/target/rat.txt -> [Help > 1] > 5333[ERROR] > 5334[ERROR] To see the full stack trace of the errors, re-run Maven with the > -e switch. > 5335[ERROR] Re-run Maven using the -X switch to enable full debug logging. > 5336[ERROR] > 5337[ERROR] For more information about the errors and possible solutions, > please read the following articles: > 5338[ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > 5339[ERROR] > 5340[ERROR] After correcting the problems, you can resume the build with the > command > 5341[ERROR] mvn <goals> -rf :nifi-framework-api > 5342The command "mvn clean install -V -T 1C -pl `find . -type d \( -name > "*-nar" -or -name "*-assembly" \) -and -not -name "*api-nar" -and -not -path > "*/target/*" -and -not -name "*__*" -printf "!./%P,"` > -Pcontrib-check,include-grpc -Ddir-only > -Dmaven.surefire.arguments="-Duser.language=en -Duser.region=US" | grep -v -F > -f .travis-output-filters && test ${PIPESTATUS[0]} -eq 0" exited with 1. > before_cache > 53430.05s$ rm -rf $HOME/.m2/repository/org/apache/nifi/ > cache.2 > 5344store build cache > 53450.01s89.55schanges detected (content changed, file is created, or file is > deleted):\n/home/travis/.m2/repository/io/netty/netty-all/4.1.29.Final/netty-all-4.1.29.Final.jar > 5346/home/travis/.m2/repository/io/netty/netty-all/4.1.29.Final/netty-all-4.1.29.Final.jar.sha1 > 5347/home/travis/.m2/repository/io/netty/netty-all/4.1.29.Final/netty-all-4.1.29.Final.pom > 5348/home/travis/.m2/repository/io/netty/netty-all/4.1.29.Final/netty-all-4.1.29.Final.pom.sha1 > 5349/home/travis/.m2/repository/io/netty/netty-all/4.1.29.Final/_remote.repositories > 5350/home/travis/.m2/repository/io/netty/netty-parent/4.1.29.Final/netty-parent-4.1.29.Final.pom > 5351/home/travis/.m2/repository/io/netty/netty-parent/4.1.29.Final/netty-parent-4.1.29.Final.pom.sha1 > 5352/home/travis/.m2/repository/io/netty/netty-parent/4.1.29.Final/_remote.repositories > 5353/home/travis/.m2/repository/org/apache/curator/curator-test/4.2.0/curator-test-4.2.0.jar > 5354/home/travis/.m2/repository/org/apache/curator/curator-test/4.2.0/curator-test-4.2.0.jar.sha1 > 5355/home/travis/.m2/repository/org/apache/curator/curator-test/4.2.0/curator-test-4.2.0.pom > 5356/home/travis/.\n... > 5357changes detected, packing new archive > 5358uploading > PR.3676/cache-linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--jdk-openjdk8.tgz > 5359cache uploaded > 5360 > 5361 > 5362Done. Your build exited with 1. > > > But when I build it I don't have any error: > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 14:32 min (Wall Clock) > [INFO] Finished at: 2019-09-24T10:08:29-07:00 > [INFO] > ------------------------------------------------------------------------ > Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; > support was removed in 8.0 > > >
