Ich habe diesen Build-Fehlerfehler, da die Factory-Methode „dataSource“ eine Ausnahme mit der Meldung ausgelöst hat: Es Java

Java-Forum
Anonymous
 Ich habe diesen Build-Fehlerfehler, da die Factory-Methode „dataSource“ eine Ausnahme mit der Meldung ausgelöst hat: Es

Post by Anonymous »

Dies ist meine application.properties-Datei

Code: Select all

spring.application.name=service
spring.sql.init.mode=always

spring.datasource.url=jdbc:postgresql://localhost:5432/mydatabase
spring.datasource.username=myuser
spring.datasource.password=secret
Und meine pom.xml-Datei

Code: Select all

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0

org.springframework.boot
spring-boot-starter-parent
4.0.1
 

com.example
service
0.0.1-SNAPSHOT
service
Demo project for Spring Boot














25



org.springframework.boot
spring-boot-starter-actuator


org.springframework.boot
spring-boot-starter-data-jdbc


org.springframework.boot
spring-boot-starter-webmvc



org.springframework.boot
spring-boot-devtools
runtime
true


org.postgresql
postgresql
runtime


org.springframework.boot
spring-boot-starter-actuator-test
test


org.springframework.boot
spring-boot-starter-data-jdbc-test
test


org.springframework.boot
spring-boot-starter-webmvc-test
test






org.graalvm.buildtools
native-maven-plugin


org.springframework.boot
spring-boot-maven-plugin





Code: Select all

        ...  67 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.881 s [INFO] Finished at: 2026-01-11T11:42:42+05:45 [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:4.0.1:process-aot (process-aot) on project service: Process terminated with exit code: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Wenn ich ausführe, wird der obige Fehler in meinem Terminal angezeigt. Ich habe versucht, das Plugin zu entfernen, den Bereich von Laufzeit auf Kompilierung zu ändern und die Versionsnummer aus der vorherigen Stackoverflow-Frage anzugeben. Keine dieser Lösungen hat geholfen.
./mvnw -DskipTests -Pnative native:compile

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post