在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):microsoft/vscode-maven开源软件地址(OpenSource Url):https://github.com/microsoft/vscode-maven开源编程语言(OpenSource Language):TypeScript 72.8%开源软件介绍(OpenSource Introduction):Maven for JavaFeaturesMaven extension for VS Code. It provides a project explorer and shortcuts to execute Maven commands, improving user experience for Java developers who use Maven.
Requirements
For troubleshooting, please refer to the page HERE. Basic UsageMaven ExplorerThe extension scans Run Plugin GoalsThe extension parse effective-pom of Maven projects, and displays all plugins and plugin goals hierarchically. POM File EditingThe extension provides Maven specific completion suggestions when editing POM files, including snippets and artifact hints. Re-Run Historical CommandsIt preserves history of goals for each project, so you can fast re-run previous long commands, e.g.
Archetype RelatedGenerate from Maven ArchetypeThe extension loads archetypes listed in local/remote catalog. After selection, the extension sends
Update Maven Archetype CatalogWith 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 Additional ConfigurationsJAVA_HOME and Other Environment VariablesThis 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: {
"maven.terminal.customEnv": [
{
"environmentVariable": "MAVEN_OPTS", // variable name
"value": "-Xms1024m -Xmx4096m" // value
},
{
"environmentVariable": "JAVA_HOME", // variable name
"value": "C:\\Program Files\\Java\\jdk-9.0.4" // value
}
]
} Special Handling for JAVA_HOMEIf you have Red Hat's Java Language Support extension installed, then you can specify JAVA_HOME in settings for that extension: {
"java.home": "C:\\Program Files\\Java\\jdk-9.0.4" // Red Hat Java Language Support Setting
} This extension (Maven for Java) can reuse that setting if you desire: {
"maven.terminal.useJavaHome": true // Use the Red Hat Java Language Support Setting for JAVA_HOME
} 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 {
"maven.executable.options": "-o -s ./settings.xml" // work offline, and use an alternative settings file
} Folder Exclusion for Searching POM FilesTo speed up the searching of Maven projects, you can exclude folders in settings: {
"maven.excludedFolders": [
"**/.*", // exclude hidden folders
"**/node_modules", // exclude node modules to speed up
"**/target" // exclude duplicated pom file in target folder
]
} Customize Favorite Maven CommandsSpecify a favorite command in settings: {
"maven.terminal.favorites": [
{
"alias": "full-build without tests",
"command": "clean package -DskipTests"
}
]
} Now right-click on an project item, and then click Settings
Data/TelemetryVS 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 ContributingThis project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments. Release NotesRefer to CHANGELOG |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论