Skip to content

[BUG] Build fails with connection errors during maven tests #645

@johnjbutler

Description

@johnjbutler

Describe the bug
When building the OWASP Security Shepherd Project (Reskinned) by following the Wiki Instructions, I encounter an error with the surefire-plugin:

BUILD FAILURE
Total time: 25.698 s

Finished at: 2022-05-17T15:18:12-04:00

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project owaspSecurityShepherd: There are test failures.

[ERROR] Please refer to /Users/jackbutler/Documents/Other/OWASP/GuardsquareSecShepCTF-dev/target/surefire-reports for the individual test results.

[ERROR] -> [Help 1]
[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] 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

To Reproduce
Steps to reproduce the behavior:

  1. Fork OWASP Security Shepherd from GitHub
  2. Clone your own repo
  3. Open it, modify the CSS as you wish
  4. run 'mvn clean install' to install the pom.xml file
  5. See the error (above) related to surefire-plugin.

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 **

  • MacBook Air (Retina, 13-inch, 2019)
  • 1.6 GHz Dual-Core Intel Core i5
  • 16 GB 2133 MHz LPDDR3
  • Browser [chrome]

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

  • Updating the surefire plugin to latest versions 3.0.0-M1 and 3.0.0-M6 in the pom.xml and it did nothing.

Screenshots
Screen Shot 2022-05-17 at 3 35 42 PM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions