title: How to run the equivalent of mvn install:install-file before compilation
body: <p>How to run the equivalent of <code>mvn install:install-file</code> before the compilation phase. We have a file under <code>lib/foo-1.0.0.jar</code> which is not present in a Maven repo. So we install it manually using mvn install:install-file and put this as a dependency during the compile phase. But if the file is not installed in your local repository, it fails with a compilation error. How do I instruct maven to install this automatically prior to compilation</p>