Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I can also confirm this error. </p> <p><strong>Workaround:</strong> is to use <strong>external maven</strong> inside m2eclipse, instead of it's embedded maven.</p> <p>That is done in <strong>three steps:</strong> </p> <p>1 <strong>Install maven on local machine</strong> (the test-machine was Ubuntu 10.10)</p> <blockquote> <p>mvn --version</p> <p>Apache Maven 2.2.1 (rdebian-4) Java version: 1.6.0_20 Java home: /usr/lib/jvm/java-6-openjdk/jre Default locale: de_DE, platform encoding: UTF-8 OS name: "linux" version: "2.6.35-32-generic" arch: "amd64" Family: "unix"</p> </blockquote> <p>2 Run maven externally <a href="http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html" rel="nofollow noreferrer">link how to run maven from console</a></p> <blockquote> <pre><code>&gt; cd path-to-pom.xml &gt; mvn test </code></pre> </blockquote> <pre><code> [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Simple [INFO] task-segment: [test] [INFO] ------------------------------------------------------------------------ [...] [INFO] Surefire report directory: [...]/workspace/Simple/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running net.tverrbjelke.experiment.MainAppTest Hello World Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.042 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [...] </code></pre> <p>3 inside m2eclipse: <strong>switch from <a href="http://wiki.eclipse.org/M2E_FAQ#Why_is_it_working_from_the_command_line_but_not_in_m2eclipse" rel="nofollow noreferrer">embedded maven</a> to local maven</strong> </p> <ul> <li>find out where local maven home installation dir is (<code>mvn --version</code>, or google for your <code>MAVEN_HOME</code>, for me <a href="http://flurdy.com/docs/intellij/" rel="nofollow noreferrer">this helped me</a> that is <code>/usr/share/maven2</code> )</li> <li>in eclipse Menu->Window->Preferences->Maven->Installation-> enter that string. Then you should have switched to your new external maven.</li> <li>then run your Project as e.g. "maven test". </li> </ul> <p>The error-message should be gone.</p>
    singulars
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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