Maven: add a dependency to a jar by relative path

Posted by flybywire on Stack Overflow See other posts from Stack Overflow or by flybywire
Published on 2010-02-09T14:30:22Z Indexed on 2010/05/27 1:51 UTC
Read the original article Hit count: 273

I have a proprietary jar that I want to add to my pom as a dependency.

But I don't want to add it to a repository. The reason is that I want my usual maven commands such as mvn compile, etc, to work out of the box. (Without demanding from the developers a to add it to some repository by themselves).

I want the jar to be in a 3rdparty lib in source control, and link to it by relative path from the pom.xml file.

Can this be done? How?

© Stack Overflow or respective owner

Related posts about java

Related posts about maven-2