![How to install maven plugin](https://kumkoniak.com/113.png)
- Security AppScan Source - Windows and Linux.
- However, if you still want to go down this path, an alternate approach would be to specify the dependency with a system scope providing the path of the jar.
Better still you could deploy it to a repository manager and then access it like any other dependency. You could manually install it one-time using mvn install:install-file outside the context of the pom. This is not going to work since maven checks for availability of dependencies before it starts executing its life-cycle goals. Mvn eclipse:eclipse works because maven runs the generate-sources phase prior to invoking eclipse:eclipse.Įdit: From the comments it looks like you want to use the locally available paho.jar in your project by first installing it to your local repo in the generate-sources phase and thereafter use it as a dependency in your project. Since you have bound install:install-file goal to the generate-sources phase, you should run mvn compile or mvn install or such to use the defined configurations. For more information about the errors and possible solutions, please read the following articles: Re-run Maven using the -X switch to enable full debug logging. To see the full stack trace of the errors, re-run Maven with the -e switch. The error messages when use mvn compile Failed to execute goal on project android-engine: Could not resolve dependencies for project :android-engine:jar:1.0-SNAPSHOT: Could not find artifact org.eclipse:paho:jar:1.0.0 in spring-milestone () -> The parameters 'file' for goal :maven-install-plugin:2.3.1:install-file are missing or invalid -> You can find that I binding it to phase 'generate-resources'.And then,I use order mvn eclipse:eclipse.It works very well and the jar was copied to my local repository.But when I use order mvn install:install-file I got the error: Failed to execute goal :maven-install-plugin:2.3.1:install-file (default-cli) on project xxx: I use install:install-file to install jar to my local repository.My pom.xml is written as follow: