Skip to content

Duplicated classpath entries break tests with GraalVM 22.1+ #234

@sdeleuze

Description

@sdeleuze

It seems that at least with the Maven plugin, NBT provide duplicated classpath entries leading to issues like the one described with oracle/graal#4493 or spring-attic/spring-native#1584.

After a deeper look in the logs, and as pointed one by @olpaw, I see that the plugin pass to -imagecp both /home/seb/workspace/spring-native/samples/jdbc-tx/target/classes and /home/seb/workspace/spring-native/samples/jdbc-tx/src/main/resources leading to duplicated resources in the classpath with GraalVM 22.1 (not with previous versions including 22.0).

As a result, several Spring samples are broken.

To reproduce:

  • Clone https://github.com/spring-projects-experimental/spring-native
  • With Java 11 run ./build.sh at the root
  • cd samples/jdbc-tx
  • mvn clean test -P native works with GraalVM 22.0 and fails with GraalVM 22.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmaven-pluginRelated to Maven plugin

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions