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"...
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With