Home

Awesome

LemMinX-Maven

Want to provide some powerful Maven pom edition support in your software without pain? Search no more!

This project is an Eclipse LemMinX (XML Language Server) extension to provide some extra assistance to edition of Maven POM files

<a href="https://mickaelistria.github.io/redirctToEclipseIDECloneCommand/redirect.html"><img src="https://mickaelistria.github.io/redirctToEclipseIDECloneCommand/cloneToEclipseBadge.png" alt="Clone to Eclipse IDE"/></a>

Features

Additionally to the XSD based assistance provided by LemMinX when editing pom files, this extension adds:

Here a demo in Eclipse IDE:

Consuming LemMinX Maven

Get the maven artifact from the Eclipse Nexus repository

...
	<groupId>org.eclipse.lemminx</groupId>
	<artifactId>lemminx-maven</artifactId>
	<version>0.0.1-SNAPSHOT</version>
...
	<repositories>
		<repository>
			<id>lemminx-releases</id>
			<url>https://repo.eclipse.org/content/repositories/lemminx-releases/</url>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<releases>
				<enabled>true</enabled>
			</releases>
		</repository>
		<repository>
			<id>lemminx-snapshots</id>
			<url>https://repo.eclipse.org/content/repositories/lemminx-snapshots/</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<releases>
				<enabled>false</enabled>
			</releases>
		</repository>
	</repositories>

Then, just start the LemMinX Language Server as documented on the LemMinX documentation, and make sure the LemMinX-Maven extension is in the classpath. If done correctly, then whenever LemMinX starts processing some pom.xml file, the LemMinX-Maven extension should automatically participate as well.

Integrations

Eclipse IDE

This extension is already used from the "Generic Text Editor" in Eclipse 4.16+ when Eclipse m2e is installed.

VSCode

This extension is installed with vscode-xml-maven. Read here for further explanation on how it works.

Demos and other resources

Coming soon...