gpt4 book ai didi

java - 无法执行目标org.apache.maven.plugins :maven-failsafe-plugin:2. 12:验证(验证)

转载 作者:行者123 更新时间:2023-12-01 18:42:45 29 4
gpt4 key购买 nike

我正在尝试在 springfuse(JavaEE 6 + Spring Framework (针对 Jetty、Tomcat、JBoss 等)) 和 maven 的帮助下构建我的 webapps 工作区,到目前为止,我设法使用 maven 创建项目并将其导入到eclipse,但是当我尝试执行 maven-install 时,我收到了一些错误,最后出现了“构建失败”通知。我有 JDK 7u9 和 eclipse juno,这是我得到的错误:

    Running ir.raysis.isirep.repository.UsersRepositoryIT
WARN o.h.s.i.ConfigContext.getLuceneMatchVersion HSEARCH000075: Configuration setting hibernate.search.lucene_version was not specified, using LUCENE_CURRENT.
WARN i.r.i.d.IdentifiableHashBuilder.hash DEVELOPER: hashCode is not safe.If you encounter this message you should take the time to carefuly review the equals/hashCode methods for: ir.raysis.isirep.domain.Users You may consider using a business key.
Hibernate:
select
nextval ('hibernate_sequence')
WARN o.h.e.j.s.SqlExceptionHelper.logExceptions SQL Error: 90036, SQLState: 90036
ERROR o.h.e.j.s.SqlExceptionHelper.logExceptions Sequence "HIBERNATE_SEQUENCE" not found; SQL statement:
select nextval ('hibernate_sequence') [90036-171]
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 8.679 sec <<< FAILURE!
Running ir.raysis.isirep.util.IntegrationSampleIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

Results :

Tests in error:
saveAndGet(ir.raysis.isirep.repository.UsersRepositoryIT): org.hibernate.exception.GenericJDBCException: could not extract ResultSet

Tests run: 2, Failures: 0, Errors: 1, Skipped: 0

[INFO]
[INFO] --- jetty-maven-plugin:8.1.10.v20130312:stop (stop-jetty) @ isirep ---
[INFO]
[INFO] --- maven-failsafe-plugin:2.12:verify (verify) @ isirep ---
[INFO] Failsafe report directory: /home/moien/isirep/target/failsafe-reports
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 58.147s
[INFO] Finished at: Mon Oct 07 17:25:11 IRST 2013
[INFO] Final Memory: 40M/369M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.12:verify (verify) on project isirep: There are test failures.
[ERROR]
[ERROR] Please refer to /home/moien/isirep/target/failsafe-reports for the individual test results.
[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.

任何有关如何解决该问题的帮助将不胜感激。谢谢

最佳答案

maven-failsafe-plugin 在您运行“mvn install/test/verify”时执行。如果您的目标只是获取可部署到应用程序服务器的 WAR 文件,您可以执行以下操作之一。

  1. 运行“mvn package”,因此测试不会运行。
  2. 运行“mvn install -DskipTests=true”。这将跳过运行测试。

但是,如果这是验证您的 Web 应用程序的基本测试,您需要确定测试失败的原因并修复它。如果需要断点调试,可以尝试“mvnDebug”。

关于java - 无法执行目标org.apache.maven.plugins :maven-failsafe-plugin:2. 12:验证(验证),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19227218/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com