michael.drogalis$ mvn clean compile [INFO] Scanning for projects... [INFO] [INFO] -----------------< streams.examples:streams.examples >------------------ [INFO] Building Kafka Streams Quickstart :: Java 0.1 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ streams.examples --- [INFO] Deleting /Users/michael.drogalis/scratch/kstreams-bug/streams.examples/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ streams.examples --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ streams.examples --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 3 source files to /Users/michael.drogalis/scratch/kstreams-bug/streams.examples/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/michael.drogalis/scratch/kstreams-bug/streams.examples/src/main/java/myapps/LineSplit.java:[48] .flatMapValues(value -> Arrays.asList(value.split("\\W+"))) ^^^^^ The method split(String) is undefined for the type Object 1 problem (1 error) [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.362 s [INFO] Finished at: 2019-01-22T09:53:51-08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project streams.examples: Compilation failure [ERROR] /Users/michael.drogalis/scratch/kstreams-bug/streams.examples/src/main/java/myapps/LineSplit.java:[48] [ERROR] .flatMapValues(value -> Arrays.asList(value.split("\\W+"))) [ERROR] ^^^^^ [ERROR] The method split(String) is undefined for the type Object [ERROR] 1 problem (1 error) [ERROR] [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