Friday, April 30, 2010

Referencing Jar from Maven not in local Repository

If you want to use a jar but not install it in your local Maven repository this seems to work:

Set scope to system. Then point to the jar in systemPath element and pretty much make up the rest.


<dependency>
<groupId>com.bmetrix</groupId>
<artifactId>yeehaw</artifactId>
<version>0.1.0</version>
<scope>system</scope>
<systemPath>C:\some\crazy.jar</systemPath>
</dependency>