We are keeping our Solr configurations together with the according war file within an Eclipse project. I will refer to this project as your project here
. That way we keep everything together in one place
- the war file
- the index
- the configurations
What you need to do is
1) Create an empty tomcat server within eclipse
2) Add -Dsolr.solr.home=${resource_loc:/<your project here>/solr/home}
to the VM arguments of that tomcat
3) Add the solr war file as <Context>
to the server.xml of that tomcat