Open deniz-frick opened 3 weeks ago
It looks like the project is missing the exclusion of development only artifacts from the production build. Try adding this to the pom.xml https://github.com/vaadin/skeleton-starter-hilla-react/pull/219/files
@Artur- I had a similar fix in place but the second issue with ClientViewConfig is unaffected by this. Your change fixes the first issue though. 👍
Describe the bug
vaadin-copilot
is in the classpath even when the production classpath is used.After creating a native build as described in the vaadin docs (
mvn -Pproduction -Pnative native:compile
), missing reflection configuration and copilot being on the classpath causes an exception in SpringBridge.call.This can be prevented by excluding vaadin copilot in the production profile as per the edit in this gist. The gist also contains the logfiles with complete stacktraces.
After doing this and building another native build, this also fails with the following exception:
So hilla is missing reflection information that is essential for graalvm native builds to work as intended.
Expected-behavior
Native builds should work without issue if no external dependencies are used.
I also encountered issues with hibernate-spatial and native builds but that is of course not caused by vaadin.
Reproduction
sping-boot:run
) to check if everything is working.@Menu()
annotation toEmptyView
vaadin.expose-server-routes-to-client=true
to theapplication.properties
file to enable@Menu
System Info
JDK (output of
java --version
): java 21.0.3 2024-04-16 LTS Java(TM) SE Runtime Environment Oracle GraalVM 21.0.3+7.1 (build 21.0.3+7-LTS-jvmci-23.1-b37) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.3+7.1 (build 21.0.3+7-LTS-jvmci-23.1-b37, mixed mode, sharing)Vaadin: 24.4.0.alpha23
OS: Windows 11 Pro Version 23H2 (Build 22631.3447)