Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version of Java and Maven for building Anserini #445

Closed
paopao74cn opened this issue Sep 29, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@paopao74cn
Copy link
Member

commented Sep 29, 2018

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.

@paopao74cn

This comment has been minimized.

Copy link
Member Author

commented Sep 29, 2018

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)]

lintool added a commit that referenced this issue Nov 3, 2018

@Chriskamphuis

This comment has been minimized.

Copy link
Contributor

commented Nov 16, 2018

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>
@lintool

This comment has been minimized.

Copy link
Member

commented Dec 16, 2018

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

@lintool lintool closed this Dec 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.