Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>2) the eclipse not take me M2_REPO variable (in another workspace it works) I have added the variable and the jar.</p> </blockquote> <p>For every workspace, you need to call <a href="http://maven.apache.org/plugins/maven-eclipse-plugin/configure-workspace-mojo.html" rel="nofollow"><code>mvn eclipse:configure-workspace</code></a> once. This initializes the <code>M2_REPO</code> variable.</p> <blockquote> <p>3) Description Resource Path Location Type Java compiler level does not match the version of the installed Java project facet. PropiedadesArg Unknown Faceted Project Problem (Java Version Mismatch)</p> </blockquote> <p>The compiler level is taken from the pom configuration of the maven compiler plugin.</p> <p><strong>Example (for 1.6 compliance):</strong></p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt; &lt;version&gt;2.3.2&lt;/version&gt; &lt;configuration&gt; &lt;source&gt;1.6&lt;/source&gt; &lt;target&gt;1.6&lt;/target&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre> <hr> <p>But apart from that: <code>mvn eclipse:eclipse</code> shouldn't be used any more, <a href="http://m2eclipse.sonatype.org/" rel="nofollow">m2eclipse</a> is the way to go for Eclipse + Maven. It uses an embedded Maven installation to actually run the maven build (or parts of it) in Eclipse, whereas the Maven Eclipse Plugin just configures Eclipse from the outside. Here's a <a href="http://maven.40175.n5.nabble.com/Preparing-for-M2Eclipse-1-0-amp-no-support-for-the-maven-eclipse-plugin-td139921.html" rel="nofollow">thread were the Maven founders discuss this topic</a>.</p> <hr> <p>Also: </p> <pre><code>mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0 -DgroupOd=ar.com -DartifactId=RETOP ^^^^^^^ </code></pre> <p>here's a typo, it's <code>groupId</code>, not <code>groupOd</code></p> <hr> <p>Oh, now I get it. <code>eclipse:eclipse</code> uses the variable <code>MAVEN_REPO</code>, not <code>M2_REPO</code> (<code>M2_REPO</code> is created and maintained by m2eclipse). Anyway, in Eclipse, select <code>Window &gt; Preferences &gt; Java &gt; Build Path &gt; Classpath Variables</code>, add or edit the <code>M2_REPO</code> variable and set it to <code>&lt;path to your home directory&gt;/.m2/repository</code>, e.g. <code>C://users/yournamehere/.m2/repository</code></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