Issue
Hello Team,
I am running a Maven Build (mvn clean install) on my system where the Maven Build is getting terminated after the below line without any error.
[INFO] Compiling 231 source files to C:\Users\abc\git\ebiz-utils-lib\target\classes
I am using the latest maven version 3.6.3 (with hardware configuration - Intel i5 4th Generation Processor and 16 GB RAM).
Below are the commands which I am using to perform maven build of the project.
In IntelliJ:
D:\Software\jdk-11.0.10+9\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\Users\abc\git\ebiz-utils-lib -Xms512m -Xmx1024m -Xmx4096m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=300m -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dmaven.home=D:\ebiz_new\maven\apache-maven -Dclassworlds.conf=D:\ebiz_new\maven\apache-maven\bin\m2.conf "-Dmaven.ext.class.path=C:\Users\abc\AppData\Local\JetBrains\IntelliJ IDEA Community Edition 2020.3.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Users\abc\AppData\Local\JetBrains\IntelliJ IDEA Community Edition 2020.3.2\lib\idea_rt.jar=60635:C:\Users\abc\AppData\Local\JetBrains\IntelliJ IDEA Community Edition 2020.3.2\bin" -Dfile.encoding=UTF-8 -classpath D:\ebiz_new\maven\apache-maven\boot\plexus-classworlds-2.6.0.jar;D:\ebiz_new\maven\apache-maven\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2020.3.2 --update-snapshots -X -e clean install
In Local Terminal: mvn clean install
I have tried several solutions but nothing worked for this issue.
The same issue persists in the IDE and in the console as well.
I downloaded the new maven distributable also but that even didn't work for me.
I have added screenshots herewith for your perusal.
Edit: I have also observed that java.exe process gets terminated during the build process for maven (may be due to high CPU utilization as the CPU utilization percentage moves into range of 80% - 100%), but there is no way by which I can confirm the exact issue.
Request you to provide some solution for this issue.
Thanks.
Solution
Finally, I found the root cause of this issue.
The issue was the system files on the hard drive were corrupt causing malfunctioning of the system, and the reason for the corruption of system files was the Hard Drive on the system was failing i.e. it had too many bad sectors.
Thus, replaced the new hard drive in the system and reinstalled the operating system, and did all the required setup.
The issue is now resolved.
Answered By - Hitesh Kirtane
Answer Checked By - Mary Flores (JavaFixing Volunteer)