I have imported the Spring PetClinic application but it is showing error in Jenkins. I have force updated Maven but still the problem persists. The error is as follows:-
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project spring-petclinic: Compilation failure: Compilation failure: [ERROR] /var/jenkins_home/workspace/PetClinic/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java:[21,46] cannot find symbol [ERROR] symbol: class ImportRuntimeHints [ERROR] location: package org.springframework.context.annotation [ERROR] /var/jenkins_home/workspace/PetClinic/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java:[30,2] cannot find symbol [ERROR] symbol: class ImportRuntimeHints [ERROR] /var/jenkins_home/workspace/PetClinic/src/main/java/org/springframework/samples/petclinic/PetClinicRuntimeHints.java:[19,36] package org.springframework.aot.hint does not exist [ERROR] /var/jenkins_home/workspace/PetClinic/src/main/java/org/springframework/samples/petclinic/PetClinicRuntimeHints.java:[20,36] package org.springframework.aot.hint does not exist [ERROR] /var/jenkins_home/workspace/PetClinic/src/main/java/org/springframework/samples/petclinic/PetClinicRuntimeHints.java:[22,47] cannot find symbol [ERROR] symbol: class RuntimeHintsRegistrar [ERROR] /var/jenkins_home/workspace/PetClinic/src/main/java/org/springframework/samples/petclinic/PetClinicRuntimeHints.java:[25,35] cannot find symbol [ERROR] symbol: class RuntimeHints [ERROR]
location: class org.springframework.samples.petclinic.PetClinicRuntimeHints [ERROR] /var/jenkins_home/workspace/PetClinic/src/main/java/org/springframework/samples/petclinic/PetClinicRuntimeHints.java:[24,9] method does not override or implement a method from a supertype [ERROR] -> [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/MojoFailureException`your text`
I have updated lot of plugins and versions but it doesn't seem to work pom.xml code is here https://github.com/samiksha-sahu/spring-pet-clininc.git