|JUnit test in Eclipse RCP with maven leads to ClassDefNotFoundError [message #1824358]
||Tue, 14 April 2020 09:55
| Luong Nugyen
Registered: April 2020
I am working in my project, which i have some plugins defined in MANIFEST.MF
then i create some unit test using these plugins, everything fine when i run on Eclipse directly but when running by mvn then there is an error message :
Caused by: java.lang.ClassNotFoundException: XXX cannot be found by lib.Patch01
but in the reality the XXX class belongs to other library called lib2.Patch01.
Note : this only happens in junit test and run with mvn.
The production code run correctly, and junit with eclipse is fine too.
I don't know why this happen, i have got stuck with this nearly 2 days. It is a nightmare. Anyone knows this before, please help me.
Powered by FUDForum
. Page generated in 0.02956 seconds