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

Java Startup Issues During Desktop Verification #21

Closed
tom-sheehan opened this issue Mar 20, 2024 · 1 comment · Fixed by #23
Closed

Java Startup Issues During Desktop Verification #21

tom-sheehan opened this issue Mar 20, 2024 · 1 comment · Fixed by #23

Comments

@tom-sheehan
Copy link

Having use brew to install the Testcontainer Application, the Java test process fails for up to two reasons.

Java Wrapper Not Checked In

The maven-wrapper.jar file is not checked into .mvn/wrapper. (See https://maven.apache.org/wrapper/index.html).

mvnw Will Not Start On Mac

Line endings on ./mvnw are set to CRLF, and must be set to LF on *Nix operating systems, such as the Mac.

@tom-sheehan
Copy link
Author

tom-sheehan commented Mar 20, 2024

I have a branch locally that fixes the above, but, no permissions to push a branch, so cannot create PR. The following 3 things are addressed:

  • Suggest creating .gitattributes with following content to have git enforce correct line ending per operating system:
mvnw		text eol=lf
mvnw.cmd	text eol=crlf
  • Change line endings of mvnw to LF (did this in and IDE)

  • Set local Maven installation to that specified in maven-wrapper.properties (3.8.6).
    Then re-run the wrapper command as follows:

mvn wrapper:wrapper
git add mvnw
git add .gitattributes
git add .mvn/wrapper/*

Commit to working branch, etc...

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

Successfully merging a pull request may close this issue.

1 participant