Skip to content

bug: JavaRunnerRunMain includes test with classpath #318

@avk458

Description

@avk458

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.2

Operating system/version

Ubuntu 22.04.3 LTS

Describe the bug

Failed to start the spring boot application using the JavaRunnerRunMain command because the test classes are included in the classpath

/home/ubuntu/.sdkman/candidates/java/21.0.5-tem/bin/java  -cp /home/ubuntu/projects/platform/bin/main:/home/ubuntu/projects/platform/bin/test:

Steps To Reproduce

  1. Define a spring boot integration test
  2. Define a nested configuration class that enables the in tests jpa repositories using @EnableJpaRepositories annotation

Expected Behavior

exclude the test classes or provide some configuration perhaps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions