{"id":149,"date":"2019-09-06T09:34:24","date_gmt":"2019-09-06T07:34:24","guid":{"rendered":"https:\/\/www.rothamel.com\/?p=149"},"modified":"2019-09-06T10:02:45","modified_gmt":"2019-09-06T08:02:45","slug":"howto-setup-solr-eclipse-development-environment","status":"publish","type":"post","link":"https:\/\/www.rothamel.com\/index.php\/2019\/09\/06\/howto-setup-solr-eclipse-development-environment\/","title":{"rendered":"HowTo: Setup Solr + Eclipse development environment"},"content":{"rendered":"\n<p>Solr from sources for development with eclipse<\/p>\n\n\n\n<p class=\"has-medium-font-size\">Getting sources and tools<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Clone solr sources for your desired branch in eclipse from <a href=\"https:\/\/github.com\/apache\/lucene-solr\">github<\/a><\/li><li>install <a href=\"https:\/\/ant.apache.org\/bindownload.cgi\">ant<\/a>, install <a href=\"http:\/\/strawberryperl.com\/\">perl <\/a>(for dist creation) <ul><li>see <a href=\"http:\/\/strawberryperl.com\/releases.html\">portable perl<\/a> from strawberry perl if you don&#8217;t have admin rights<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size\">Setup<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>go to your git repository of solr and to the lucene-solr root dir <\/li><li>run <code>ant ivy-bootstrap<\/code><ul><li>if you are behind a proxy structure use the ant parameter <code>-autoproxy<\/code><\/li><\/ul><\/li><li>go to solr dir<\/li><li>run <code>ant dist<\/code> <\/li><li>run <code>ant server <\/code>for a runable solr server<\/li><li>after successful compile go to solr\/bin and start server<\/li><li>go to lucene-solr dir <\/li><li>run <code>ant eclipse<\/code><\/li><li>import eclipse project from lucene-solr root dir<\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size\">Run solr with debug<\/p>\n\n\n\n<p>At command line call the Solr server like this to enable the debug port<\/p>\n\n\n\n<p><code>java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7666 -jar start.jar<\/code><\/p>\n\n\n\n<p>In Eclipse go to <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>debug configurations -&gt; remote java applications&#8221; <\/li><li>click at &#8220;new&#8221;<\/li><li>Name the project<\/li><li>put the  port in that corresponds to the address above. <\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size\">Additional points (Q+A)<\/p>\n\n\n\n<p>Q: You are behind a proxy?<\/p>\n\n\n\n<p>A: use -autoproxy parameter if ant is not able to resolv the proxy configuration<\/p>\n\n\n\n<p>Q: Your proxy uses it own certificates to open HTTPS Connections?<\/p>\n\n\n\n<p>A: add the used root-certificate of the proxy to the java keystore that belongs to the JDK that is configured by JAVA_HOME var.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Solr from sources for development with eclipse Getting sources and tools Clone solr sources for your desired branch in eclipse from github install ant, install perl (for dist creation) see portable perl from strawberry perl if you don&#8217;t have admin rights Setup go to your git repository of solr and to the lucene-solr root dir [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":2,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":152,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts\/149\/revisions\/152"}],"wp:attachment":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}