-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Labels
bugSomething isn't workingSomething isn't workingmaven-pluginRelated to Maven pluginRelated to Maven plugin
Milestone
Description
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
Labels
bugSomething isn't workingSomething isn't workingmaven-pluginRelated to Maven pluginRelated to Maven plugin