{"id":40,"date":"2012-06-02T19:09:39","date_gmt":"2012-06-02T19:09:39","guid":{"rendered":"http:\/\/tech.lambiase.org\/?p=40"},"modified":"2012-06-02T19:09:39","modified_gmt":"2012-06-02T19:09:39","slug":"maven-classpath-variables-on-eclipse","status":"publish","type":"post","link":"https:\/\/tech.lambiase.org\/?p=40","title":{"rendered":"Maven Classpath Variables on Eclipse"},"content":{"rendered":"<p>Eclipse needs to know the path to the local Maven repository. Therefore the classpath variable M2_REPO has to be set.<\/p>\n<p>Execute the following command:<\/p>\n<pre>mvn\u00a0-Declipse.workspace=&lt;path-to-eclipse-workspace&gt; eclipse:add-maven-repo<\/pre>\n<p>OR<\/p>\n<p>You can also define a new classpath variable inside Eclipse. From the menu bar, select Window &gt; Preferences. Select the Java &gt; Build Path &gt; Classpath Variables page.<br \/>\nAdd the variable M2_REPO with path &lt;path-to-your-user-folder&gt;\\.m2\\repository.<\/p>\n<p>Reference:<br \/>\n<a href=\"http:\/\/maven.apache.org\/guides\/mini\/guide-ide-eclipse.html\">http:\/\/maven.apache.org\/guides\/mini\/guide-ide-eclipse.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eclipse needs to know the path to the local Maven repository. Therefore the classpath variable M2_REPO has to be set. Execute the following command: mvn\u00a0-Declipse.workspace=&lt;path-to-eclipse-workspace&gt; eclipse:add-maven-repo OR You can also define a new classpath variable inside Eclipse. From the menu &hellip; <a href=\"https:\/\/tech.lambiase.org\/?p=40\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,13],"tags":[15,17,14,16],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-apache","category-eclipse","tag-apache-maven","tag-eclipse-2","tag-maven","tag-mvn"],"_links":{"self":[{"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":7,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.lambiase.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}