VSCode extension "Maven for Java"
Перейти к файлу
Yan Zhang de0ab05622
bump version, update changelog for release (#45)
2017-12-26 14:03:14 +08:00
.vscode generated by yo 2017-11-10 13:30:04 +08:00
images update README and CHANGELOG (#38) 2017-12-18 15:51:04 +08:00
resources Fix error in generating effective pom (#37) 2017-12-18 14:38:31 +08:00
src fix issue:artifactId not assigned in constructor (#42) 2017-12-22 16:11:30 +08:00
.gitignore Better maven archetype experience (#35) 2017-12-14 16:59:10 +08:00
.travis.yml fix travis 2017-12-06 12:09:21 +08:00
.vscodeignore ignore images folder, shrink extension size 2017-12-04 15:53:27 +08:00
CHANGELOG.md bump version, update changelog for release (#45) 2017-12-26 14:03:14 +08:00
README.md update readme for new features 2017-12-12 16:24:47 +08:00
package-lock.json Better maven archetype experience (#35) 2017-12-14 16:59:10 +08:00
package.json bump version, update changelog for release (#45) 2017-12-26 14:03:14 +08:00
tsconfig.json Better maven archetype experience (#35) 2017-12-14 16:59:10 +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

Provide Maven executable filepath.

  • By default, mvn command is executed directly in the terminal, which requires mvn can be found in system envronment PATH.
  • If you do not want to add it into PATH, you can specify maven executable path in settings:
    {
        "maven.executable.path": "/some-path-to-maven-home/bin/mvn"
    }
    

Usage

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

    Screenshot

  • To speed up the searching of maven projects, you can exclude folders in settings:

    {
        "maven.projects.excludedFolders": [
            "**/.*",                // exclude hidden folders
            "**/node_modules"       // exclude node modules to speed up
        ]
    }
    
  • 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