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:
0 Comments
Leave a Reply. |