Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven: Failed to resolve dependency: C:\Program Files\Java\lib\tools.jar
    text
    copied!<p>I'm trying to use the cargo plugin to run a web application in a local Jetty container from inside Eclipse. This seems to be working for other people with the exact same pom.xml, but I get this error:</p> <pre><code>[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.3:start (default-cli) on project wsc: Failed to resolve dependency: C:\Program Files\Java\lib\tools.jar -&gt; [Help 1] </code></pre> <p>How do I resolve this? The project is set to use jdk1.7.0 as the "JRE System Library". I am starting Eclipse with "-vm " and even JAVA_HOME is set to the JDK path.</p> <p>Any ideas? I've been researching on this for a while and getting crazy about that. The documentation on <a href="https://maven.apache.org/general.html#tools-jar-dependency" rel="nofollow">including tools.jar as dependency</a> didn't help me.</p> <p><strong>Important:</strong> This seems to work outside Eclipse, e.g. with <code>mvn -P local cargo:start</code>.</p> <hr> <p>Program output when started from Eclipse:</p> <pre><code>[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Web Services Computing 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- cargo-maven2-plugin:1.0.3:start (default-cli) @ wsc --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.324s [INFO] Finished at: Sat Oct 22 19:10:18 CEST 2011 [INFO] Final Memory: 15M/107M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.3:start (default-cli) on project wsc: Failed to resolve dependency: C:\Program Files\Java\lib\tools.jar -&gt; [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException </code></pre> <hr> <p>Dependency tree output (also started from Eclipse):</p> <pre><code>[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ wsc --- [INFO] de.tum.ibis.wsc:wsc:war:0.0.1-SNAPSHOT [INFO] +- junit:junit:jar:3.8.1:test [INFO] \- javax.servlet:servlet-api:jar:2.5:compile [INFO] ------------------------------------------------------------------------ </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload