You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Fergus McMenemie <fe...@twig.me.uk> on 2009/02/11 12:50:28 UTC

"ant dist" of a nightly download fails

Hi,

I have been looking at the nightly downloads, trying to work
backwards through the nightly's till my code starts working 
again!

I have downloaded all the available nightly's and they all fail
to "ant dist" as follows:-


>root: ant dist
>Buildfile: build.xml
>
>init-forrest-entities:
>
>compile-solrj:
>
>make-manifest:
>
>dist-solrj:
>      [jar] Building jar: /Volumes/spare/ts/apache-solr-nightly/dist/apache-solr-solrj-1.4-dev.jar
>
>compile:
>
>dist-jar:
>      [jar] Building jar: /Volumes/spare/ts/apache-solr-nightly/dist/apache-solr-core-1.4-dev.jar
>
>dist-contrib:
>
>init:
>
>init-forrest-entities:
>
>compile-solrj:
>
>compile:
>
>make-manifest:
>
>compile:
>
>build:
>      [jar] Building jar: /Volumes/spare/ts/apache-solr-nightly/contrib/dataimporthandler/target/apache-solr-dataimporthandler-1.4-dev.jar
>
>dist:
>     [copy] Copying 2 files to /Volumes/spare/ts/apache-solr-nightly/build/web
>    [mkdir] Created dir: /Volumes/spare/ts/apache-solr-nightly/build/web/WEB-INF/lib
>     [copy] Copying 1 file to /Volumes/spare/ts/apache-solr-nightly/build/web/WEB-INF/lib
>     [copy] Copying 1 file to /Volumes/spare/ts/apache-solr-nightly/dist
>
>init:
>
>init-forrest-entities:
>
>compile-solrj:
>
>compile:
>
>make-manifest:
>
>compile:
>
>build:
>      [jar] Building jar: /Volumes/spare/ts/apache-solr-nightly/contrib/extraction/build/apache-solr-cell-1.4-dev.jar
>
>dist:
>     [copy] Copying 1 file to /Volumes/spare/ts/apache-solr-nightly/dist
>
>clean:
>   [delete] Deleting directory /Volumes/spare/ts/apache-solr-nightly/contrib/javascript/dist
>
>create-dist-folder:
>    [mkdir] Created dir: /Volumes/spare/ts/apache-solr-nightly/contrib/javascript/dist
>
>concat:
>
>docs:
>    [mkdir] Created dir: /Volumes/spare/ts/apache-solr-nightly/contrib/javascript/dist/doc
>     [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/tools/shell/Main
>     [java] 	at JsRun.main(Unknown Source)
>
>BUILD FAILED
>/Volumes/spare/ts/apache-solr-nightly/common-build.xml:338: The following error occurred while executing this line:
>/Volumes/spare/ts/apache-solr-nightly/common-build.xml:215: The following error occurred while executing this line:
>/Volumes/spare/ts/apache-solr-nightly/contrib/javascript/build.xml:74: Java returned: 1
>
>Total time: 3 seconds
>root: 

Performing "ant test" is fine. Removing the javascript contrib directory
allows the "ant dist" to complete and I have a usable war file. However
I suspect this may not represent best practise; however "ant test" is still
fine. 


What does removal of the this contrib function loose me? I was wondering if
it went with the DIH ScriptTransformer?
 
Regards Fergus.

-- 

===============================================================
Fergus McMenemie               Email:fergus@twig.me.uk
Techmore Ltd                   Phone:(UK) 07721 376021

Unix/Mac/Intranets             Analyst Programmer
===============================================================