PulsarRPAPro icon indicating copy to clipboard operation
PulsarRPAPro copied to clipboard

如何解决mvn构建的错误

Open HaSaKiYasuooo opened this issue 1 year ago • 1 comments

我按照说明配置相关文件,构建的时候出现错误。 image image

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::               (v2.5.15)

10:15:29.911 [main] INFO  a.p.e.s.a.RepositoryTests - Starting RepositoryTests using Java 17.0.9 on DESKTOP-KHOHPBB with PID 27048 (started by L in C:\Users\L\Desktop\git\exotic\exotic-services)
10:15:29.911 [main] INFO  a.p.e.s.a.RepositoryTests - No active profile set, falling back to 1 default profile: "default"
10:15:30.073 [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data JPA repositories in DEFAULT mode.
10:15:30.092 [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 18 ms. Found 5 JPA repository interfaces.
10:15:30.194 [main] INFO  c.z.h.HikariDataSource - HikariPool-2 - Starting...
10:15:30.195 [main] INFO  c.z.h.HikariDataSource - HikariPool-2 - Start completed.
10:15:30.204 [main] INFO  o.h.j.i.u.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
10:15:30.205 [main] DEBUG o.h.c.i.RegionFactoryInitiator - Cannot default RegionFactory based on registered strategies as `[]` RegionFactory strategies were registered
10:15:30.205 [main] DEBUG o.h.c.i.RegionFactoryInitiator - Cache region factory : org.hibernate.cache.internal.NoCachingRegionFactory
10:15:30.208 [main] INFO  o.h.d.Dialect - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
10:15:30.298 [main] INFO  o.h.e.t.j.p.i.JtaPlatformInitiator - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
10:15:30.298 [main] INFO  o.s.o.j.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'default'
10:15:30.310 [main] INFO  a.p.e.s.a.ExoticApplication$$EnhancerBySpringCGLIB$$b068a25a - Database url: null
10:15:30.639 [main] WARN  o.s.b.a.o.j.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
10:15:30.817 [main] INFO  o.s.b.a.w.s.WelcomePageHandlerMapping - Adding welcome page: class path resource [static/index.html]
10:15:31.040 [main] INFO  o.s.b.a.e.w.EndpointLinksResolver - Exposing 1 endpoint(s) beneath base path '/actuator'
10:15:31.064 [main] INFO  a.p.e.s.a.RepositoryTests - Started RepositoryTests in 1.168 seconds (JVM running for 8.322)
ai.platon.exotic.services.api.entity.SysProp@3f2cc8ab
Wed Dec 06 10:15:31 GMT+08:00 2023
[]
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.499 s - in ai.platon.exotic.services.api.RepositoryTests
[INFO] Running ai.platon.exotic.services.common.TestCases
1970-01-01T08:00
2023-12-06T10:15:31
GMT+08:00
2200-01-01T08:00
2023-12-06T02:15:31.379336Z
100..100
100
0 0 * * * ?
a_good_name
a_good_name
[ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.027 s <<< FAILURE! - in ai.platon.exotic.services.common.TestCases
[ERROR] testObjectId  Time elapsed: 0.007 s  <<< FAILURE!
org.junit.ComparisonFailure: expected:<Thu Jun 02 20:46:04 [CST] 2022> but was:<Thu Jun 02 20:46:04 [GMT+08:00] 2022>
        at ai.platon.exotic.services.common.TestCases.testObjectId(TestCases.kt:27)

10:15:31.428 [utdownHook] INFO  o.s.o.j.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default'
10:15:31.429 [utdownHook] INFO  o.h.t.s.i.SchemaDropperImpl$DelayedDropActionImpl - HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
10:15:31.435 [utdownHook] INFO  c.z.h.HikariDataSource - HikariPool-1 - Shutdown initiated...
10:15:31.435 [utdownHook] INFO  c.z.h.HikariDataSource - HikariPool-1 - Shutdown completed.
10:15:31.439 [utdownHook] INFO  o.s.o.j.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default'
10:15:31.439 [utdownHook] INFO  o.h.t.s.i.SchemaDropperImpl$DelayedDropActionImpl - HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
10:15:31.441 [utdownHook] INFO  c.z.h.HikariDataSource - HikariPool-2 - Shutdown initiated...
10:15:31.442 [utdownHook] INFO  c.z.h.HikariDataSource - HikariPool-2 - Shutdown completed.
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   TestCases.testObjectId:27 expected:<Thu Jun 02 20:46:04 [CST] 2022> but was:<Thu Jun 02 20:46:04 [GMT+08:00] 2022>
[INFO]
[ERROR] Tests run: 11, Failures: 1, Errors: 0, Skipped: 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Exotic 1.12.1-SNAPSHOT:
[INFO]
[INFO] Exotic ............................................. SUCCESS [  0.399 s]
[INFO] Exotic Driver ...................................... SUCCESS [ 10.083 s]
[INFO] Exotic Services .................................... FAILURE [ 13.630 s]
[INFO] Exotic Server ...................................... SKIPPED
[INFO] Exotic Standalone .................................. SKIPPED
[INFO] Exotic App ......................................... SKIPPED
[INFO] Exotic Examples .................................... SKIPPED
[INFO] Exotic ML Examples ................................. SKIPPED
[INFO] Exotic OCR Examples ................................ SKIPPED
[INFO] Exotic PERF Examples ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  24.346 s
[INFO] Finished at: 2023-12-06T10:15:32+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project exotic-services: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\L\Desktop\git\exotic\exotic-services\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :exotic-services

HaSaKiYasuooo avatar Dec 06 '23 02:12 HaSaKiYasuooo