How to run the equivalent of mvn install:install-file before the compilation phase. We have a file under lib/foo-1.0.0.jar 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
How to run the equivalent of mvn install:install-file before the compilation phase. We have
Share
Use system dependency scope
${basedir}– is dir of yourpom.xmlEDIT
also you can use
build-helper-maven-plugin