See <https://builds.apache.org/job/Creadur-Rat/412/display/redirect?page=changes>
Changes: [pottlinger] RAT-228: Enable build failure if tests fail ANT tests were disabled to break the build, thus we did not spot the problems for quite a while. ------------------------------------------ [...truncated 88.06 KB...] [au:antunit] <property name="output.dir" location="../../../../target/testoutput"/> [au:antunit] <mkdir dir="<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/testoutput/dest"/>> [au:antunit] <path id="all-classes-needed-for-tests"> [au:antunit] <pathelement location="<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/classes"> /> [au:antunit] <pathelement path="<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/test-classes>:<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/classes>:<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-core/target/apache-rat-core-0.13-SNAPSHOT.jar>:<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-api/target/apache-rat-api-0.13-SNAPSHOT.jar>:/home/jenkins/jenkins-slave/maven-repositories/0/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/jenkins/jenkins-slave/maven-repositories/0/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/jenkins/jenkins-slave/maven-repositories/0/commons-io/commons-io/2.2/commons-io-2.2.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/commons/commons-compress/1.11/commons-compress-1.11.jar:/home/jenkins/jenkins-slave/maven-repositories/0/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/ant/ant/1.9.12/ant-1.9.12.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/ant/ant-launcher/1.9.12/ant-launcher-1.9.12.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.jar:/home/jenkins/jenkins-slave/maven-repositories/0/junit/junit/4.12/junit-4.12.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/ant/ant-testutil/1.9.12/ant-testutil-1.9.12.jar" /> [au:antunit] <pathelement location="<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/testoutput/dest"> /> [au:antunit] </path> [au:antunit] [au:antunit] <taskdef uri="antlib:org.apache.ant.antunit" [au:antunit] resource="org/apache/ant/antunit/antlib.xml" [au:antunit] classpathref="all-classes-needed-for-tests" [au:antunit] loaderref="testloader"/> [au:antunit] [au:antunit] <taskdef uri="antlib:org.apache.rat.anttasks" [au:antunit] resource="org/apache/rat/anttasks/antlib.xml" [au:antunit] classpathref="all-classes-needed-for-tests" [au:antunit] loaderref="testloader"/> [au:antunit] [au:antunit] <target name="setUp"> [au:antunit] <pathconvert dirsep="/" property="file.name"> [au:antunit] <path> [au:antunit] <pathelement location="<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml"/>> [au:antunit] </path> [au:antunit] ' [au:antunit] took 0.084 sec [au:antunit] Target: testSubstringMatcherSentToFileNoMatch took 0.086 sec [au:antunit] Target: testSubstringMatcherNotApprovedSentToFile caused an ERROR [au:antunit] at line 155, column 55 [au:antunit] Message: The following error occurred while executing this line: [au:antunit] <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml>:282: expected report to contain '!YASL1 <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml'> but was ' [au:antunit] ***************************************************** [au:antunit] Summary [au:antunit] ------- [au:antunit] Generated at: 2018-07-29T09:07:05+00:00 [au:antunit] [au:antunit] Notes: 0 [au:antunit] Binaries: 0 [au:antunit] Archives: 0 [au:antunit] Standards: 1 [au:antunit] [au:antunit] Apache Licensed: 0 [au:antunit] Generated Documents: 0 [au:antunit] [au:antunit] JavaDocs are generated, thus a license header is optional. [au:antunit] Generated files do not require license headers. [au:antunit] [au:antunit] 1 Unknown Licenses [au:antunit] [au:antunit] ***************************************************** [au:antunit] [au:antunit] Files with unapproved licenses: [au:antunit] [au:antunit] <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml> [au:antunit] [au:antunit] ***************************************************** [au:antunit] [au:antunit] ***************************************************** [au:antunit] Files with Apache License headers will be marked AL [au:antunit] Binary files (which do not require any license headers) will be marked B [au:antunit] Compressed archives will be marked A [au:antunit] Notices, licenses etc. will be marked N [au:antunit] !????? <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml> [au:antunit] [au:antunit] ***************************************************** [au:antunit] [au:antunit] Printing headers for text files without a valid license header... [au:antunit] [au:antunit] ===================================================== [au:antunit] == File: <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml> [au:antunit] ===================================================== [au:antunit] <?xml version='1.0'?> [au:antunit] <!-- [au:antunit] [au:antunit] Licensed to the Apache Software Foundation (ASF) under one * [au:antunit] or more contributor license agreements. See the NOTICE file * [au:antunit] distributed with this work for additional information * [au:antunit] regarding copyright ownership. The ASF licenses this file * [au:antunit] to you under the Apache License, Version 2.0 (the * [au:antunit] "License"); you may not use this file except in compliance * [au:antunit] with the License. You may obtain a copy of the License at * [au:antunit] * [au:antunit] http://www.apache.org/licenses/LICENSE-2.0 * [au:antunit] * [au:antunit] Unless required by applicable law or agreed to in writing, * [au:antunit] software distributed under the License is distributed on an * [au:antunit] "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * [au:antunit] KIND, either express or implied. See the License for the * [au:antunit] specific language governing permissions and limitations * [au:antunit] under the License. * [au:antunit] [au:antunit] --> [au:antunit] [au:antunit] <project name='report-normal-operation' [au:antunit] default="allTests" [au:antunit] xmlns:au="antlib:org.apache.ant.antunit" [au:antunit] xmlns:rat="antlib:org.apache.rat.anttasks"> [au:antunit] [au:antunit] <property name="output.dir" location="../../../../target/testoutput"/> [au:antunit] <mkdir dir="<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/testoutput/dest"/>> [au:antunit] <path id="all-classes-needed-for-tests"> [au:antunit] <pathelement location="<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/classes"> /> [au:antunit] <pathelement path="<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/test-classes>:<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/classes>:<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-core/target/apache-rat-core-0.13-SNAPSHOT.jar>:<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-api/target/apache-rat-api-0.13-SNAPSHOT.jar>:/home/jenkins/jenkins-slave/maven-repositories/0/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/jenkins/jenkins-slave/maven-repositories/0/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/jenkins/jenkins-slave/maven-repositories/0/commons-io/commons-io/2.2/commons-io-2.2.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/commons/commons-compress/1.11/commons-compress-1.11.jar:/home/jenkins/jenkins-slave/maven-repositories/0/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/ant/ant/1.9.12/ant-1.9.12.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/ant/ant-launcher/1.9.12/ant-launcher-1.9.12.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.jar:/home/jenkins/jenkins-slave/maven-repositories/0/junit/junit/4.12/junit-4.12.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/ant/ant-testutil/1.9.12/ant-testutil-1.9.12.jar" /> [au:antunit] <pathelement location="<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/testoutput/dest"> /> [au:antunit] </path> [au:antunit] [au:antunit] <taskdef uri="antlib:org.apache.ant.antunit" [au:antunit] resource="org/apache/ant/antunit/antlib.xml" [au:antunit] classpathref="all-classes-needed-for-tests" [au:antunit] loaderref="testloader"/> [au:antunit] [au:antunit] <taskdef uri="antlib:org.apache.rat.anttasks" [au:antunit] resource="org/apache/rat/anttasks/antlib.xml" [au:antunit] classpathref="all-classes-needed-for-tests" [au:antunit] loaderref="testloader"/> [au:antunit] [au:antunit] <target name="setUp"> [au:antunit] <pathconvert dirsep="/" property="file.name"> [au:antunit] <path> [au:antunit] <pathelement location="<https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml"/>> [au:antunit] </path> [au:antunit] ' [au:antunit] took 0.089 sec [au:antunit] Target: testWithALUnknownSentToFile took 0.092 sec [au:antunit] Target: testWithReportSentToFile took 0.075 sec [au:antunit] Target: testCustomMatcherSentToFile caused an ERROR [au:antunit] at line 333, column 43 [au:antunit] Message: Unable to find a javac compiler; [au:antunit] com.sun.tools.javac.Main is not on the classpath. [au:antunit] Perhaps JAVA_HOME does not point to the JDK. [au:antunit] It is currently set to "/usr/local/asfpackages/java/jdk1.8.0_172/jre" [au:antunit] took 0.023 sec [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping Apache Creadur Rat::Command Line [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Creadur Rat ................................. SUCCESS [ 14.634 s] [INFO] Apache Creadur Rat::API ............................ SUCCESS [01:07 min] [INFO] Apache Creadur Rat::Core ........................... SUCCESS [ 13.034 s] [INFO] Apache Creadur Rat::Plugin4Maven ................... SUCCESS [ 33.104 s] [INFO] Apache Creadur Rat::Tasks4Ant ...................... FAILURE [ 9.390 s] [INFO] Apache Creadur Rat::Command Line ................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:42 min [INFO] Finished at: 2018-07-29T09:07:15+00:00 [INFO] Final Memory: 96M/3924M [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project apache-rat-tasks: An Ant BuildException has occured: The following error occurred while executing this line: [ERROR] <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml>:59: Tests failed with 0 failures and 6 errors [ERROR] around Ant part ...<ant antfile="src/test/resources/antunit/report-normal-operation.xml" inheritRefs="false" inheritAll="false">... @ 11:112 in <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/antrun/build-main.xml> [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project apache-rat-tasks: An Ant BuildException has occured: The following error occurred while executing this line: <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml>:59: Tests failed with 0 failures and 6 errors around Ant part ...<ant antfile="src/test/resources/antunit/report-normal-operation.xml" inheritRefs="false" inheritAll="false">... @ 11:112 in <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/antrun/build-main.xml> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.jvnet.hudson.maven3.launcher.Maven33Launcher.main(Maven33Launcher.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.maven.Maven3Builder.call(Maven3Builder.java:139) at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException has occured: The following error occurred while executing this line: <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml>:59: Tests failed with 0 failures and 6 errors around Ant part ...<ant antfile="src/test/resources/antunit/report-normal-operation.xml" inheritRefs="false" inheritAll="false">... @ 11:112 in <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/antrun/build-main.xml> at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:342) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 31 more Caused by: <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/target/antrun/build-main.xml>:11: The following error occurred while executing this line: <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml>:59: Tests failed with 0 failures and 6 errors at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:575) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:443) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.Project.executeTarget(Project.java:1376) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:313) ... 33 more Caused by: <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml>:59: Tests failed with 0 failures and 6 errors at org.apache.ant.antunit.AntUnit.execute(AntUnit.java:226) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441) ... 44 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :apache-rat-tasks [JENKINS] Archiving <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-plugin/pom.xml> to org.apache.rat/apache-rat-plugin/0.13-SNAPSHOT/apache-rat-plugin-0.13-SNAPSHOT.pom [JENKINS] Archiving <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-plugin/target/apache-rat-plugin-0.13-SNAPSHOT.jar> to org.apache.rat/apache-rat-plugin/0.13-20180729.090647-104/apache-rat-plugin-0.13-20180729.090647-104.jar [JENKINS] Archiving <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-api/pom.xml> to org.apache.rat/apache-rat-api/0.13-SNAPSHOT/apache-rat-api-0.13-SNAPSHOT.pom [JENKINS] Archiving <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-api/target/apache-rat-api-0.13-SNAPSHOT.jar> to org.apache.rat/apache-rat-api/0.13-20180729.090556-112/apache-rat-api-0.13-20180729.090556-112.jar [JENKINS] Archiving <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat/pom.xml> to org.apache.rat/apache-rat/0.13-SNAPSHOT/apache-rat-0.13-SNAPSHOT.pom [JENKINS] Archiving <https://builds.apache.org/job/Creadur-Rat/ws/pom.xml> to org.apache.rat/apache-rat-project/0.13-SNAPSHOT/apache-rat-project-0.13-SNAPSHOT.pom [JENKINS] Archiving <https://builds.apache.org/job/Creadur-Rat/ws/target/apache-rat-project-0.13-SNAPSHOT-site.xml> to org.apache.rat/apache-rat-project/0.13-20180729.090442-174/apache-rat-project-0.13-20180729.090442-174-site.xml [JENKINS] Archiving <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-core/pom.xml> to org.apache.rat/apache-rat-core/0.13-SNAPSHOT/apache-rat-core-0.13-SNAPSHOT.pom [JENKINS] Archiving <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-core/target/apache-rat-core-0.13-SNAPSHOT.jar> to org.apache.rat/apache-rat-core/0.13-20180729.090612-112/apache-rat-core-0.13-20180729.090612-112.jar [JENKINS] Archiving <https://builds.apache.org/job/Creadur-Rat/ws/apache-rat-tasks/pom.xml> to org.apache.rat/apache-rat-tasks/0.13-SNAPSHOT/apache-rat-tasks-0.13-SNAPSHOT.pom channel stopped