[ 
https://issues.apache.org/jira/browse/SOLR-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885727#action_12885727
 ] 

Hoss Man commented on SOLR-1989:
--------------------------------

My suggested way of dealing with this...

* all of the relevant classpaths should be fixed to include lucene-libs when 
compiling solr source
* two new (overridable) system properties should be added for locating the 
"modules.base.dir" and "lucene.base.dir".  These should default to "../modules" 
and "../lucene" respectively
* a new (overridable) system property "build.lucene.dependencies" should be 
added, which defaults to "true" if "${modules.base.dir}" and 
"${lucene.base.dir}" both exist and are readble.
* if "${build.lucene.dependencies}" is false, and the lucene-libs dir is empty 
(or non-existent) the "compile-lucene" target should fail with a helpful error 
message saying that the neccessary lucene libraries can't be found, and point 
to a wiki with more info on how to build Solr.  (if 
"${build.lucene.dependencies}" is true, "compile-lucene" should continue to 
work as it currently does)

If the image i have in my head is correct, that should result in people who 
check out "dev/trunk" having the same experience they have now -- compilation 
at the top level, or within solr, will result in everything being re-compiled 
as needed.  It should also result in people who only download the solr 
artifacts (and nothing else) being able to recompile solr using the jars in 
lucene-libs dir.  The added new feature is that people who download solr (or 
checkout just dev/trunk/solr) will be ableto set system properties as needed to 
recompile solr against whatever version of dev/\*/modules and dev/\*/lucene 
they want.

> Re-Compilation of source needs to be possible in release artifacts
> ------------------------------------------------------------------
>
>                 Key: SOLR-1989
>                 URL: https://issues.apache.org/jira/browse/SOLR-1989
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>             Fix For: 3.1, 4.0
>
>
> Users who download Solr 3.1 or 4.0 should be able to recompile the source - 
> at the present moment, this is not possible with nightly builds because of 
> assumptions about compiling (and compiling against) .../modules and ../lucene 
> -- even though the jars are included in the "lucene-libs" directory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to