Greetings to all. I'm telling you, I'm developing a project in netbeans 8.2 with java and spring (I'm new to this), I started it with start.spring.io. Look, this error appears when I run my project.
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.7.3:run (default-cli) on project almacendemo: Application finished with exit code: 1 -> [Help 1]
failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) there are test failures
I really don't know what the errors are due to, I think it's a maven version problem.
I share more details of the project so they help me.
POM
="1.0"="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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version>
<relativePath/>
</parent>
<groupId>com.matias</groupId>
<artifactId>almacendemo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>almacendemo</name>
<description>Demo de proyecto sistema de ventas para almacen</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-springsecurity5</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
APPLICATION.PROPERTIES
spring.datasource.url: jdbc:mysql:
spring.datasource.username: root
spring.datasource.password: root
spring.datasource.driver-class-name: com.mysql.cj.jdbc.Driver
spring.jpa.show-sql: true
spring.jpa.hibernate.ddl-auto: update
spring.jpa.properties.hibernate.dialect: org.hibernate.dialect.MySQL5InnoDBDialect
spring.thymeleaf.cache: false
MAVEN VERSION
https://i.stack.imgur.com/Xp6LL.jpg
MAVEN INSTALLED IN NETBEANS
https://i.stack.imgur.com/UtgRX.jpg
JDP PROYECT
https://i.stack.imgur.com/jtmIE.jpg
ENVIRONMENT VARIABLES
https://i.stack.imgur.com/lq9ZE.jpg
Thank you all for your attention!
What I have tried:
To solve this error, I read in a forum that mvn clean install must be executed in the terminal, but after doing so I got the following error (which I couldn't solve either)
failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) there are test failures