From 6a55efec04ede9ebc93c54f892bdbc7bd3fa7d27 Mon Sep 17 00:00:00 2001 From: John Wang Date: Sun, 1 Sep 2019 21:33:22 -0700 Subject: [PATCH] Lucene 8 (#71) * upgrade lucene 8.0 * clean up --- bin/build_sample_index.sh | 4 ++-- bin/clue-remote.sh | 4 ++-- bin/clue-web.sh | 4 ++-- bin/clue.sh | 5 ++-- pom.xml | 24 +++++++++++++++++-- .../clue/util/MatchSomeDocsQuery.java | 4 ++-- 6 files changed, 33 insertions(+), 12 deletions(-) diff --git a/bin/build_sample_index.sh b/bin/build_sample_index.sh index c83f2f0..fdab45b 100755 --- a/bin/build_sample_index.sh +++ b/bin/build_sample_index.sh @@ -3,7 +3,7 @@ bin=`dirname "$0"` bin=`cd "$bin"; pwd` -lib=$bin/../target/lib +lib=$bin/../target/libs dist=$bin/../target HEAP_OPTS="-Xmx1g -Xms1g -XX:NewSize=256m" @@ -11,4 +11,4 @@ JAVA_OPTS="" MAIN_CLASS="io.dashbase.clue.test.BuildSampleIndex" -java $JAVA_OPTS $JMX_OPTS $HEAP_OPTS -cp $dist/clue-*.jar $MAIN_CLASS $bin/../src/main/resources/cars.json $@ \ No newline at end of file +java $JAVA_OPTS $JMX_OPTS $HEAP_OPTS -cp $dist/*:$lib/* $MAIN_CLASS $bin/../src/main/resources/cars.json $@ \ No newline at end of file diff --git a/bin/clue-remote.sh b/bin/clue-remote.sh index 2aec91b..6e85058 100755 --- a/bin/clue-remote.sh +++ b/bin/clue-remote.sh @@ -3,10 +3,10 @@ bin=`dirname "$0"` bin=`cd "$bin"; pwd` -lib=$bin/../target/lib +lib=$bin/../target/libs dist=$bin/../target HEAP_OPTS="-Xmx1g -Xms1g -XX:NewSize=256m" #JAVA_DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" -(cd $bin/..; java $JAVA_OPTS $JAVA_DEBUG $HEAP_OPTS -cp $dist/clue-*.jar io.dashbase.clue.client.ClueCommandClient $@) +(cd $bin/..; java $JAVA_OPTS $JAVA_DEBUG $HEAP_OPTS -cp $dist/*:$lib/* io.dashbase.clue.client.ClueCommandClient $@) diff --git a/bin/clue-web.sh b/bin/clue-web.sh index a5d9a1d..29a0786 100755 --- a/bin/clue-web.sh +++ b/bin/clue-web.sh @@ -3,10 +3,10 @@ bin=`dirname "$0"` bin=`cd "$bin"; pwd` -lib=$bin/../target/lib +lib=$bin/../target/libs dist=$bin/../target HEAP_OPTS="-Xmx1g -Xms1g -XX:NewSize=256m" #JAVA_DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" -(cd $bin/..; java $JAVA_OPTS $JAVA_DEBUG $HEAP_OPTS -cp $dist/clue-*.jar io.dashbase.clue.server.ClueWebApplication server config/clue-web.yml) +(cd $bin/..; java $JAVA_OPTS $JAVA_DEBUG $HEAP_OPTS -cp $dist/*:$lib/* io.dashbase.clue.server.ClueWebApplication server config/clue-web.yml) diff --git a/bin/clue.sh b/bin/clue.sh index 7a85534..10cbe26 100755 --- a/bin/clue.sh +++ b/bin/clue.sh @@ -3,10 +3,11 @@ bin=`dirname "$0"` bin=`cd "$bin"; pwd` -lib=$bin/../target/lib +lib=$bin/../target/libs dist=$bin/../target HEAP_OPTS="-Xmx1g -Xms1g -XX:NewSize=256m" #JAVA_DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" -(cd $bin/..; java $JAVA_OPTS $JAVA_DEBUG $HEAP_OPTS -jar $dist/clue-*.jar $@) +MAIN_CLASS="io.dashbase.clue.ClueApplication" +(cd $bin/..; java $JAVA_OPTS $JAVA_DEBUG $HEAP_OPTS -classpath $dist/*:$lib/* $MAIN_CLASS $@) diff --git a/pom.xml b/pom.xml index 2f3ee50..f4f7cf0 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ clue jar clue - 7.6.0-2.0.0 + 8.2.0-1.0.0 command line client for Apache Lucene http://github.com/javasoze/clue @@ -36,7 +36,7 @@ UTF-8 io.dashbase.clue.ClueApplication - 7.6.0 + 8.2.0 1.3.5 2.5.0 @@ -53,6 +53,26 @@ UTF-8 + + org.apache.maven.plugins + maven-dependency-plugin + 3.1.1 + + + copy-dependencies + package + + copy-dependencies + + + ${project.build.directory}/libs + false + false + true + + + +