+ java -version
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode, sharing)
+ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] --------< co.edu.udistrital.mdp:MP_202510_G81_E5_CarMotor_Back >--------
[INFO] Building MP_202510_G81_E5_CarMotor_Back 0.0.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.3.2:clean (default-clean) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO]
[INFO] --- jacoco:0.8.11:prepare-agent (jacoco-initialize) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/home/cecaduser/workspace/MP_202510_G81_E5_CarMotor_Back/target/jacoco.exec
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 0 resource from src/main/resources to target/classes
[INFO]
[INFO] --- compiler:3.11.0:compile (default-compile) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 22 source files with javac [debug release 21] to target/classes
[INFO] Annotation processing is enabled because one or more processors were found
on the class path. A future release of javac may disable annotation processing
unless at least one processor is specified by name (-processor), or a search
path is specified (--processor-path, --processor-module-path), or annotation
processing is enabled explicitly (-proc:only, -proc:full).
Use -Xlint:-options to suppress this message.
Use -proc:none to disable annotation processing.
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO] skip non existing resourceDirectory /home/cecaduser/workspace/MP_202510_G81_E5_CarMotor_Back/src/test/resources
[INFO]
[INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO] Changes detected - recompiling the module! :dependency
[INFO]
[INFO] --- surefire:2.22.1:test (default-test) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO] Building jar: /home/cecaduser/workspace/MP_202510_G81_E5_CarMotor_Back/target/MP_202510_G81_E5_CarMotor_Back-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot:3.2.3:repackage (repackage) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO] Replacing main artifact /home/cecaduser/workspace/MP_202510_G81_E5_CarMotor_Back/target/MP_202510_G81_E5_CarMotor_Back-0.0.1-SNAPSHOT.jar with repackaged archive, adding nested dependencies in BOOT-INF/.
[INFO] The original artifact has been renamed to /home/cecaduser/workspace/MP_202510_G81_E5_CarMotor_Back/target/MP_202510_G81_E5_CarMotor_Back-0.0.1-SNAPSHOT.jar.original
[INFO]
[INFO] --- jacoco:0.8.11:report (jacoco-site) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- spring-boot:3.2.3:start (pre-integration-test) @ MP_202510_G81_E5_CarMotor_Back ---
[INFO] Attaching agents: []
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.2.3)
2025-04-23T13:11:43.657Z INFO 90 --- [ main] c.e.u.mdp.carmotor.MainApplication : Starting MainApplication using Java 21.0.4 with PID 90 (/home/cecaduser/workspace/MP_202510_G81_E5_CarMotor_Back/target/classes started by root in /home/cecaduser/workspace/MP_202510_G81_E5_CarMotor_Back)
2025-04-23T13:11:43.660Z INFO 90 --- [ main] c.e.u.mdp.carmotor.MainApplication : The following 1 profile is active: "integration-tests"
2025-04-23T13:11:44.623Z INFO 90 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2025-04-23T13:11:44.693Z INFO 90 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 62 ms. Found 6 JPA repository interfaces.
2025-04-23T13:11:44.848Z WARN 90 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: java.lang.NoClassDefFoundError: javax/persistence/EntityManagerFactory
2025-04-23T13:11:44.864Z INFO 90 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-04-23T13:11:44.882Z ERROR 90 --- [ main] o.s.boot.SpringApplication : Application run failed
java.lang.NoClassDefFoundError: javax/persistence/EntityManagerFactory
at org.springframework.data.jpa.util.BeanDefinitionUtils.<clinit>(BeanDefinitionUtils.java:56) ~[spring-data-jpa-2.1.10.RELEASE.jar:2.1.10.RELEASE]
at org.springframework.data.jpa.repository.support.EntityManagerBeanDefinitionRegistrarPostProcessor.postProcessBeanFactory(EntityManagerBeanDefinitionRegistrarPostProcessor.java:71) ~[spring-data-jpa-2.1.10.RELEASE.jar:2.1.10.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:363) ~[spring-context-6.1.4.jar:6.1.4]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:197) ~[spring-context-6.1.4.jar:6.1.4]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:788) ~[spring-context-6.1.4.jar:6.1.4]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:606) ~[spring-context-6.1.4.jar:6.1.4]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.2.3.jar:3.2.3]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) ~[spring-boot-3.2.3.jar:3.2.3]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456) ~[spring-boot-3.2.3.jar:3.2.3]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:334) ~[spring-boot-3.2.3.jar:3.2.3]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1354) ~[spring-boot-3.2.3.jar:3.2.3]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343) ~[spring-boot-3.2.3.jar:3.2.3]
at co.edu.udistrital.mdp.carmotor.MainApplication.main(MainApplication.java:10) ~[classes/:na]
Caused by: java.lang.ClassNotFoundException: javax.persistence.EntityManagerFactory
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[na:na]
... 13 common frames omitted
Exception in thread "main" java.lang.IllegalStateException: java.lang.NoClassDefFoundError: javax/persistence/EntityManagerFactory
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:825)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:344)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1354)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343)
at co.edu.udistrital.mdp.carmotor.MainApplication.main(MainApplication.java:10)
Caused by: java.lang.NoClassDefFoundError: javax/persistence/EntityManagerFactory
at org.springframework.data.jpa.util.BeanDefinitionUtils.<clinit>(BeanDefinitionUtils.java:56)
at org.springframework.data.jpa.repository.support.EntityManagerBeanDefinitionRegistrarPostProcessor.postProcessBeanFactory(EntityManagerBeanDefinitionRegistrarPostProcessor.java:71)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:363)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:197)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:788)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:606)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:334)
... 3 more
Caused by: java.lang.ClassNotFoundException: javax.persistence.EntityManagerFactory
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
... 13 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.638 s
[INFO] Finished at: 2025-04-23T13:11:45Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.2.3:start (pre-integration-test) on project MP_202510_G81_E5_CarMotor_Back: Failed to connect to MBean server at port 9001: Could not invoke shutdown operation: Connection refused to host: 127.0.0.1; nested exception is:
[ERROR] java.net.ConnectException: Connection refused
[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/MojoExecutionException