VSCode extension "Maven for Java"
Перейти к файлу
Yan Zhang 7079a878df can remove imported project 2017-12-06 11:38:11 +08:00
.vscode generated by yo 2017-11-10 13:30:04 +08:00
images update README 2017-12-05 16:31:37 +08:00
resources add icons for importing projects button 2017-12-04 17:24:17 +08:00
src can remove imported project 2017-12-06 11:38:11 +08:00
.gitignore change filename 2017-12-01 10:56:05 +08:00
.travis.yml test in osx 2017-12-04 11:58:14 +08:00
.vscodeignore ignore images folder, shrink extension size 2017-12-04 15:53:27 +08:00
CHANGELOG.md update README 2017-12-05 16:31:37 +08:00
README.md update README 2017-12-05 16:31:37 +08:00
package-lock.json fix tslint 2017-12-05 16:38:40 +08:00
package.json can remove imported project 2017-12-06 11:38:11 +08:00
tsconfig.json generated by yo 2017-11-10 13:30:04 +08:00
tslint.json use a new tslint conf 2017-12-05 15:59:32 +08:00

README.md

Maven Project Explorer

Marketplace Version Installs Rating Build Status

Features

Maven extension for VS Code. It now reads pom.xml in root folder, and provide project structures in sidebar, improving user experience for Java developers who use Maven.

  • Effective POM
  • Shortcut to common goals, namely clean, validate, compile, test, package, verify, install, site, deploy.
  • Perserve history of custom goals for fast re-run long commands(e.g. mvn clean package -DskipTests -Dcheckstyle.skip).
  • Can generate projects from Maven Archetype.
  • Support multi-module maven projects.
  • Support VSCode multi-root workspace.

Requirements

Maven installed and PATH added, i.e., mvn command can be executed directly in the terminal.

Usage

  • The extension scans pom.xml from each root folder in your workspace recursively, and display corresponding projects and their modules in the sidebar.

    Screenshot

  • If you want to add a project whose pom.xml is elsewhere not in the workspace, you have multiple ways to import it.

    • right-click on the pom.xml, select Import Maven Project. The extension will force to show the corresponding project in sidebar.
    • Or simply click the + button, and select a pom.xml in a system dialog.
    • Or you just want to search pom.xml files recursively and import all of them. Then click the folder-shaped button beside.

    Screenshot

    In fact, the extension imports a Maven project by adding its absolute path in your Workspace Settings, and then refreshes the whole view.

    {
        "maven.projects.pinnedPomPaths": [
            "c:\\path-to-project\\pom.xml"
        ]
    }
    
  • It perserves history of custom goals for each project, so you can fast re-run previous long commands, e.g. mvn <goals> -Dparam1=value1 -Dparam2=value2 -Dparam3=value3 ...

    Screenshot

  • Archetype Related

    • Generate from Maven Archetype The extension loads archetypes listed in local/remote catelog. After selection, the extension fires mvn archetype:generate -D... in terminal.

    Screenshot

Release Notes

Refer to CHANGELOG