Home > Software engineering >  Are there any ways to revoke mvn clean command?
Are there any ways to revoke mvn clean command?

Time:04-23

I accidentally use the mvn clean command in java. However, I forget to store relevant files about testing information. It takes a lot of time to retest the project. Are there any ways to revoke this command?

CodePudding user response:

No, there is not any way to do this through maven.

mvn clean deletes the 'target' directory.

You would have to use facilities provided by either your operating system or an external program to to attempt to recover the deleted files in the same way that you would have to if you had manually deleted the files in question.

  • Related