org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile on project xxx:Fatal error compiling: java.lang.ExceptionInInitializerError: For input string: " "
Affected version
3.11.0
Bug description
-
Problem Show:
-
Environment used Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39) Maven home: D:\Program Files\Java\maven\apache-maven-3.8.8 Java version: 21.0.7, vendor: BellSoft, runtime: D:\Tools\Java\jdk\openjdk-21.0.7 Default locale: zh_CN, platform encoding: UTF-8 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
-
Cause of the problem Originally, I used the command "mvn clean install" based on the above environment to compile the Java project successfully. However, due to a blue screen during the execution of the above command in idea, after the computer restarted, the above command continued to show this problem. How should this problem be troubleshooted and solved? I have tried to use new code, new jdk, and build a new maven local repository, but all failed. However, the strange thing is that I put the same configuration in my virtual machine Centos 7 environment, and the above command can be executed successfully (in the virtual machine, the maven local repository dependency built in window is used, and the corresponding jdk and maven are replaced with the versions supported by linux) I need your help, I don't want to solve it by reinstalling the window10 system,thinks!!
Based on the showing result you are using wrong quotes...in your code. It would help to have full working example project which reproduces the issue....
Apart from that using CentOS 7 is really out-of-date... also you should upgrade to most recent Maven 3.9.X release ....