在 pom 文件中使用 jvmarguments 时出现标题错误。我正在使用带有以下插件的 mvnw 命令来启用调试。如果我删除 jvm 参数,它就可以工作。但是我想使用 mvnw 命令启用远程调试
代码片段:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>${start-class}</mainClass>
<executable>true</executable>
<fork>true</fork>
<jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
</configuration>
</plugin>
错误:
*[ERROR] 无法执行目标 org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:run (default-cli) on project dxcgateway: Could not exec java: Cannot run program "C:\ Program Files\Java\jdk1.8.0_202\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long -> 【求助1】org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute目标org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:在项目dxcg ateway上运行(默认cli):无法执行java
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_202\jre\bin\java.exe": CreateProcess error=206, 文件名或扩展名太长lang.ProcessBuilder.start (ProcessBuilder.java:1048) 在 org.springframework.boot.loader.tools.RunProcess.run (RunProcess.java:77)
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_202\jre\bin\java.exe": CreateProcess error=206, 文件名或扩展名太长lang.ProcessBuilder.start (ProcessBuilder.java:1048) 在 org.springframework.boot.loader.tools.RunProcess.run (RunProcess.java:77)*
阿波罗的战车
LEATH
MMTTMM
斯蒂芬大帝
相关分类