[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] oh-my-scheduler [pom] [INFO] oh-my-scheduler-common [jar] [INFO] oh-my-scheduler-worker [jar] [INFO] oh-my-scheduler-server [jar] [INFO] oh-my-scheduler-client [jar] [INFO] oh-my-scheduler-worker-samples [jar] [INFO] oh-my-scheduler-worker-agent [jar] [INFO] [INFO] -----------------< com.github.kfcfans:oh-my-scheduler >----------------- [INFO] Building oh-my-scheduler 1.0.0 [1/7] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ oh-my-scheduler --- [INFO] [INFO] -------------< com.github.kfcfans:oh-my-scheduler-common >-------------- [INFO] Building oh-my-scheduler-common 2.0.0 [2/7] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ oh-my-scheduler-common --- [INFO] Deleting C:\Downloads\PowerJob-2.0.0\PowerJob-2.0.0\oh-my-scheduler-common\target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ oh-my-scheduler-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\Downloads\PowerJob-2.0.0\PowerJob-2.0.0\oh-my-scheduler-common\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ oh-my-scheduler-common --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 43 source files to C:\Downloads\PowerJob-2.0.0\PowerJob-2.0.0\oh-my-scheduler-common\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ oh-my-scheduler-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\Downloads\PowerJob-2.0.0\PowerJob-2.0.0\oh-my-scheduler-common\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ oh-my-scheduler-common --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ oh-my-scheduler-common --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ oh-my-scheduler-common --- [INFO] Building jar: C:\Downloads\PowerJob-2.0.0\PowerJob-2.0.0\oh-my-scheduler-common\target\oh-my-scheduler-common-2.0.0.jar [INFO] [INFO] -------------< com.github.kfcfans:oh-my-scheduler-worker >-------------- [INFO] Building oh-my-scheduler-worker 2.0.0 [3/7] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ oh-my-scheduler-worker --- [INFO] Deleting C:\Downloads\PowerJob-2.0.0\PowerJob-2.0.0\oh-my-scheduler-worker\target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ oh-my-scheduler-worker --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ oh-my-scheduler-worker --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 61 source files to C:\Downloads\PowerJob-2.0.0\PowerJob-2.0.0\oh-my-scheduler-worker\target\classes [INFO] /C:/Downloads/PowerJob-2.0.0/PowerJob-2.0.0/oh-my-scheduler-worker/src/main/java/com/github/kfcfans/oms/worker/core/processor/TaskContext.java: C:\Downloads\PowerJob-2.0.0\PowerJob-2.0.0\oh-my-scheduler-worker\src\main\java\com\github\kfcfans\oms\worker\core\processor\TaskContext.java使用了未经检查或不安全的操作。 [INFO] /C:/Downloads/PowerJob-2.0.0/PowerJob-2.0.0/oh-my-scheduler-worker/src/main/java/com/github/kfcfans/oms/worker/core/processor/TaskContext.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /C:/Downloads/PowerJob-2.0.0/PowerJob-2.0.0/oh-my-scheduler-worker/src/main/java/com/github/kfcfans/oms/worker/persistence/TaskPersistenceService.java:[133,27] 不兼容的类型: 推断类型不符合上限 推断: java.util.Optional 上限: java.util.Optional,java.lang.Object [ERROR] /C:/Downloads/PowerJob-2.0.0/PowerJob-2.0.0/oh-my-scheduler-worker/src/main/java/com/github/kfcfans/oms/worker/persistence/TaskPersistenceService.java:[241,27] 不兼容的类型: 推断类型不符合上限 推断: java.util.Optional 上限: java.util.Optional,java.lang.Object [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] oh-my-scheduler 1.0.0 .............................. SUCCESS [ 0.091 s] [INFO] oh-my-scheduler-common 2.0.0 ....................... SUCCESS [ 3.727 s] [INFO] oh-my-scheduler-worker 2.0.0 ....................... FAILURE [ 2.893 s] [INFO] oh-my-scheduler-server 2.0.0 ....................... SKIPPED [INFO] oh-my-scheduler-client 2.0.0 ....................... SKIPPED [INFO] oh-my-scheduler-worker-samples ..................... SKIPPED [INFO] oh-my-scheduler-worker-agent 2.0.0 ................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.810 s [INFO] Finished at: 2020-06-28T09:47:12+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project oh-my-scheduler-worker: Compilation failure: Compilation failure: [ERROR] /C:/Downloads/PowerJob-2.0.0/PowerJob-2.0.0/oh-my-scheduler-worker/src/main/java/com/github/kfcfans/oms/worker/persistence/TaskPersistenceService.java:[133,27] 不兼容的类型: 推断类型不符合上限 [ERROR] 推断: java.util.Optional [ERROR] 上限: java.util.Optional,java.lang.Object [ERROR] /C:/Downloads/PowerJob-2.0.0/PowerJob-2.0.0/oh-my-scheduler-worker/src/main/java/com/github/kfcfans/oms/worker/persistence/TaskPersistenceService.java:[241,27] 不兼容的类型: 推断类型不符合上限 [ERROR] 推断: java.util.Optional [ERROR] 上限: java.util.Optional,java.lang.Object [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 -rf :oh-my-scheduler-worker