How to include remote jar dependency in Maven
问题 I need to include a third party jar to my pom.xml (using Maven 3.2.5 on a Linux environment). If the jar file is available on the same machine that runs the build I can just declare the dependency in this way: <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 jar is on a different server such as <repositories>