Add another java project as dependency in eclipse
Let’s say we have 2 projects A and B. Project A is the dependency of project B.
Right click project B -> Build Path -> Configure Build Path. In the popup dialog, select Projects tab, and add project A.
Right click project B -> Properties. In the popup dialog, select Deployment Assembly in the left side bar, and add project A.
Done. Happy coding!