{"id":1378,"date":"2014-11-18T05:23:16","date_gmt":"2014-11-18T12:23:16","guid":{"rendered":"http:\/\/10kdev.net\/?p=1378"},"modified":"2014-11-17T15:24:13","modified_gmt":"2014-11-17T22:24:13","slug":"convert-a-pre-existing-non-project-to-a-maveneclipse-project","status":"publish","type":"post","link":"http:\/\/10kdev.net\/?p=1378","title":{"rendered":"Convert A Pre-Existing Non-Project To A Maven\/Eclipse Project"},"content":{"rendered":"<p>So, you have a directory with a java class in it, and you want to use your IDE on it. \u00a0What do you do? \u00a0You can&#8217;t just open it up as a project without a little bit of work. \u00a0IntelliJ can do it from the GUI, but with Eclipse and Maven you have to do a bit more work. \u00a0Also, if this directory is already checked in you&#8217;ll want to preserve<\/p>\n<p>Add a simple pom:<br \/>\n<code><br \/>\n&lt;project xmlns=\"http:\/\/maven.apache.org\/POM\/4.0.0\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:schemaLocation=\"http:\/\/maven.apache.org\/POM\/4.0.0 http:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\"&gt;<br \/>\n&lt;modelVersion&gt;4.0.0&lt;\/modelVersion&gt;<br \/>\n&lt;groupId&gt;com.menards.casetest&lt;\/groupId&gt;<br \/>\n&lt;artifactId&gt;CaseTest&lt;\/artifactId&gt;<br \/>\n&lt;version&gt;0.0.1-SNAPSHOT&lt;\/version&gt;<br \/>\n&lt;\/project&gt;<br \/>\n<\/code><br \/>\nThen add a project folder structure like this:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/10kdev.net\/wp-content\/uploads\/2014\/11\/9f465e3eca6b6a5f6816f775421973b8.png\" alt=\"\" \/><\/p>\n<p>Now you have something you can import as a Maven project into many IDE&#8217;s. \u00a0If you are already checked into Git before this, then just move your source files under main\/java\/whatever path and check that move in.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, you have a directory with a java class in it, and you want to use your IDE on it. \u00a0What do you do? \u00a0You can&#8217;t just open it up as a project without a little bit of work. \u00a0IntelliJ can do it from the GUI, but with Eclipse and Maven you have to do [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/1378"}],"collection":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1378"}],"version-history":[{"count":4,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/1378\/revisions"}],"predecessor-version":[{"id":1386,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/1378\/revisions\/1386"}],"wp:attachment":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1378"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}