VOOZH about

URL: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven

⇱ Maven for Java - Visual Studio Marketplace


Skip to content
πŸ‘ Image
Sign in
Visual Studio Code>Programming Languages>Maven for JavaNew to Visual Studio Code? Get it now.
πŸ‘ Maven for Java

Maven for Java

Manage Maven projects, execute goals, generate project from archetype, improve user experience for Java developers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Maven for Java

πŸ‘ Marketplace Version
πŸ‘ Installs
πŸ‘ Rating
πŸ‘ Build status

Features

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.

  • Support to generate projects from Maven Archetype.
  • Support to generate effective POM.
  • Provide shortcuts to common goals, plugin goals and customized commands.
  • Preserve command history to fast re-run.

Requirements

  • Java
  • Maven / Maven Wrapper

For troubleshooting, please refer to the page HERE.

Basic Usage

Additional Configurations

Settings

Name Description Default Value
maven.dependency.enableConflictDiagnostics Specify whether to show diagnostics for conflict dependencies. true
maven.excludedFolders Specifies file path pattern of folders to exclude while searching for Maven projects. [ "**/.*", "**/node_modules", "**/target", "**/bin", "**/archetype-resources" ]
maven.executable.preferMavenWrapper Specifies whether you prefer to use Maven wrapper. If true, it tries using 'mvnw' by walking up the parent folders. If false, or 'mvnw' is not found, it tries 'mvn' in PATH instead. true
maven.executable.path Specifies absolute path of your 'mvn' executable. When this value is empty, it tries using 'mvn' or 'mvnw' according to the value of 'maven.executable.preferMavenWrapper'. E.g. /usr/local/apache-maven-3.6.0/bin/mvn
maven.executable.options Specifies default options for all mvn commands. E.g. -o -DskipTests
maven.explorer.projectName Format of project node name shown in Maven explorer. ${project.name}
maven.projectOpenBehavior "Default method of opening newly created project. "Interactive"
maven.pomfile.autoUpdateEffectivePOM Specifies whether to update effective-pom automatically whenever changes detected. false
maven.pomfile.globPattern Specifies the glob pattern used to look for pom.xml files. **/pom.xml
maven.pomfile.prefetchEffectivePom Specifies whether to prefetch effective pom on startup. false
maven.terminal.customEnv Specifies an array of environment variable names and values. These environment variable values will be added before Maven is executed.
environmentVariable: Name of the environment variable to set.
value: Value of the environment variable to set.
[]
maven.terminal.favorites Specify pre-defined favorite commands to execute.
alias: A short name for the command.
command: Content of the favorite command.
[]
maven.view Specifies the way of viewing Maven projects. Possible values: flat, hierarchical. flat
maven.settingsFile Specifies the absolute path of Maven settings.xml file. If not specified, ~/.m2/settings.xml is used. null
maven.showInExplorerContextMenu If this value is true, add a command to create Maven Projects in the Explorer context menu for folders. true

Data/Telemetry

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 telemetry.enableTelemetry setting to false. Learn more in our FAQ.

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Release Notes

Refer to CHANGELOG