Note that there are some explanatory texts on larger screens.

plurals
  1. POfailsafe plugin won't run on one project but will run on another -- why?
    primarykey
    data
    text
    <p>This is driving me insane. The Maven failsafe plugin will not run on my project. If I run <code>mvn verify</code> only surefire runs. If I type <code>mvn failsafe:verify</code> it fails with the following error:</p> <pre><code>[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Simulation Experiment Server 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-failsafe-plugin:2.11:verify (default-cli) @ experiment-server --- [INFO] Failsafe report directory: C:\IdeaProjects\experiment_server\target\failsafe-reports [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.551s [INFO] Finished at: Fri Mar 30 11:24:58 GMT-06:00 2012 [INFO] Final Memory: 5M/15M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.11:verify (default-cli) on project experiment-server: C:\IdeaProjects\experiment_server\target\failsafe-reports\failsafe-summary.xml (The system cannot find the path specified) -&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> <p>It's complaining about not finding <code>failsafe-summary.xml</code>. But this should be created by the plugin. And the plugin works fine (and creates the <code>failsafe-summary.xml</code> file if I run run Antonio Goncalves wonderful <a href="http://agoncal.wordpress.com/2012/01/16/wytiwyr-what-you-test-is-what-you-run/" rel="nofollow noreferrer">Arquillian example project</a>.</p> <p>So I copied the exact plugin information Antonio uses, and it still won't run on my project. I've modelled my POM to be exactly like his (except without a parent pom) -- something must be going wrong, I just don't know what. Why will failsafe run on his project but not mine??</p> <p>Here is my failsafe pom.xml entry, which is taken right from his, and is the same as the one on the failsafe usaages site):</p> <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt; &lt;version&gt;${version.maven.failsafe.plugin}&lt;/version&gt; &lt;configuration&gt; &lt;/configuration&gt; &lt;executions&gt; &lt;execution&gt; &lt;goals&gt; &lt;goal&gt;integration-test&lt;/goal&gt; &lt;goal&gt;verify&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>Thanks for any help, this is driving me insane.</p> <p><strong>UPDATE</strong> Okay, I seem to have gotten the <code>cannot find failsafe-summary.xml</code> problem fixed -- I change my directory from <code>experiment_server</code> to <code>experiment-server</code>. I guess that messes up failsafe. </p> <p>But, I'm still having trouble getting failsafe to run from the command <code>mvn verify</code> or <code>mvn integration-test</code>. Both those commands call surefire instead of failsafe. I can now run failsafe directly by using the command: <code>mvn failsafe:integration-test</code>, but shouldn't failsafe automatically run with <code>mvn verify</code>? My <code>mvn help:effective-pom</code> shows that failsafe is there, so that's not the problem... Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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