[ERROR] Failed to execute goal com.github.wvengen:proguard-maven-plugin:2.6.0:proguard (default) on project homestead: Execution default of goal com.github.wvengen:proguard-maven-plugin:2.6.0:proguard failed: java.io.IOException: Cannot run program "F:\jdk1.8.0_162\jre\bin\java.exe" (in directory "E:\Dev\homestead"): CreateProcess error=206, 文件名或扩展名太长。 -> [Help 1]
时间: 2024-02-16 15:03:58 浏览: 753
Maven报错: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources
这个错误是由于文件名或路径名过长导致的。建议你将该项目移动到一个更短的路径下,或者尝试更改一些文件名缩短长度。你也可以尝试在 pom.xml 文件中配置 proguard 插件,使用 shortFileNames 参数来缩短文件名。例如:
```xml
<plugin>
<groupId>com.github.wvengen</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.6.0</version>
<executions>
<execution>
<id>proguard</id>
<phase>package</phase>
<goals>
<goal>proguard</goal>
</goals>
</execution>
</executions>
<configuration>
<shortFileNames>true</shortFileNames>
...
</configuration>
</plugin>
```
阅读全文