I need to include a third-party jar in my pom.xml (using Maven 3.2.5 on a Linux environment).
If the jar file is available on the same machine as the build, I can simply declare the dependency as follows:
<dependencies>
<dependency>
<groupId>Foo</groupId>
<artifactId>Foo</artifactId>
<version>Foo-1.0</version>
<scope>system</scope>
<systemPath>/myspace/javalibs/foo-1.0.jar</systemPath>
</dependency>
</dependencies>
But what if the bank is on a different server, for example
<repositories>
<repository>
<id>myrepo</id>
<url>http://192.168.0.14/download/java/thirdparty_repo</url>
</repository>
</repositories>
In which element should I specify the jar file name?
source
share