Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project 'X' is missing required Java project: 'Y'

I've created a Maven project, of packaging type "jar", called "Y" I've done "Maven install", and I could find it in my local repository..

Then, I've created another project, of packaging type "war", called "X". In this project, I added a dependency to "Y" jar, as follows :

<dependency>
   <groupId>my.pck</groupId>
   <artifactId>Y</artifactId>
   <version>0.0.1-SNAPSHOT</version>
   <type>jar</type>
</dependency>

My problem is that when I close the project "Y", I receive this error :

Project 'X' is missing required Java project: 'Y'

But, it doesn't say "missing artifact"... and in all the cases, when I try to deploy "X" I get this : java.lang.ClassNotFoundException:for every class that I have in project "Y" and used in the project "X"...

like image 778
Farah Avatar asked Feb 26 '14 18:02

Farah


1 Answers

Thank you @Eldad, your comment helped me to detect the problem.

Under Eclipse IDE : Right click on "X" project > Build Path > Configure Build Path > Project > Check Y > Click on "Remove"

Now no error while deploying the X war.

like image 78
Farah Avatar answered Oct 13 '22 19:10

Farah