Spring - vasanthsumanath/MyWIKI GitHub Wiki

Error

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.4.RELEASE:repackage (repackage) on project : Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.2.4.RELEASE:repackage failed: Unable to find main class -> [Help 1] [ERROR]

Fix

In the parent POM add the tag into the spring-boot-maven-plugin

			<configuration>
				<skip>true</skip>
			</configuration>

Error

Basic info Spring Boot Version 2.3.1 Java Version 11.

2020-06-14 21:15:35.370 ERROR 9291 --- [ main] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'org.apache.cxf.spring.boot.autoconfigure.CxfAutoConfiguration': Unsatisfied dependency expressed through field 'properties'; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'cxf-org.apache.cxf.spring.boot.autoconfigure.CxfProperties': Could not bind properties to 'CxfProperties' : prefix=cxf, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is javax.validation.NoProviderFoundException: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.

Fix

Add the dependency spring-boot-starter-validation

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-validation</artifactId>
	</dependency>
⚠️ **GitHub.com Fallback** ⚠️