Hi All,
Trying to compile NiFi. It keeps failing in the nifi-scripting-processors
project. Tried repeated clean builds. This is on a Ubuntu 14.04 box. Ideas?
Here's the full build output:
nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors$ mvn install
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with
nexus-staging-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building nifi-scripting-processors 1.1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @
nifi-scripting-processors ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @
nifi-scripting-processors ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
nifi-scripting-processors ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @
nifi-scripting-processors ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @
nifi-scripting-processors ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 27 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @
nifi-scripting-processors ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (groovy-tests) @
nifi-scripting-processors ---
[INFO] Changes detected - recompiling the module!
[INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files
[INFO] Found location
</home/user/.m2/repository/org/codehaus/groovy/groovy-eclipse-batch/2.4.3-01/groovy-eclipse-batch-2.4.3-01.jar>
for className <org.eclipse.jdt.internal.compiler.batch.Main>
[INFO] no javaAgentClass seems to be set
[INFO] Compiling in a forked process using
/home/user/.m2/repository/org/codehaus/groovy/groovy-eclipse-batch/2.4.3-01/groovy-eclipse-batch-2.4.3-01.jar
[INFO]
[INFO] --- maven-surefire-plugin:2.18:test (default-test) @
nifi-scripting-processors ---
[INFO] Surefire report directory:
/home/user/nifi/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/target/surefire-reports
[INFO] Using configured provider org.apache.maven.surefire.junit4.JUnit4Provider
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.nifi.processors.script.TestExecuteJavascript
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.142 sec - in
org.apache.nifi.processors.script.TestExecuteJavascript
Running org.apache.nifi.processors.script.TestInvokeJython
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.211 sec - in
org.apache.nifi.processors.script.TestInvokeJython
Running org.apache.nifi.processors.script.TestExecuteJython
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in
org.apache.nifi.processors.script.TestExecuteJython
Running org.apache.nifi.processors.script.TestExecuteGroovy
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.279 sec - in
org.apache.nifi.processors.script.TestExecuteGroovy
Running org.apache.nifi.processors.script.TestExecuteLua
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec - in
org.apache.nifi.processors.script.TestExecuteLua
Running org.apache.nifi.processors.script.TestInvokeGroovy
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.595 sec - in
org.apache.nifi.processors.script.TestInvokeGroovy
Running org.apache.nifi.processors.script.TestInvokeJavascript
Tests run: 5, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.505 sec <<<
FAILURE! - in org.apache.nifi.processors.script.TestInvokeJavascript
testReadFlowFileContentAndStoreInFlowFileAttribute(org.apache.nifi.processors.script.TestInvokeJavascript)
Time elapsed: 0.206 sec <<< FAILURE!
java.lang.AssertionError: Processor has 1 validation failures:
'Validation' validated against
'target/test/resources/javascript/test_reader.js' is invalid because An error
occurred calling validate in the configured script Processor.
at org.junit.Assert.fail(Assert.java:88)
at
org.apache.nifi.util.MockProcessContext.assertValid(MockProcessContext.java:251)
at
org.apache.nifi.util.StandardProcessorTestRunner.assertValid(StandardProcessorTestRunner.java:334)
at
org.apache.nifi.processors.script.TestInvokeJavascript.testReadFlowFileContentAndStoreInFlowFileAttribute(TestInvokeJavascript.java:59)
testScriptDefinedRelationship(org.apache.nifi.processors.script.TestInvokeJavascript)
Time elapsed: 0.102 sec <<< FAILURE!
java.lang.AssertionError: null
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertTrue(Assert.java:52)
at
org.apache.nifi.processors.script.TestInvokeJavascript.testScriptDefinedRelationship(TestInvokeJavascript.java:128)
testScriptRoutesToFailure(org.apache.nifi.processors.script.TestInvokeJavascript)
Time elapsed: 0.054 sec <<< FAILURE!
java.lang.AssertionError: Processor has 1 validation failures:
'Validation' is invalid because An error occurred calling validate in the
configured script Processor.
at org.junit.Assert.fail(Assert.java:88)
at
org.apache.nifi.util.MockProcessContext.assertValid(MockProcessContext.java:251)
at
org.apache.nifi.util.StandardProcessorTestRunner.assertValid(StandardProcessorTestRunner.java:334)
at
org.apache.nifi.processors.script.TestInvokeJavascript.testScriptRoutesToFailure(TestInvokeJavascript.java:171)
Running org.apache.nifi.processors.script.TestExecuteJRuby
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.833 sec - in
org.apache.nifi.processors.script.TestExecuteJRuby
Running org.apache.nifi.processors.script.ExecuteScriptGroovyTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.284 sec - in
org.apache.nifi.processors.script.ExecuteScriptGroovyTest
Results :
Failed tests:
TestInvokeJavascript.testReadFlowFileContentAndStoreInFlowFileAttribute:59
Processor has 1 validation failures:
'Validation' validated against
'target/test/resources/javascript/test_reader.js' is invalid because An error
occurred calling validate in the configured script Processor.
TestInvokeJavascript.testScriptDefinedRelationship:128 null
TestInvokeJavascript.testScriptRoutesToFailure:171 Processor has 1 validation
failures:
'Validation' is invalid because An error occurred calling validate in the
configured script Processor.
Tests run: 36, Failures: 3, Errors: 0, Skipped: 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.155 s
[INFO] Finished at: 2016-12-21T17:43:34+00:00
[INFO] Final Memory: 24M/452M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on
project nifi-scripting-processors: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/user/nifi/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/target/surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[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/MojoFailureException