Skip to content

Codeanalyzer fails in homebrew when jmods folder is not found #97

Closed

Description

@rahlk

Describe the bug

That happened when openjdk 17 was installed via homebrew. Installing it manually seems to have jmods folder set. However, even without the jmods folder, the user can run a successful mvn install.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install openjdk@17 using homebrew brew install openjdk@17
  2. Uninstall/rename sdkman temporarily (mv ~/.sdkman ~/.sdkman.bak)
  3. Run codeanalyzer java -jar /path/to/codeanalyzer-1.0.10.jar ...

Observed behavior

java.nio.file.NoSuchFileException: /opt/homebrew/opt/openjdk@17/jmods when running via codeanalyzer.

Expected behavior

Screenshots

Environment (please complete the following information):

  • OS: macOS 15.1
  • Version of Java: 17
  • Version of Maven: 3+
  • Version of Gradle: 6+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions