Skip to content

Maven ​

Catalog v8.

Installs Apache Maven on the JDK of the Java toolchain.

Select ​

toml
[toolchains]
java = "21"
maven = "3"

Maven needs java in the same table. Choose both in the [toolchains] table of limanix.toml and apply the change. Maven and Gradle can be selected together.

Versions ​

ValueMavenNotes
33.xRecommended

The line comes from the base Nixpkgs revision and receives its updates with each catalog release.

Use ​

Inside the VM, from a directory that contains pom.xml:

console
mvn package

mvn --version shows the JDK that Maven runs on. A project with ./mvnw runs the Maven version that it pins, on the same JDK.

Configuration and integration
BoundaryContract
SettingsMaven runs on lmx.capabilities.jdk.package
Personal stateDownloaded dependencies in ~/.m2/repository
IntegrationImports the Java toolchain; without a java line it runs on the Java default
ServicesNo daemon

Free and open source under the Apache License 2.0.