Maven for Java
Maven extension for VS Code. It provides a project explorer and shortcuts to execute Maven commands, improving user experience for Java developers who use Maven.
For troubleshooting, please refer to the page HERE.
The extension scans
Run Plugin Goals
The extension parse effective-pom of Maven projects, and displays all plugins and plugin goals hierarchically.
POM File Editing
The extension provides Maven specific completion suggestions when editing POM files, including snippets and artifact hints.
Re-Run Historical Commands
It preserves history of goals for each project, so you can fast re-run previous long commands, e.g.
Generate from Maven Archetype
The extension loads archetypes listed in local/remote catalog. After selection, the extension sends
Update Maven Archetype Catalog
With following steps, you can update the local cache of Maven remote catalog. It takes some time to download meta data from Maven central repository.
Command Palette -> select
JAVA_HOME and Other Environment Variables
This extension executes Maven by opening a terminal session and then calling Maven in that session. Maven requires the JAVA_HOME environment variable to be set. Maven will also look for other variables such as MAVEN_OPTS. If you prefer not to set those variables permanently you can configure them, or any other environment variable, in settings:
Special Handling for JAVA_HOME
If you have Red Hat's Java Language Support extension installed, then you can specify JAVA_HOME in settings for that extension:
This extension (Maven for Java) can reuse that setting if you desire:
With this support, you can specify JAVA_HOME in one place and you do not need to use the
If you have JAVA_HOME configured through the
Default Options for Maven CommandThe usage of Maven executable is:
You can use
Folder Exclusion for Searching POM Files
To speed up the searching of Maven projects, you can exclude folders in settings:
VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you don’t wish to send usage data to Microsoft, you can set the
Refer to CHANGELOG