8000 Version of Java and Maven for building Anserini · Issue #445 · castorini/anserini · GitHub
[go: up one dir, main page]

Skip to content

Version of Java and Maven for building Anserini #445

Closed

Description

@paopao74cn

After testing, Java(up to 8) and Maven (up to 3.5.4) will work for building Anserini. Such versions should be mentioned and added into README.md in the section of Build using Maven.

Activity

  1. paopao74cn commented on Sep 29, 2018

    @paopao74cn
    MemberAuthor

    Both Java 10 and 11 (just released on 2018-09-25) ran into the same testing error (copied below):
    Tests in error:
    io.anserini.integration.IndexerTest: file handle leaks: [FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-003/_1_Lucene50_0.tim), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-003/_1.tvd), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-001/_1_FST50_0.doc), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-003/_1_FST50_0.doc), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-001/_1.fdt), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-003/_1.nvd), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-001/_1.tvd), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-001/_1.nvd), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-003/_1_Lucene50_0.doc), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-003/_1.fdt), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-001/_1_Lucene50_0.doc), FileChannel(/private/var/folders/qg/zpdv2ll92z5d0yx5c_2fsnhw0000gp/T/io.anserini.integration.IndexerTest_3D2D001ADD1CDB8B-001/tempDir-001/_1_Lucene50_0.tim)]

  2. chriskamphuis commented on Nov 16, 2018

    @chriskamphuis
    Contributor

    At the moment Anserini will not build if you are using openjdk1.8 (on debian) due to a bug in openjdk.

    You can add the following snippet to the pom file for a small workaround:

    <plugin>
    	<groupId>org.apache.maven.plugins</groupId>
      	<artifactId>maven-surefire-plugin</artifactId>
    	<version>2.22.1</version>
    	<configuration>
    		<useSystemClassLoader>false</useSystemClassLoader>
    	</configuration>	
    </plugin>
    
  3. lintool commented on Dec 16, 2018

    @lintool
    Member

    This issue is linked to directly from the README, so no need to keep open. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0