I am newbie to Maven, My question described below:
I have a jar file in the following repo: http://www.repo.com/custom/path/Jarfile-0.1.0.jar
I have added the repository to the pom file as follows
<repository>
<url>http://www.repo.com/custom/path </url>
<id>Custom_repo</id>
</repository>
I have set the dependency in the pom file as follows:
<dependancy>
<groupId>XXX<groupId>
<artifactId>Jarfile</artifactId>
<version>0.1.0</version>
</depandancy>
when I do a compile 'mvn compile' The output is:
Downloading: http:/www.repo.com/custom/path/XXX/Jarfile/0.1.0/Jarfile-0.1.0.pom
[ERROR] Failed to execute goal on project X: could not resolve dependencies for project ... could not transfer artifact from Custom_repo...
There are two issues:
- The path(consisting of groupid, artifactid and version) /XXX/Jarfile/0.1.0/ gets appended to the Custom_repo which I do not want - how can I get rid of it?
- I want to get the jar file and not a .pom file. What can be done to get the jar? (I know about the <systemPath> - but that is taking the jar from the system - not from repo)
Thank You.