lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Furkan KAMACI <furkankam...@gmail.com>
Subject Re: How can I compile and debug Solr from source code?
Date Thu, 21 Mar 2013 23:38:30 GMT
I mean I need that:  There is a .war file shipped with Solr source code.
How can I regenerate (build my code and generate a .war file) as like that?
I will deploy it to Tomcat then?

2013/3/22 Furkan KAMACI <furkankamaci@gmail.com>

> Your mentioned suggestion is for only example application? Can I imply it
> to just pure Solr (I don't want to generate example application because my
> aim is not just debugging Solr, I want to extend it and I will debug that
> extended code)?
>
>
> 2013/3/22 Alexandre Rafalovitch <arafalov@gmail.com>
>
>> That's nice. Can we put that on a Wiki? Or as a quick screencast?
>>
>> Regards,
>>    Alex.
>>
>> Personal blog: http://blog.outerthoughts.com/
>> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
>> - Time is the quality of nature that keeps events from happening all at
>> once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)
>>
>>
>> On Thu, Mar 21, 2013 at 5:42 PM, Erik Hatcher <erik.hatcher@gmail.com
>> >wrote:
>>
>> > Here's my development/debug workflow:
>> >
>> >   - "ant idea" at the top-level to generate the IntelliJ project
>> >   - cd solr; ant example - to build the full example
>> >   - cd example; java -Xdebug
>> > -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar
>> > start.jar - to launch Jetty+Solr in debug mode
>> >   - set breakpoints in IntelliJ, set up a Remote run option
>> > (localhost:5005) in IntelliJ and debug pleasantly
>> >
>> > All the unit tests in Solr run very nicely in IntelliJ too, and for
>> tight
>> > development loops, I spend my time doing that instead of running full on
>> > Solr.
>> >
>> >         Erik
>> >
>> >
>> > On Mar 21, 2013, at 05:56 , Furkan KAMACI wrote:
>> >
>> > > I use Intellij Idea 12 and Solr 4.1 on a Centos 6.4 64 bit computer.
>> > >
>> > > I have opened Solr source code at Intellij IDEA as explained
>> > documentation.
>> > > I want to deploy Solr into Tomcat 7. When I open the project there are
>> > > configurations set previosly (I used ant idea command before I open
>> the
>> > > project) . However they are all test configurations and some of them
>> are
>> > > not passed test (this is another issue, no need to go detail at this
>> > > e-mail). I have added a Tomcat Local configuration into configurations
>> > but
>> > > I don't know which one is the main method of Solr and is there any
>> > > documentation that explains code. i.e. I want to debug a point what
>> Solr
>> > > receives from when I say -index from nutch and what Solr does?
>> > >
>> > > I tried somehing to run code (I don't think I could generate a .war
>> or an
>> > > exploded folder) an this is the error that I get:(I did't point any
>> > > artifact for edit configurations)
>> > >
>> > > Error: Exception thrown by the agent : java.net.MalformedURLException:
>> > > Local host name unknown: java.net.UnknownHostException: me.local:
>> > me.local:
>> > > Name or service not known
>> > >
>> > > (me.local is the name I set when I install Centos 6.4 on my computer)
>> > >
>> > > Any ideas how to run source code will be nice for me.
>> >
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message