-
Notifications
You must be signed in to change notification settings - Fork 2
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
Executing tests (with maven clean install) on MacOs will generate JNA related Exception (java.lang.NoSuchMethodError: com/sun/jna/Memory.close()) #124
Comments
Workaround for executing integration tests is to add at least
|
We need to discover who is bringing in the 5.8.0 version of jna |
@mcollovati Oh I had the same problem, based on the gradle dependency output I would say this is based on the quarkus bom
https://repo1.maven.org/maven2/io/quarkus/quarkus-bom/3.0.3.Final/quarkus-bom-3.0.3.Final.pom |
Good catch @ErrorProne, thanks! Maybe:
|
Note for gradle users, this should fix it:
|
In a maven project, moving the vaadin bom declaration before the quarkus bom, should fix the issue |
For mac it is important to set the correct JNA version. In maven this can be done be using a specific order for the bom imports vaadin/quarkus#124
Executing tests with:
mvn clean install
(independent of adding the Vaadin version like:-Dvaadin.flow.version=23.3-SNAPSHOT
)This will generate this exception:
It is not happening on Windows, but on Mac, because it has different code execution chain and eventually this will fail:
Potential root case is the transitive maven dependency handling (
5.8.0
is used rather than5.13.0
)The text was updated successfully, but these errors were encountered: