Build Failure for project nifi-toolkit-cli

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Build Failure for project nifi-toolkit-cli

Taha Naqvi
I am following this page :-  Quickstart
<https://nifi.apache.org/quickstart.html>  

*mvn -version*
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T22:11:47+05:30)
Maven home: C:\Program Files\JetBrains\IntelliJ IDEA Community Edition
2017.1.4\plugins\maven\lib\maven3
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_131\jre
Default locale: en_US, platform encoding: Cp1252
*OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"*
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m;
support was removed in 8.0

maven command -- *mvn -T 4.0C clean install*Below is the maven command line
info and errors*: -
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 50.745 s (Wall Clock)
[INFO] Finished at: 2018-08-19T16:26:33+05:30
[INFO] Final Memory: 176M/2078M
[INFO]
------------------------------------------------------------------------
[INFO] 2 KB
[INFO] --- maven-compiler-plugin:3.6.0:testCompile (groovy-tests) @
nifi-framework-nar-utils ---
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on
project nifi-toolkit-cli: There are test failures.
[ERROR]
[ERROR] Please refer to
D:\ApacheProjects\ApacheNifi\nifi\nifi-toolkit\nifi-toolkit-cli\target\surefire-reports
for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump,
[date].dumpstream and [date]-jvmRun[N].dumpstream.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :nifi-toolkit-cli
[INFO] Changes detected - recompiling the module!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @
nifi-framework-nar-utils ---
Destroying 1 processes
Destroying process..
Destroyed 1 processes
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m;
support was removed in 8.0



Attaching files of test results
org.apache.nifi.toolkit.cli.impl.command.TestCommandProcessor
<http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>  
org.apache.nifi.toolkit.cli.impl.result.TestBucketsResult
<http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>  
org.apache.nifi.toolkit.cli.impl.result.TestRegistryClientResult
<http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>  
org.apache.nifi.toolkit.cli.impl.result.TestVersionedFlowSnapshotMetadataResult
<http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>  
org.apache.nifi.toolkit.cli.impl.result.TestVersionedFlowsResult
<http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>  
org.apache.nifi.toolkit.cli.impl.result.writer.TestDynamicTableWriter
<http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>  
org.apache.nifi.toolkit.cli.TestCLICompleter
<http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>  

Please have a look over this issue.

Thanks,
Taha Naqvi




--
Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Build Failure for project nifi-toolkit-cli

Bryan Bende
Looks like all of the links go to the same test failure for
TestCLICompleter, which seems to be failing because it can't find a
file in src/test/resources [1].

The part of the CLI that is doing to file completion is from the JLine
library, so we don't really have control over making that work on
Windows.

Maybe we can add something to the unit test so that it doesn't run
when building on Windows.

I'm also not sure if this is just a build issue, or if the file
auto-completion would actually not work on Windows when using the
built CLI.

[1] https://github.com/apache/nifi/blob/master/nifi-toolkit/nifi-toolkit-cli/src/test/java/org/apache/nifi/toolkit/cli/TestCLICompleter.java#L213-L221

On Sun, Aug 19, 2018 at 7:00 AM, tahakashaf <[hidden email]> wrote:

> I am following this page :-  Quickstart
> <https://nifi.apache.org/quickstart.html>
>
> *mvn -version*
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
> 2015-11-10T22:11:47+05:30)
> Maven home: C:\Program Files\JetBrains\IntelliJ IDEA Community Edition
> 2017.1.4\plugins\maven\lib\maven3
> Java version: 1.8.0_131, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_131\jre
> Default locale: en_US, platform encoding: Cp1252
> *OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"*
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m;
> support was removed in 8.0
>
> maven command -- *mvn -T 4.0C clean install*Below is the maven command line
> info and errors*: -
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 50.745 s (Wall Clock)
> [INFO] Finished at: 2018-08-19T16:26:33+05:30
> [INFO] Final Memory: 176M/2078M
> [INFO]
> ------------------------------------------------------------------------
> [INFO] 2 KB
> [INFO] --- maven-compiler-plugin:3.6.0:testCompile (groovy-tests) @
> nifi-framework-nar-utils ---
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on
> project nifi-toolkit-cli: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> D:\ApacheProjects\ApacheNifi\nifi\nifi-toolkit\nifi-toolkit-cli\target\surefire-reports
> for the individual test results.
> [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump,
> [date].dumpstream and [date]-jvmRun[N].dumpstream.
> [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
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :nifi-toolkit-cli
> [INFO] Changes detected - recompiling the module!
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @
> nifi-framework-nar-utils ---
> Destroying 1 processes
> Destroying process..
> Destroyed 1 processes
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m;
> support was removed in 8.0
>
>
>
> Attaching files of test results
> org.apache.nifi.toolkit.cli.impl.command.TestCommandProcessor
> <http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>
> org.apache.nifi.toolkit.cli.impl.result.TestBucketsResult
> <http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>
> org.apache.nifi.toolkit.cli.impl.result.TestRegistryClientResult
> <http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>
> org.apache.nifi.toolkit.cli.impl.result.TestVersionedFlowSnapshotMetadataResult
> <http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>
> org.apache.nifi.toolkit.cli.impl.result.TestVersionedFlowsResult
> <http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>
> org.apache.nifi.toolkit.cli.impl.result.writer.TestDynamicTableWriter
> <http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>
> org.apache.nifi.toolkit.cli.TestCLICompleter
> <http://apache-nifi-developer-list.39713.n7.nabble.com/file/t1039/org.txt>
>
> Please have a look over this issue.
>
> Thanks,
> Taha Naqvi
>
>
>
>
> --
> Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Build Failure for project nifi-toolkit-cli

Taha Naqvi
This post was updated on .
In reply to this post by Taha Naqvi
I was able to resolve cli toolkit issue by mvn clean and git clean -fxd.

Then while building on windows got error on
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-runtime/src/test/groovy/org/apache/nifi/NiFiGroovyTest.groovy

was able to resolve by  changing this
   * private static final String TEST_RES_PATH =
NiFiGroovyTest.getClassLoader().getResource(".").toURI().getPath()*
      ----------TO------------
*private static final String TEST_RES_PATH =
Paths.get(NiFiGroovyTest.getClassLoader().getResource(".").toURI()).toString()*

But again in the process of build I face this:-
*TestFileSystemRepo unit test failures*


http://mail-archives.apache.org/mod_mbox/nifi-issues/201710.mbox/%3CJIRA.13106295.1506875030000.247104.1506875040118@Atlassian.JIRA%3E


Maven command that i am using :- mvn -Pcontrib-check clean install

--
Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/