Ant Build on Bobo Browse doesn't work out of the box

Description

The ant command generates error when executed from the bobo browse directory because of missing files in the lib/master directory, namely

  • Kamikaze

  • it.unimi.dsi.fastutil

init:

compile:
[javac] H:\java\projects\bobo\bobo-browse\build.xml:27: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 35 source files to H:\java\projects\bobo\bobo-browse\build

[javac] H:\java\projects\bobo\bobo-browse\src\com\browseengine\bobo\facets\filter\AdaptiveFacetFilter.java:22: package com.kamikaze.docidset.impl does not exist
[javac] import com.kamikaze.docidset.impl.OrDocIdSet;
[javac] ^
[javac] H:\java\projects\bobo\bobo-browse\src\com\browseengine\bobo\sort\LuceneCustomDocComparatorSource.java:11: type org.apache.lucene.search.FieldComparator does not take parameters
[javac] private final FieldComparator<Comparable> _luceneComparator;
[javac] ^
[javac] H:\java\projects\bobo\bobo-browse\src\com\browseengine\bobo\sort\LuceneCustomDocComparatorSource.java:13: type org.apache.lucene.search.FieldComparator does not take parameters
[javac] public LuceneCustomDocComparatorSource(String fieldname,FieldComparator<Comparable> luceneComparator){
[javac] ^
[javac] H:\java\projects\bobo\bobo-browse\src\com\browseengine\bobo\sort\SortCollectorImpl.java:3: cannot find symbol
[javac] symbol : class Int2ObjectOpenHashMap
[javac] location: package it.unimi.dsi.fastutil.ints
[javac] import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
[javac] ^
[javac] H:\java\projects\bobo\bobo-browse\src\com\browseengine\bobo\sort\SortCollectorImpl.java:94: cannot find symbol
[javac] symbol : class Int2ObjectOpenHashMap
[javac] location: class com.browseengine.bobo.sort.SortCollectorImpl
[javac] private final Int2ObjectOpenHashMap<ScoreDoc> _currentValueDocMaps;
[javac] ^
[javac] H:\java\projects\bobo\bobo-browse\src\com\browseengine\bobo\facets\filter\AdaptiveFacetFilter.java:180: cannot find symbol
[javac] symbol : class OrDocIdSet
[javac] location: class com.browseengine.bobo.facets.filter.AdaptiveFacetFilter.TermListRandomAccessDocIdSet
[javac] return new OrDocIdSet(docSetList).iterator();
[javac] ^
[javac] H:\java\projects\bobo\bobo-browse\src\com\browseengine\bobo\sort\SortCollectorImpl.java:157: cannot find symbol
[javac] symbol : class Int2ObjectOpenHashMap
[javac] location: class com.browseengine.bobo.sort.SortCollectorImpl
[javac] _currentValueDocMaps = new Int2ObjectOpenHashMap<ScoreDoc>(_count);
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 7 errors

BUILD FAILED
H:\java\projects\bobo\bobo-browse\build.xml:27: Compile failed; see the compiler
error output for details.

Environment

None

Activity

Show:
John Wang
January 24, 2012, 4:24 PM

Hi Marc:

As of the last release, bobo is no longer built via ant/ivy. We are fully mavenized.

Please do mvn package instead.

Closing this for now.

-John

Marc Schipperheyn
January 24, 2012, 4:34 PM

Ok, good to hear you moved to maven. I recommend you move /bobo-browse-pom.xml to bobo-browse/pom.xml to make it actually possible to call mvn package

John Wang
January 24, 2012, 6:07 PM

Hmm... it is...
Are you looking at the right code version:

github.com/senseidb/bobo

Marc Schipperheyn
January 26, 2012, 2:12 PM

Nope. I was using git://github.com/javasoze/bobo.git
BTW, the Fastutil package is quite large: 13MB. Since you are only using a very small subset of the package: 300Kb, I would recommend creating a custom jar for this small subset. Makes ftp-ing wars a bit nicer. Just an idea.

Assignee

John Wang

Reporter

Marc Schipperheyn

Labels

None

Components

Priority

Minor
Configure