I have a library AXMLPrinter2.jar
located at generic-local/corey/AXMLPrinter2/1.0/
on my private maven repository, here is the pom file:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>corey</groupId>
<artifactId>AXMLPrinter2</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
</project>
When I tried to add it as a dependency in my project:
<dependency>
<groupId>corey</groupId>
<artifactId>AXMLPrinter2</artifactId>
<version>1.0</version>
</dependency>
It will cause an error like this:
Could not resolve dependencies for project: The following artifacts could not be resolved: corey:AXMLPrinter2:jar:1.0 Could not find artifact corey:AXMLPrinter2:jar:1.0 in central (http://myip:8081/artifactory/generic-local)
From the log, it tried to find AXMLPrinter2-1.0.jar, but the library's name is AXMLPrinter2.jar (without -1.0) actually, how can I solve this issue?
I found some similar issues here and here, but didn't work.
How to include a dependency and specify its real name in pom file?