mfussenegger / lemminx-maven

lemminx-maven

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Clone to Eclipse IDE

Features

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

  • model error reports are diagnostics
  • completion and hover documentation for dependency/scope (test, provided, runtime, ...)
  • completion and hover documentation for plugins/execution/phase (process-resources, package, test, verify...)
  • completion and hover for GAVs or any groupId, artifactId, version item under depedencies, dependency, plugins, plugin, parent
  • completion and hover evaluation for properties
  • completion, hover documentation and validation for plugins configuration elements
  • results use local repository and remote repositories (with index)

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...

About

lemminx-maven

License:Eclipse Public License 2.0


Languages

Language:Java 100.0%