I'd like to try the new edismax feature in Solr, so I downloaded the latest nightly (apache-solr-4.0-2010-07-05_08-06-42) and tried running "ant example". It fails with a missing package error. I've pasted in the output below. I tried a nightly from a couple weeks ago, and it did the same thing, as did the current svn version. Just to make sure it wasn'ta problem with my environment, I tried building Solr 1.4.1 and it worked fine. I'm running java 1.6.0_20 and ant 1.7.1. Is there anything I should be doing differently or is this something that needs to get fix in the builds? Thanks,

Nick

-----------

nick:/tmp/apache-solr-4.0-2010-07-05_08-06-42$ ant example
Buildfile: build.xml

init-forrest-entities:

dist-contrib:

init:

init-forrest-entities:

compile-lucene:

compile-solrj:
[javac] Compiling 89 source files to /tmp/apache-solr-4.0-2010-07-05_08-06-42/build/solrj [javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:19: package org.apache.lucene.util does not exist
[javac] import org.apache.lucene.util.PriorityQueue;
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:352: cannot find symbol
[javac] symbol : class PriorityQueue
[javac] location: class org.apache.solr.common.util.ConcurrentLRUCache<K,V>
[javac] private static class PQueue extends PriorityQueue {
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:319: cannot find symbol
[javac] symbol : method size()
[javac] location: class org.apache.solr.common.util.ConcurrentLRUCache.PQueue
[javac] while (queue.size() > queue.myMaxSize && queue.size() > 0) {
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:319: cannot find symbol
[javac] symbol : method size()
[javac] location: class org.apache.solr.common.util.ConcurrentLRUCache.PQueue
[javac] while (queue.size() > queue.myMaxSize && queue.size() > 0) {
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:320: cannot find symbol
[javac] symbol : method pop()
[javac] location: class org.apache.solr.common.util.ConcurrentLRUCache.PQueue
[javac] CacheEntry otherEntry = (CacheEntry) queue.pop();
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:355: non-static variable super cannot be referenced from a static context
[javac] super.initialize(maxSz);
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:355: cannot find symbol
[javac] symbol : method initialize(int)
[javac] location: class java.lang.Object
[javac] super.initialize(maxSz);
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:359: cannot find symbol
[javac] symbol : variable heap
[javac] location: class org.apache.solr.common.util.ConcurrentLRUCache.PQueue
[javac] Object[] getValues() { return heap; }
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:368: non-static method size() cannot be referenced from a static context
[javac] if (size() < myMaxSize) {
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:369: cannot find symbol
[javac] symbol : method add(java.lang.Object)
[javac] location: class org.apache.solr.common.util.ConcurrentLRUCache.PQueue
[javac] add(element);
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:371: non-static method size() cannot be referenced from a static context
[javac] } else if (size() > 0 && !lessThan(element, heap[1])) {
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:371: cannot find symbol
[javac] symbol : variable heap
[javac] location: class org.apache.solr.common.util.ConcurrentLRUCache.PQueue
[javac] } else if (size() > 0 && !lessThan(element, heap[1])) {
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:372: cannot find symbol
[javac] symbol : variable heap
[javac] location: class org.apache.solr.common.util.ConcurrentLRUCache.PQueue
[javac] Object ret = heap[1];
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:373: cannot find symbol
[javac] symbol : variable heap
[javac] location: class org.apache.solr.common.util.ConcurrentLRUCache.PQueue
[javac] heap[1] = element;
[javac] ^
[javac] /tmp/apache-solr-4.0-2010-07-05_08-06-42/src/common/org/apache/solr/common/util/ConcurrentLRUCache.java:374: cannot find symbol
[javac] symbol : method updateTop()
[javac] location: class org.apache.solr.common.util.ConcurrentLRUCache.PQueue
[javac] updateTop();
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 15 errors

BUILD FAILED
/tmp/apache-solr-4.0-2010-07-05_08-06-42/common-build.xml:441: The following error occurred while executing this line: /tmp/apache-solr-4.0-2010-07-05_08-06-42/common-build.xml:298: The following error occurred while executing this line: /tmp/apache-solr-4.0-2010-07-05_08-06-42/contrib/dataimporthandler/build.xml:88: The following error occurred while executing this line: /tmp/apache-solr-4.0-2010-07-05_08-06-42/build.xml:133: The following error occurred while executing this line: /tmp/apache-solr-4.0-2010-07-05_08-06-42/common-build.xml:238: Compile failed; see the compiler error output for details.

Total time: 2 seconds

Reply via email to