{"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 class=\"wp-block-paragraph\">Solr from sources for development with eclipse<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">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 wp-block-paragraph\">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 wp-block-paragraph\">Run solr with debug<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At command line call the Solr server like this to enable the debug port<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7666 -jar start.jar<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 wp-block-paragraph\">Additional points (Q+A)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Q: You are behind a proxy?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A: use -autoproxy parameter if ant is not able to resolv the proxy configuration<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Q: Your proxy uses it own certificates to open HTTPS Connections?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9W9h9-2p","jetpack-related-posts":[{"id":77,"url":"https:\/\/www.rothamel.com\/index.php\/2018\/10\/27\/liferay-development-for-beginners-part-two-creation-of-a-development-environment\/","url_meta":{"origin":149,"position":0},"title":"Liferay-Development for beginners \u2013 Part two \u2013 Creation of a development environment","author":"Rolf Rothamel","date":"2018-10-27","format":false,"excerpt":"The development for the Liferay portal is quite nice by using a local develop environment with Eclipse, Mysql and Liferay. Therefore you should download the following components: Liferay (http:\/\/sourceforge.net\/projects\/lportal\/files\/Liferay%20Portal\/) Liferay Portal bundled with Tomcat Liferay Portal sources Liferay Portal Documentation Liferay Portal SDK Eclipse Eclipse Liferay IDE (downloadable via Eclipse\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/www.rothamel.com\/index.php\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":75,"url":"https:\/\/www.rothamel.com\/index.php\/2018\/10\/27\/liferay-development-for-beginners-part-one-setup-your-own-instance\/","url_meta":{"origin":149,"position":1},"title":"Liferay-Development for beginners &#8211; Part One \u2013 Setup your own instance","author":"Rolf Rothamel","date":"2018-10-27","format":false,"excerpt":"This little tutorial is written for users that are familiar with the following points, so they are not explained in detail: Working with linux (or any other OS of your choice), an editor like vi, etc. Install and configure a Mysql instance Creation of schema and assignment of user and\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/www.rothamel.com\/index.php\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":355,"url":"https:\/\/www.rothamel.com\/index.php\/2022\/11\/13\/migration-einer-linux-vms-von-vmware-workstation-zu-hyper-v\/","url_meta":{"origin":149,"position":2},"title":"Migrating a Linux VM from VMWare Workstation to Hyper-V","author":"Rolf Rothamel","date":"2022-11-13","format":false,"excerpt":"The following is a quick guide to migrating an OpenSuse Linux VMs on VMWare Workstation to Hyper-V. Preparations Create snapshot (as a backup in case something goes wrong) Remove VMWare Tools add dracut Config: \/etc\/dracut.conf.d\/00-custom.conf and add the following line. Do not forget the spaces before and after the modules!\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.rothamel.com\/index.php\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":228,"url":"https:\/\/www.rothamel.com\/index.php\/2020\/07\/17\/container-teil-2-arbeiten-mit-docker-containern\/","url_meta":{"origin":149,"position":3},"title":"Container \u2013 Part 2: Working with Docker-Containers","author":"Rolf Rothamel","date":"2020-07-17","format":false,"excerpt":"After showing the creation of an exemplary Docker container in the first part, this part of the article series now focuses on working with containers.","rel":"","context":"In &quot;Allgemein&quot;","block_context":{"text":"Allgemein","link":"https:\/\/www.rothamel.com\/index.php\/category\/allgemein\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":219,"url":"https:\/\/www.rothamel.com\/index.php\/2020\/07\/15\/docker-teil-1-tomcat-im-docker-container\/","url_meta":{"origin":149,"position":4},"title":"Container &#8211; Part 1: Tomcat im Docker-Container","author":"Rolf Rothamel","date":"2020-07-15","format":false,"excerpt":"Docker represents a pleasant possibility to create clearly defined, lightweight runtime environments (containers) and to distribute them if necessary. In the following, the creation and possible use is shown using the example of a container with Tomcat and OpenSuse.","rel":"","context":"In &quot;Allgemein&quot;","block_context":{"text":"Allgemein","link":"https:\/\/www.rothamel.com\/index.php\/category\/allgemein\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_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}]}}