Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Done
-
None
Description
IDEA test runner puts all of the different versions of the same artifact in the test classpath. Apparently, if version in the versions file is lower than in some transitive dependency, IDEA adds both versions to the libraries list and puts them on the classpath, leading to all sorts of problems.
One example of this is running org.apache.ignite.internal.cli.commands.ItClusterCommandTest#initClusterWithNodesOfDifferentRoles from IDEA leading to the failure due to the exception:
Caused by: java.nio.file.FileSystemAlreadyExistsException at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:102) at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:337) at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:286) at io.micronaut.core.io.IOUtils.eachFile(IOUtils.java:88) at io.micronaut.core.io.service.SoftServiceLoader.computeServiceTypeNames(SoftServiceLoader.java:277) at io.micronaut.core.io.service.SoftServiceLoader.access$1100(SoftServiceLoader.java:68) at io.micronaut.core.io.service.SoftServiceLoader$MicronautMetaServicesLoader.compute(SoftServiceLoader.java:565) at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:189) ... 5 more
Let's update micronaut and netty versions to upper common version.
Attachments
Issue Links
- links to