java - Dependant jar doesn't deploy to tomcat where project with this jar is open in workspace -


strange problem, i've got 2 projects in workspace:

projecta

projectb

in pom.xml in projecta i've added:

<dependency> <groupid>groupid</groupid> <artifactid>projectb</artifactid> <version>version</version> </dependency>

and when build application , deploy tomcat, there in logs : " noclassdeffounderror" i've noticed, if close projectb app in tomcat works properly. if open project app crushing.

when projectb open, eclipse uses workspace project resolve projectb dependency. if closed, dependency taken maven repository. why behavior different.

have checked missing class indeed in projectb ? if is, have checked class compiles correctly ? also, class looks ok not compiled because projectb has build path errors.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -