Aha, found it - the suggester depends on both expressions and queries being 
compiled first, but expressions used to require queries, so queries wasn’t 
called out in the build file.  But expressions no longer has the queries 
dependency, so the suggester needs to call it out explicitly.

And it only fails from Solr because lucene compiles things in a different 
order, apparently.

I’ll push a fix once I’ve confirmed it works.

Alan Woodward
www.flax.co.uk


> On 9 Jan 2017, at 07:54, Uwe Schindler <[email protected]> wrote:
> 
> Hi,
> 
> there is something wrong since the last 2 Solr Artifact builds. I have no 
> idea why Lucene Artifact builds succeed - and also why tests succeed, but 
> when building Solr's Artifacts (ant prepare-release-no-sign in Solr's subdir) 
> it breaks with this compile error:
> 
> [solr] $ /home/jenkins/tools/ant/apache-ant-1.8.4/bin/ant -file build.xml 
> -Dlucene.javadoc.url=https://builds.apache.org/job/Lucene-Artifacts-trunk/javadoc/
>  -Dversion.suffix=218 prepare-release-no-sign
> Buildfile: 
> /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-6.x/solr/build.xml
> 
> Maybe some changes in dependencies that are not correctly resolved if you 
> purely run Solr's part of the build (with clean checkout).
> 
> Uwe
> 
> -----
> Uwe Schindler
> Achterdiek 19, D-28357 Bremen
> http://www.thetaphi.de
> eMail: [email protected]
> 
>> -----Original Message-----
>> From: Apache Jenkins Server [mailto:[email protected]]
>> Sent: Sunday, January 8, 2017 11:30 PM
>> To: [email protected]
>> Subject: [JENKINS] Solr-Artifacts-6.x - Build # 218 - Still Failing
>> 
>> Build: https://builds.apache.org/job/Solr-Artifacts-6.x/218/
>> 
>> No tests ran.
>> 
>> Build Log:
>> [...truncated 480 lines...]
>>    [javac] Compiling 77 source files to /x1/jenkins/jenkins-
>> slave/workspace/Solr-Artifacts-6.x/lucene/build/suggest/classes/java
>>    [javac] /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-
>> 6.x/lucene/suggest/src/java/org/apache/lucene/search/suggest/DocumentV
>> alueSourceDictionary.java:26: error: package
>> org.apache.lucene.queries.function does not exist
>>    [javac] import org.apache.lucene.queries.function.ValueSource;
>>    [javac]                                          ^
>>    [javac] /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-
>> 6.x/lucene/suggest/src/java/org/apache/lucene/search/suggest/DocumentV
>> alueSourceDictionary.java:77: error: cannot find symbol
>>    [javac]                                        ValueSource 
>> weightsValueSource, String
>> payload, String contexts) {
>>    [javac]                                        ^
>>    [javac]   symbol:   class ValueSource
>>    [javac]   location: class DocumentValueSourceDictionary
>>    [javac] /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-
>> 6.x/lucene/suggest/src/java/org/apache/lucene/search/suggest/DocumentV
>> alueSourceDictionary.java:104: error: cannot find symbol
>>    [javac]                                        ValueSource 
>> weightsValueSource, String
>> payload) {
>>    [javac]                                        ^
>>    [javac]   symbol:   class ValueSource
>>    [javac]   location: class DocumentValueSourceDictionary
>>    [javac] /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-
>> 6.x/lucene/suggest/src/java/org/apache/lucene/search/suggest/DocumentV
>> alueSourceDictionary.java:130: error: cannot find symbol
>>    [javac]                                        ValueSource 
>> weightsValueSource) {
>>    [javac]                                        ^
>>    [javac]   symbol:   class ValueSource
>>    [javac]   location: class DocumentValueSourceDictionary
>>    [javac] Note: /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-
>> 6.x/lucene/suggest/src/java/org/apache/lucene/search/suggest/jaspell/Jasp
>> ellLookup.java uses or overrides a deprecated API.
>>    [javac] Note: Recompile with -Xlint:deprecation for details.
>>    [javac] 4 errors
>> 
>> BUILD FAILED
>> /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-6.x/solr/build.xml:539:
>> The following error occurred while executing this line:
>> /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-6.x/solr/common-
>> build.xml:418: The following error occurred while executing this line:
>> /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-6.x/lucene/module-
>> build.xml:670: The following error occurred while executing this line:
>> /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-6.x/lucene/common-
>> build.xml:501: The following error occurred while executing this line:
>> /x1/jenkins/jenkins-slave/workspace/Solr-Artifacts-6.x/lucene/common-
>> build.xml:1955: Compile failed; see the compiler error output for details.
>> 
>> Total time: 31 seconds
>> Build step 'Invoke Ant' marked build as failure
>> Archiving artifacts
>> Publishing Javadoc
>> Email was triggered for: Failure - Any
>> Sending email for trigger: Failure - Any
>> 
>> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Reply via email to