javamaveninstallationmaven-install-plugin

Maven install 3rd party dependency in build process


I have a 3rd party dependency jar which need to be installed in order to build my project. I know this can be done using the install command, but what I need is to install it when I build my project. So no need to manually install the jar, is there a way to do it?

I found something like this to install plugins

<configuration>
<executable>mvn</executable>
<arguments>
    <argument>install:install-file</argument>
    <argument>-Dfile=${basedir}\src\main\resources\EVIPSoapServer.jar</argument>
    <argument>-DgroupId=com.company</argument>
    <argument>-DartifactId=EVIPSoapServer</argument>
    <argument>-Dversion=1.0.0</argument>
    <argument>-Dpackaging=jar</argument>
</arguments>

Is there a way to install dependencies?


Solution

  • I was able to find a solution in this blog http://giallone.blogspot.com/2012/12/maven-install-missing-offline.html