adding spring-cloud-starter-dataflow-server-local leads to the error: Command line is too long. Shorten command line for ... or also for Spring Boot
adding spring-cloud-starter-dataflow-server-local leads to the error: Command line is too long. Shorten command line for ... or also for Spring Boot
我正在编写简单的应用程序以熟悉 spring 批处理。我想学习 spring 批处理管理,我发现它已被弃用,所以我必须改用 spring 云数据流。
我学习了有关 spring 云数据的教程并完成了第一步:
添加依赖:
编译("org.springframework.cloud:spring-cloud-starter-dataflow-server-local:1.7.4.RELEASE")
并使用附加注释标记我的 spring 启动应用程序 class:
@EnableDataFlowServer
现在我正在尝试 运行 它使用 idea 但它打印:
19:14 Error running 'MyApplication': Command line is too long. Shorten command line for MyApplication or also for Spring Boot default configuration.
那一刻我认为这是 IDEA 错误并尝试使用 gradle(通过 idea 插件)到 运行 应用程序使用引导 运行 但它也启动了:
19:15:21: Executing task 'bootRun'...
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:compileJava
:processResources UP-TO-DATE
:classes
:bootRun FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootRun'.
> A problem occurred starting process 'command 'C:\Program Files\Java\jdk1.8.0_111\bin\java.exe''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
3 actionable tasks: 2 executed, 1 up-to-date
CreateProcess error=206, The filename or extension is too long
19:15:26: Task execution finished 'bootRun'.
我该如何解决?
P.S.
使用其中一个选项来缩短命令行:
我正在编写简单的应用程序以熟悉 spring 批处理。我想学习 spring 批处理管理,我发现它已被弃用,所以我必须改用 spring 云数据流。
我学习了有关 spring 云数据的教程并完成了第一步:
添加依赖:
编译("org.springframework.cloud:spring-cloud-starter-dataflow-server-local:1.7.4.RELEASE")
并使用附加注释标记我的 spring 启动应用程序 class:
@EnableDataFlowServer
现在我正在尝试 运行 它使用 idea 但它打印:
19:14 Error running 'MyApplication': Command line is too long. Shorten command line for MyApplication or also for Spring Boot default configuration.
那一刻我认为这是 IDEA 错误并尝试使用 gradle(通过 idea 插件)到 运行 应用程序使用引导 运行 但它也启动了:
19:15:21: Executing task 'bootRun'...
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:compileJava
:processResources UP-TO-DATE
:classes
:bootRun FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootRun'.
> A problem occurred starting process 'command 'C:\Program Files\Java\jdk1.8.0_111\bin\java.exe''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
3 actionable tasks: 2 executed, 1 up-to-date
CreateProcess error=206, The filename or extension is too long
19:15:26: Task execution finished 'bootRun'.
我该如何解决?
P.S.
使用其中一个选项来缩短命令行: