Open abhijeeta94 opened 6 months ago
Any comments for the Issue?
I had the same problem, but I used this command and it worked for me
mvn native:compile -Pnative
pom
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>0.10.1</version>
<configuration>
<skip>false</skip>
<verbose>true</verbose>
<quickBuild>true</quickBuild>
<buildArgs>
-H:-CheckToolchain
--no-fallback
--initialize-at-build-time=ch.qos.logback
--initialize-at-build-time=org.slf4j
--enable-preview
</buildArgs>
<mainClass>xxx.xxx.xxxApplication</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>xxx.xxx.xxxApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>
Please refer below pom.xml file which I am using <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
The logack.xml file <?xml version="1.0" encoding="UTF-8"?>
The application.properties file contains only server.port=9090
The Application. java is the main claas
command I am using to create exe - mvn clean package -Pnative
The screenshot of exe generated
The screenshot of exe running file
Expectation : Server is keep on running on port 9090 Can someone please help me here.