deps-maven
pom.xml support for deps-lsp.
This crate provides Maven/JVM ecosystem support for the deps-lsp server, including pom.xml parsing, dependency extraction, and Maven Central registry integration.
Features
- XML Parsing — Parse
pom.xmlwith byte-accurate position tracking usingquick-xmlSAX reader - Dependency Sections — Handle
<dependencies>,<dependencyManagement>, and<build><plugins>blocks - Maven Central Registry — Solr API client for version lookups and artifact search
- Version Comparison — Maven version qualifier support (
alpha,beta,RC,SNAPSHOT,GA) - Property Resolution — Resolve
${property}placeholders defined in<properties> - Scope Handling — Recognise
compile,test,provided,runtime, andimportscopes - Ecosystem Trait — Implements
deps_core::Ecosystemtrait
Usage
[]
= "0.7"
use ;
let result = parse_pom_xml?;
let registry = new;
let versions = registry.get_versions_typed.await?;
Supported pom.xml Syntax
6.1.0
org.springframework
spring-core
6.1.0
junit
junit
4.13.2
test
org.springframework.boot
spring-boot-dependencies
3.2.0
pom
import
org.apache.maven.plugins
maven-compiler-plugin
3.12.1