I have installed the Nexus Repository Manager OSS 3.6.1-02 locally and deployed some 3rd party libraries to a new repository I created - myrepo - by
mvn deploy:deploy-file -DgroupId=com.test -DartifactId=testfile -Dversion=1.0.0 -Dpackaging=jar -Dfile=testfile.jar -DrepositoryId=myrepo -Durl=http://localhost:8080/repository/myrepo/
Everything looks fine in Nexus. I'm seeing the 3rd party libraries deployed with their corresponded pom files created in myrepo. The problem is that when I tried to download those libraries as dependencies of a project, executing the install goal it says:
The POM for com.test:testfile:jar:1.0.0 is missing, no dependency information available
Failed to execute goal on project testproyect: Could not resolve dependencies for project com.test:testproyect:war:1.0.0: The following artifacts could not be resolved: com.test:testfile:jar:1.0.0: Could not find artifact com.test:testfile:jar:1.0.0 in myrepo (http://localhost:8080/repository/myrepo/) -> [Help 1]
My project's pom has:
<dependencies>
<dependency>
<groupId>com.test</groupId>
<artifactId>testfile</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>myrepo</id>
<name>local repository</name>
<url>http://localhost:8080/repository/myrepo/</url>
</repository>
</repositories>
What am I missing?