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

Maven plugin : NativeImageJUnitLauncher not found when no junit-platform-native dependency #73

Closed
sdeleuze opened this issue Jun 24, 2021 · 1 comment · Fixed by #74
Closed
Labels
bug Something isn't working junit-support Related to JUnit Support project
Milestone

Comments

@sdeleuze
Copy link
Collaborator

sdeleuze commented Jun 24, 2021

Instead of switching to discovery mode, a Maven project that does not add junit-platform-native dependency fails hard with a Main entry point class 'org.graalvm.junit.platform.NativeImageJUnitLauncher' not found error when running mvn -Pnative test or mvn -Pnative package.

@sdeleuze sdeleuze added this to the 0.9.1 milestone Jun 24, 2021
@sdeleuze sdeleuze added the bug Something isn't working label Jun 24, 2021
@sdeleuze sdeleuze changed the title Maven plugin : wrong version for junit-platform-native Maven plugin : NativeImageJUnitLauncher not found when no junit-platform-native dependency Jun 24, 2021
@sdeleuze
Copy link
Collaborator Author

The root cause is here where we should filter on org.graalvm.buildtools not org.graalvm.nativeimage. Using a shared property could avoid such error in the future.

@sbrannen sbrannen added the junit-support Related to JUnit Support project label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working junit-support Related to JUnit Support project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants