import solr source code to eclipse
1. # tar xvf solr-4.10.1-src.tgz
2. #cd solr-4.10.1
3. #ant eclipse (must install ant maven ivy . such as by #apt-get install ivy)
4. import project from eclipse
there is a error when run #ant eclipse
download activation-1.1.1.jar(javadoc)
because ivy will download this jar's javadoc, but the repository has no this jar. So we should solve this error by
1. find the configure file that contain 'activation' by
#find . |xargs grep 'activation' -sl
2. check these files to find out
solr/contrib/dataimporthandler-extras/ivy.xml
3. edit the above file
<dependency org="javax.activation" name="activation" rev="${/javax.activation/activation}" conf="compile->*"/>
======>
<dependency org="javax.activation" name="activation" rev="${/javax.activation/activation}" conf="compile->default"/>
this will not download activation's javadoc jar
4. rerun #ant eclipse
everything is OK
--------------------------------
Ubuntu eclipse can't add tomcat7 solution:
step 1: go to Help Menu
step 2: select Install New Software
step 3: in the opeing window there is 1 drop down "work with" select your eclipse verstion like "kepler"
step 4: then are displayed many groups in down box expand "Web, XML, Java EE and OSGi Enterprise Development" this group
step 5: then select "JST Server Adapters Extensions"
step 6: next
step 7: next
setp 8: select accept
step 9: install
step 10: restart eclipse
step 11: go to File -> New -> Other -> Server -> Server -> there are tomcat 7 is available and select
Step 12:
cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
rm org.eclipse.jst.server.tomcat.core.prefs
rm org.eclipse.wst.server.core.prefs
cd /usr/share/tomcat7
sudo service tomcat7 stop
sudo update-rc.d tomcat7 disable
sudo ln -s /var/lib/tomcat7/conf conf
sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
sudo ln -s /var/log/tomcat7 log
sudo chmod -R 777 /usr/share/tomcat7/conf
sudo ln -s /var/lib/tomcat7/common common
sudo ln -s /var/lib/tomcat7/server server
sudo ln -s /var/lib/tomcat7/shared shared
http://blog.csdn.net/yeshenrenjin/article/details/8570048
http://blog.csdn.net/xuefeng0707/article/details/7769308
https://lucidworks.com/blog/setting-up-apache-solr-in-eclipse/
run solr in eclipse
http://www.cnblogs.com/wrt2010/archive/2012/11/13/2767556.html