I am using Eclipse Neon and Maven for my development. There are 2 main projects. Project 1 contains all Web services including both SOAP and RESTful. It also has all the database accesses implemented. Project 2 contains the UI which is an Angular implementation. The Angular UI utilizes the RESTful services of project 1 for all data access. The application is packaged into an EAR file containing the WAR files from the two projects. (This is NOT my design!!!)
There are a few Servlet classes in the UI application that handles authorization issues. Up to now the classes in each WAR file were completely independent. Now I need to access data from the database tables from one of the servlet classes. Since that capability is already in Project 1 I should be able to simply utilize the classes in Project 2.
In Eclipse I have both projects in my workspace and have added Project 1 to the build path of Project 2 so I can add the proper objects as needed to Project 2. However, when I try to build Project 2 it can't find the classes from Project 1. I tried adding Project 1 to the export list of Project 2 but that made no difference.
I can provide pom files it necessary.
I just don't know what to try.