简体   繁体   中英

Is it possible to recover classes source code from Maven jar?

Is it possible to recover source code of java classes (not all), after build in Maven?? I have got compiled jar, but I deleted two classes of my code..

Thx for helping.

This is possible with java decompiler only. Maven Source Plugin is not enabled by default in normal maven build.

Most modern Java IDE has internal project versioning builtin, maybe you can recover deleted file from IDE. For example IDEA IntelliJ has option Show Local History .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM