I am getting below error while doing mvn clean. What could be a possible solution?


[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ LottoFrontEnd-Draft --
[INFO] Deleting C:\Users\***.CLASSIC\workspace\jbehave-example\target
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.685 s
[INFO] Finished at: 2016-09-12T18:50:06+05:30
[INFO] Final Memory: 5M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:c
lean (default-clean) on project LottoFrontEnd-Draft: Failed to clean project: Fa
iled to delete C:\Users\***.CLASSIC\workspace\jbehave-example\target\surefire
\surefirebooter6311495032823103258.jar -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

2 Answers

+1 vote

ENTRY org.eclipse.egit.ui 2 0 2019-01-14 10:00:51.618

!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git

user global configuration and to define the default location to store repositories: 'C:\Users\sachin'. If this is

not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and

EGit might behave differently since they see different configuration options.

This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

by (171 points)
0 votes
This error is mainly due to failure of plugin. Verify the log generated by your plugin. Kindly post your plugin log so we can help you out here.