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
Using the system scope. ${basedir} is the directory of your pom.
system
${basedir}
.. .. system ${basedir}/lib/dependency.jar
However it is advisable that you install your jar in the repository, and not commit it to the SCM - after all that's what maven tries to eliminate.