dadoonet / fscrawler

Elasticsearch File System Crawler (FS Crawler)
https://fscrawler.readthedocs.io/
Apache License 2.0
1.35k stars 300 forks source link

maven fsriver build #99

Closed sasidhar79 closed 8 years ago

sasidhar79 commented 9 years ago

Hi

I tried to build the 1.4.0 snapshot using

mvn clean install plugin --install fsriver \ --url file:target/releases/fsriver-X.X.X-SNAPSHOT.zip

instructions from your website and I am getting this error [ERROR] Failed to execute goal com.carrotsearch.randomizedtesting:junit4-maven-plugin:2.0.14:junit4 (tests) on project fsriver: Execution tests of goal com.carrotsearch.randomizedtesting:junit4-maven-plugin:2.0.14:junit4 failed: /home/sbetha/fsriver-es-1.4/target/junit4-ant-764895382365685372.xml:16: There were test failures: 5 suites, 17 tests, 1 suite-level error, 12 errors -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Please help

thank u

sasi

ilkermutlu commented 9 years ago

I'm having the same error.

When I run it with the '-e' switch, I see errors in the following manner:

Throwable #1: java.lang.UnsupportedClassVersionError: fr/pilato/elasticsearch/river/fs/unit/FsIncludesExcludesTest : Unsupported major.minor version 51.0

I'm very alien to Java but, I think this is a compatibility error.

My Java version is as follows:

java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)
ilkermutlu commented 9 years ago

Also tried with 1.7.0_72

java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)

I'm not getting the "Unsupported major.minor version 51.0" error but now I get more errors.

First one of many is:

> Throwable #1: java.lang.NoSuchFieldError: LUCENE_4_10_1
>   at org.elasticsearch.Version.<clinit>(Version.java:206)
>   at org.elasticsearch.common.io.stream.StreamOutput.<init>(StreamOutput.java:42)
>   at org.elasticsearch.common.io.stream.BytesStreamOutput.<init>(BytesStreamOutput.java:58)
>   at org.elasticsearch.common.io.stream.BytesStreamOutput.<init>(BytesStreamOutput.java:55)
>   at org.elasticsearch.common.io.stream.BytesStreamOutput.<init>(BytesStreamOutput.java:45)
>   at org.elasticsearch.common.xcontent.XContentBuilder.builder(XContentBuilder.java:77)
>   at org.elasticsearch.common.xcontent.json.JsonXContent.contentBuilder(JsonXContent.java:38)
>   at org.elasticsearch.common.xcontent.XContentFactory.contentBuilder(XContentFactory.java:122)
>   at org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder(XContentFactory.java:49)
>   at        fr.pilato.elasticsearch.river.fs.unit.FsIncludesExcludesTest.extract_from_array_and_remove_duplicates(FsIncludesExcludesTest.java:39)
rlanore commented 9 years ago

same error for me. complete surefire reports at: http://pastebin.com/ndMJUEnc

rlanore commented 9 years ago

success to build. but not tested with this diff to pom.xml

http://pastebin.com/7ypq6Dfs

jbwl commented 9 years ago

I was not able to build 1.4.0-SNAPSHOT with rlanore's changes to the pom.xml file - maven stalls at FsRiverAllParametersTest.test_multiple_rivers

dadoonet commented 8 years ago

The project has been rewritten completely and I hope this is fixing your issues. Closing but feel free to reopen if you still can't compile the project.