How can I install/build java-debug and vscode-java-debug

This page summarizes the projects mentioned and recommended in the original post on /r/Nix

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • neovim-luca

    Neovim configured to my linking using nix flakes

  • Hello guys. I installed neovim using my own nix flake: https://github.com/quoteme/neovim-luca

  • nvim-dap

    Debug Adapter Protocol client implementation for Neovim

  • Now I wish to install nvim-dap to debug java applications. I already have nvim-jdtls installed, which nvim-dap needs. But for full debuggin capabilities I need to have java-debug and vscode-java-debug insalled as stadet in nvim-jdtls#debugger-via-nvim-dap.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • nvim-jdtls

    Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls

  • Now I wish to install nvim-dap to debug java applications. I already have nvim-jdtls installed, which nvim-dap needs. But for full debuggin capabilities I need to have java-debug and vscode-java-debug insalled as stadet in nvim-jdtls#debugger-via-nvim-dap.

  • java-debug

    The debug server implementation for Java. It conforms to the debug protocol of Visual Studio Code (DAP, Debugger Adapter Protocol).

  • Now I wish to install nvim-dap to debug java applications. I already have nvim-jdtls installed, which nvim-dap needs. But for full debuggin capabilities I need to have java-debug and vscode-java-debug insalled as stadet in nvim-jdtls#debugger-via-nvim-dap.

  • vscode-java-debug

    Java Debugger for Visual Studio Code.

  • Now I wish to install nvim-dap to debug java applications. I already have nvim-jdtls installed, which nvim-dap needs. But for full debuggin capabilities I need to have java-debug and vscode-java-debug insalled as stadet in nvim-jdtls#debugger-via-nvim-dap.

  • mvn2nix

    Easily package your Maven Java application with the Nix package manager.

  • My problem is, that to install java-debug, I need to clone its repository and run ./mvnw clean install in the cloned repo. But this does not work, because 1. when writing a flake to install it using stdenv.mkderivation and maven as a buildDepend, I have no internet and ./mvnw clean install fails. 2. using mvn2nix's nix run github:fzakaria/mvn2nix#mvn2nix results in a Failed to execute goals [[package]]. Exit code: 1.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts