SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/P:/eclipse-Jee-2021-06/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.18.0.20210618-2246/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/P:/eclipse-Jee-2021-06/configuration/org.eclipse.osgi/6/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/P:/eclipse-Jee-2021-06/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.18.0.20210618-2246/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/P:/eclipse-Jee-2021-06/configuration/org.eclipse.osgi/6/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
[INFO] Scanning for projects...
[INFO]
[INFO] ------------< fr.xcompta
compta-springboot-j11-springboot >------------
[INFO] Building xcompta-springboot 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ xcompta-springboot-j11-springboot ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO] Copying 20 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ xcompta-springboot-j11-springboot ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ xcompta-springboot-j11-springboot ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory P:\workspaces\xCompta\xcompta-springboot-j11\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ xcompta-springboot-j11-springboot ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ xcompta-springboot-j11-springboot ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.example.demo.XcomptaSpringbootApplicationTests
13:51:21.497 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
13:51:21.505 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
13:51:21.539 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.example.demo.XcomptaSpringbootApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
13:51:21.549 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.example.demo.XcomptaSpringbootApplicationTests], using SpringBootContextLoader
13:51:21.553 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.example.demo.XcomptaSpringbootApplicationTests]: class path resource [com/example/demo/XcomptaSpringbootApplicationTests-context.xml] does not exist
13:51:21.554 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.example.demo.XcomptaSpringbootApplicationTests]: class path resource [com/example/demo/XcomptaSpringbootApplicationTestsContext.groovy] does not exist
13:51:21.555 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.example.demo.XcomptaSpringbootApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
13:51:21.556 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.example.demo.XcomptaSpringbootApplicationTests]: XcomptaSpringbootApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
13:51:21.607 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.example.demo.XcomptaSpringbootApplicationTests]
13:51:21.671 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [P:\workspaces\xCompta\xcompta-springboot-j11\target\classes\com\example\demo\XcomptaSpringbootApplication.class]
13:51:21.672 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.example.demo.XcomptaSpringbootApplication for test class com.example.demo.XcomptaSpringbootApplicationTests
13:51:21.799 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.example.demo.XcomptaSpringbootApplicationTests]: using defaults.
13:51:21.799 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
13:51:21.818 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2374d36a, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@54d18072, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@1506f20f, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@47a5b70d, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@424fd310, org.springframework.test.context.support.DirtiesContextTestExecutionListener@1a45193b, org.springframework.test.context.transaction.TransactionalTestExecutionListener@38f116f6, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@5286c33a, org.springframework.test.context.event.EventPublishingTestExecutionListener@6e6d5d29, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@5c530d1e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@6c25e6c4, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@85e6769, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@c5ee75e, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@48a12036, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@bf1ec20]
13:51:21.823 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@2eced48b testClass = XcomptaSpringbootApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@47c4ecdc testClass = XcomptaSpringbootApplicationTests, locations = '{}', classes = '{class com.example.demo.XcomptaSpringbootApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@39b43d60, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@72ef8d15, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@6ea2bc93, org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@5f77d0f9, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@420a85c4, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@1dde4cb2], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null].
13:51:21.891 [main] DEBUG org.springframework.boot.ApplicationServletEnvironment - Activating profiles []
13:51:21.895 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.5.7)
2021-11-26 13:51:22.182 INFO 8356 --- [ main] c.e.d.XcomptaSpringbootApplicationTests : Starting XcomptaSpringbootApplicationTests using Java 16.0.1 on DESKTOP-82FR04F with PID 8356 (started by Fabrice in P:\workspaces\xCompta\xcompta-springboot-j11)
2021-11-26 13:51:22.184 INFO 8356 --- [ main] c.e.d.XcomptaSpringbootApplicationTests : No active profile set, falling back to default profiles: default
2021-11-26 13:51:22.998 INFO 8356 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-11-26 13:51:23.013 INFO 8356 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 5 ms. Found 0 JPA repository interfaces.
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
2021-11-26 13:51:23.634 INFO 8356 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-11-26 13:51:23.722 INFO 8356 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.32.Final
2021-11-26 13:51:23.870 INFO 8356 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-11-26 13:51:24.077 INFO 8356 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2021-11-26 13:51:24.084 WARN 8356 --- [ main] com.zaxxer.hikari.util.DriverDataSource : Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2021-11-26 13:51:24.274 INFO 8356 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-11-26 13:51:24.287 INFO 8356 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
2021-11-26 13:51:24.593 INFO 8356 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-11-26 13:51:24.602 INFO 8356 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-11-26 13:51:24.907 WARN 8356 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2021-11-26 13:51:25.280 INFO 8356 --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
2021-11-26 13:51:25.624 INFO 8356 --- [ main] c.e.d.XcomptaSpringbootApplicationTests : Started XcomptaSpringbootApplicationTests in 3.727 seconds (JVM running for 4.868)
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.55 s - in com.example.demo.XcomptaSpringbootApplicationTests
2021-11-26 13:51:26.022 INFO 8356 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2021-11-26 13:51:26.029 INFO 8356 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2021-11-26 13:51:26.044 INFO 8356 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- asciidoctor-maven-plugin:1.5.8:process-asciidoc (generate-docs) @ xcompta-springboot-j11-springboot ---
[INFO] sourceDirectory P:\workspaces\xCompta\xcompta-springboot-j11\src\main\asciidoc does not exist. Skip processing
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ xcompta-springboot-j11-springboot ---
[INFO]
[INFO] --- spring-boot-maven-plugin:2.5.7:repackage (repackage) @ xcompta-springboot-j11-springboot ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.881 s
[INFO] Finished at: 2021-11-26T13:51:27+01:00
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "pom.xml" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.7:repackage (repackage) on project xcompta-springboot-j11-springboot: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.5.7:repackage failed: Unable to find main class -> [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/d...utionException
Partager