Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I have tried making this warning go away with the hack below, however it has a side effect of making it impossible to run tests from eclipse because of the class-path for the tests in eclipse when running code does not get set properly. I am posting here in hopes that some one can improve this hack and make it work. </p> <p>Create a profile in the pom file is turned off when in eclipse but automatically turns on when running maven outside eclipse.</p> <pre><code>&lt;profiles&gt; &lt;profile&gt; &lt;id&gt;test-jars&lt;/id&gt; &lt;activation&gt; &lt;property&gt; &lt;name&gt;!m2e.version&lt;/name&gt; &lt;/property&gt; &lt;/activation&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;com.example&lt;/groupId&gt; &lt;artifactId&gt;foo&lt;/artifactId&gt; &lt;version&gt;${project.version}&lt;/version&gt; &lt;type&gt;test-jar&lt;/type&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.example&lt;/groupId&gt; &lt;artifactId&gt;bar&lt;/artifactId&gt; &lt;version&gt;${project.version}&lt;/version&gt; &lt;type&gt;test-jar&lt;/type&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/profile&gt; &lt;/profiles&gt; </code></pre> <p>Inside eclipse the m2e.version property is defined so the test-jar dependencies are ignored by m2e and no warning is generated. However, when running maven on the command line the profile activates because there is no m2e.version property and so the warning goes away.</p>
 

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