question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Building Anserini on Windows

See original GitHub issue

I have been having trouble building anserini on a windows computer using this command: mvn clean package appassembler:assemble. It keeps throwing the following error:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  08:36 min
[INFO] Finished at: 2021-01-21T00:00:48Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project anserini: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\Owoicho\Documents\PhD Prep\PhD Stuff\anserini\target\surefire-reports for the individual test results.
[ERROR] -> [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/MojoFailureException

I have Java 11 and Maven 3.6.3 installed:

>mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\Program Files\apache-maven-3.6.3\bin\..
Java version: 11.0.10, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.10
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>java -version
java version "11.0.10" 2021-01-19 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.10+8-LTS-162)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.10+8-LTS-162, mixed mode)

What could I be doing wrong? Please help!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
edwinzhngcommented, Jan 27, 2021

Hey @paulowoicho, I get the same issue on Windows which is due to an encoding error - one workaround is to build without enabling tests by adding the following flag: -Dmaven.test.skip=true

So the full command would be: mvn clean package appassembler:assemble -Dmaven.test.skip=true

Otherwise, I recommend installing the Windows Subsystem for Linux if you can, since it makes development a lot easier

0reactions
ABDULAZIZALQATANcommented, Apr 19, 2022

Great and Big thanks for support and cooperation 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error in building CmdStanr on Windows 10 - The Stan Forums
I worked around this by downloading the latest release of cmdstan from github. I put the extracted cmdstan-2.27.0 folder where my previous cmdstan...
Read more >
Installing and Configuring — PyTerrier 0.9.1 documentation
PyTerrier is natively supported on Linux, Mac OS X and Windows. Installation¶. Installing PyTerrier is easy - it can be installed from the...
Read more >
Windows cant open .zip file in CMD - Stack Overflow
Im trying to install Elasticsearch and Kibana in my anserini folder, but the command they give to install it doesnt work.
Read more >
pyterrier - Resource | From RECIPE : Explainable Information ...
Linux or Google Colab or Windows. pip install python-terrier; You may need to set JAVA_HOME environment variable if Pyjnius cannot find your Java ......
Read more >
Untitled
Laverlochere echirolles, Technic launcher download windows, Ustanovka windows na mac ... Frederick forsyth novels made into movies, Pc doctor error message, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found