I have a multi-module project in Eclipse, which works fine.
Now I want to work with IntelliJ (I have 12.1), so I imported project to IntelliJ, and have configured below things in it:
Everything looks OK, but when I run the project it shows:
Caused by: java.lang.NoClassDefFoundError: org/xx/yyy/zzzz
Although org.xx.yyy.zzzz
class exist in model
module, which is already added to web
module (my project has 2 modules web
and model
), and also scope of dependency is set to provided
.
What should I try to resolve this problem? Help me if I am missing something.
Finally I got the answer.
I kept the scope to provided
, and Added model module to artifacts and it worked. :)
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.