简体   繁体   中英

when importing project from eclipse to intelliJ

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:

  • All modules
  • configured all lib (.jar) files with each project where I need (by adding lib)
  • have configured module dependencies
  • have configured tomcat7 with them, and added it in dependency of module too

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.

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