I had a problem with the "ant eclipse" answer - it was unable to resolve
"javax.activation" for the Javadoc.  Updating
solr/contrib/dataimporthandler-extras/ivy.xml
as follows did the trick for me:

-  <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"/>

What I'm trying to do is to construct a failing Unit test for something
that I think is a bug.   But the first thing is to be able to run tests,
probably in eclipse, but the command-line might be good enough although not
ideal.


On Tue, Oct 14, 2014 at 10:38 AM, Erick Erickson <erickerick...@gmail.com>
wrote:

> I do exactly what Anurag mentioned, but _only_ when what
> I want to debug is, for some reason, not accessible via unit
> tests. It's very easy to do.
>
> It's usually much faster though to use unit tests, which you
> should be able to run from eclipse without starting a server
> at all. In IntelliJ, you just ctrl-click on the file and the menu
> gives you a choice of running or debugging the unit test, I'm
> sure Eclipse does something similar.
>
> There are zillions of units to choose from, and for new development
> it's a Good Thing to write the unit test first...
>
> Good luck!
> Erick
>
> On Tue, Oct 14, 2014 at 1:37 AM, Anurag Sharma <anura...@gmail.com> wrote:
> > Another alternative is launch the jetty server from outside and attach it
> > remotely from eclipse.
> >
> > java -Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7666
> > -jar start.jar
> > The above command waits until the application attach succeed.
> >
> >
> > On Tue, Oct 14, 2014 at 12:56 PM, Rajani Maski <rajinima...@gmail.com>
> > wrote:
> >
> >> Configure eclipse with Jetty plugin. Create a Solr folder under your
> >> Solr-Java-Project and Run the project [Run as] on Jetty Server.
> >>
> >> This blog[1] may help you to configure Solr within eclipse.
> >>
> >>
> >> [1]
> >>
> http://hokiesuns.blogspot.in/2010/01/setting-up-apache-solr-in-eclipse.html
> >>
> >> On Tue, Oct 14, 2014 at 12:06 PM, Ali Nazemian <alinazem...@gmail.com>
> >> wrote:
> >>
> >> > Thank you very much for your guides but how can I run solr server
> inside
> >> > eclipse?
> >> > Best regards.
> >> >
> >> > On Mon, Oct 13, 2014 at 8:02 PM, Rajani Maski <rajinima...@gmail.com>
> >> > wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > The best tutorial for setting up Solr[solr 4.7] in
> eclipse/intellij  is
> >> > > documented in Solr In Action book, Apendix A, *Working with the Solr
> >> > > codebase*
> >> > >
> >> > >
> >> > > On Mon, Oct 13, 2014 at 6:45 AM, Tomás Fernández Löbbe <
> >> > > tomasflo...@gmail.com> wrote:
> >> > >
> >> > > > The way I do this:
> >> > > > From a terminal:
> >> > > > svn checkout https://svn.apache.org/repos/asf/lucene/dev/trunk/
> >> > > > lucene-solr-trunk
> >> > > > cd lucene-solr-trunk
> >> > > > ant eclipse
> >> > > >
> >> > > > ... And then, from your Eclipse "import existing java project",
> and
> >> > > select
> >> > > > the directory where you placed lucene-solr-trunk
> >> > > >
> >> > > > On Sun, Oct 12, 2014 at 7:09 AM, Ali Nazemian <
> alinazem...@gmail.com
> >> >
> >> > > > wrote:
> >> > > >
> >> > > > > Hi,
> >> > > > > I am going to import solr source code to eclipse for some
> >> development
> >> > > > > purpose. Unfortunately every tutorial that I found for this
> purpose
> >> > is
> >> > > > > outdated and did not work. So would you please give me some hint
> >> > about
> >> > > > how
> >> > > > > can I import solr source code to eclipse?
> >> > > > > Thank you very much.
> >> > > > >
> >> > > > > --
> >> > > > > A.Nazemian
> >> > > > >
> >> > > >
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > A.Nazemian
> >> >
> >>
>

Reply via email to