I am new to Maven. I would like to use the following setup:
1) a remote repository to download public artifact
2) a shared local repository for downloaded artifacts which works nicely by adding the following to settings.xml:
<localRepository>C:/m2repo</localRepository>
3) Now I would also like to have a repository for artifacts referenced from a single project, like an old-fashioned "lib" folder.
So I have added the following to the project's pom.xml:
<repository>
<id>repo</id>
<name>repo</name>
<releases>
<enabled>true</enabled>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<url>${project.baseUri}repo</url>
</repository>
I have deployed some jars to the "repo" folder, but when I add them as dependencies in pom.xml, they are not resolved. Maven only looks to the shared repository and the remote repository. When I copy the contents of "repo" to the shared "m2repo", it works. Am I missing something or is this setup not possible at all?