I have two Maven projects. One should be a dependency to another. Both have pom.xml files. When I search repository, it sees the local project and automatically added.
The pom.xml entry when I add it:
<dependencies> <dependency> // for another dependency, an external jar <groupId>..</groupId> <artifactId>..</artifactId> <version>...</version> </dependency> <dependency> // the one for other project which I want to add as dependency <groupId>..</groupId> <artifactId>..</artifactId> <version>..</version> </dependency> </dependencies> But the references to that project can not see the classes. Is there some specific way to do that, instead of adding from repository?