Skip to content

feature: lemminx-maven #418

Open
Open

Description

@drewma2k

Did you check the docs?

  • I have read all the docs

Is your feature request related to a problem? Please describe.

  • Difficulty in auto-installing lemminx-maven
  • autocomplete for dependencies in pom.xml files in general

Describe the solution you'd like

lemminx-maven a plugin for the xml LSP lemminx that adds features for autocomplete etc. in pom.xml files. However, it is not available through Mason. I thought it might be a good idea to (optionally) provide it through this plugin, perhaps through the nvim-java mason registry, which could replace the standard version of lemminx with this patched version. Is there any interest or is this out of scope?

Describe alternatives you've considered

  • downloading, compiling, and adding lemminx-maven to the system path manually
  • writing a standalone lua module to accomplish the above
  • using a local registry (only intended for local testing, needs to be installed every time neovim is started)
  • similar capabilities are provided through vscode-maven as a jdtls extension but would require writing additional client logic

Additional context

No response

Activity

  1. logrusx commented on Aug 26, 2025

    @logrusx
    Collaborator

    Have you tried requesting it in Mason repo?

  2. sergii-dudar commented on Nov 24, 2025

    @sergii-dudar

    I don't know why you need similar functionality in nvim-java, it's just extension to non native (jar based) lemminx ls.
    In mason registry only native lemminx, it's not extendable, you need jar based (non native) one. I don't believe that mason will accept both java native and non native version of lemminx ls into main stream.

    Here is how it's done in my config (link to my answer in lemminx-maven discussion about nvim config) eclipse-lemminx/lemminx-maven#588 (comment)

  3. s1n7ax commented on Nov 25, 2025

    @s1n7ax
    Member

    BTW, we are dropping support for Mason.nvim due to amount of annoying issues we are getting. So, in the next release, we are dropping nvim-java/mason-registry.

    Don't understand what @sergii-dudar said.

    BUT

    I would like to add this as long as,

    • There is no any other neovim plugin that does this
    • We don't have to build the jar from source

    eclipse-lemminx/lemminx-maven#588 (comment)

    This looks pretty simple, except jar has to be built from source.
    https://github.com/sergii-dudar/dotfiles/blob/master/nvim/.config/nvim/lua/plugins/editor/java/lemminx-ls.lua

  4. sergii-dudar commented on Nov 26, 2025

    @sergii-dudar

    @s1n7ax I mean, that mason lemminx version, it's java native binary (by graalvm to be more accurate), and it can't be extended with maven extension (or any jar based extensions).
    you can check it in vscode binaries to lemminx, or by explanation in this thread:

    eclipse-lemminx/lemminx-maven#588 (comment)

    it's the main reason why I had to build jars from sources by my self manually to be able to provide maven jars, and to successfully extend lemminx in the result.

    but it will be great to have all that bundle in mason registry.
    Sorry for my hard explanation, english is not my native language

  5. logrusx commented on Nov 26, 2025

    @logrusx
    Collaborator

    @sergii-dudar OP doesn't ask for a maven extension or plugin. They ask if they can have code completion in pom.xml. I don't see what does maven extension or whatever has to do with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions