Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails mvn install spring-boot:run with Test errors #5

Closed
v-andrew opened this issue Sep 29, 2020 · 2 comments
Closed

Fails mvn install spring-boot:run with Test errors #5

v-andrew opened this issue Sep 29, 2020 · 2 comments

Comments

@v-andrew
Copy link

v-andrew commented Sep 29, 2020

I cloned app and tried to build
mvn install

It fails

  SpringHypermediaApiApplicationTests.contextLoads » IllegalState Failed to load...
  BookRepositoryTest.persisting » IllegalState Failed to load ApplicationContext

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

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.915 s
[INFO] Finished at: 2020-09-28T22:20:44-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project spring-hypermedia-api: There are test failures.
[ERROR]
[ERROR] Please refer to D:\spring\Baeldung\spring-hypermedia-api\target\surefire-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.
[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
@lor6
Copy link
Contributor

lor6 commented Nov 11, 2020

Hi @v-andrew I'm not able to reproduce the issue.

Could you post a longer stacktrace with the error?

Thanks.

@v-andrew
Copy link
Author

@lor6 Oh, sorry.
I resolved the issue.

Build only works with Java 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants