-
Notifications
You must be signed in to change notification settings - Fork 462
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
[BUG] Build fails with connection errors during maven tests #645
Comments
Hi @johnjbutler it looks like the problem is the version of Java installed. The project needs Java 8 see #595 (comment) or else it'll fail. |
@ismisepaul Boom! Easy enough to fix then. Do you know which distribution (Zulu, Temurin, Semuru, ...) For ease, I am using a tool called SDKMAN: And these are the java versions available:
|
Here's what I'm using (zulu) but it shouldn't matter
Also be aware there is a problem updating surefire see #644 |
Got it! So @ismisepaul , just to confirm (may also be helpful any other viewers) the solution here is as follows:
For any onlookers, I will verify all of this - and I will update to confirm my successes here. :) |
TL;DR
Long versionLooking at your screenshot it looks like a communication exception when trying to connect to the db. You need to have a database running for the tests to run. You can either install
There is a file that get created dynamically during the test phase of maven called
.env file
Be sure to change the follow variables in the
|
Also if you just want to build the war without running tests use |
Feel free to reopen if this wasn't answered |
Describe the bug
When building the OWASP Security Shepherd Project (Reskinned) by following the Wiki Instructions, I encounter an error with the surefire-plugin:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect it to build, as per the How to Reskin Shepherd Wiki instructions
I would expect the instructions to work as explained.
Also, the [Help1] link to this website:
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Is useless. So I would suggest adding a more relevant error in this case.
**Desktop **
Further Information:
mvn
version [Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0)]java
version:openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
I tried the following
Screenshots
Additional context
The instructions to re-skin, when followed, should work. As they stand, they don't. If there is something I am missing (seasoned solutions engineer) then please add that context to the instructions. This is a great OSP. We should improve the docs.
The text was updated successfully, but these errors were encountered: