change version to 0.0.5-SNAPSHOT
This commit is contained in:
Родитель
fb49f6ab8e
Коммит
ae14d2dc23
|
@ -1,5 +1,5 @@
|
|||
out
|
||||
node_modules
|
||||
.vscode-test/
|
||||
.vsix
|
||||
*.vsix
|
||||
yarn.lock
|
||||
|
|
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -4,4 +4,15 @@ All notable changes to the "vscode-maven" extension will be documented in this f
|
|||
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
|
||||
|
||||
## [Unreleased]
|
||||
- Initial release
|
||||
|
||||
### 0.0.4
|
||||
- Support multi-root
|
||||
|
||||
### 0.0.3
|
||||
- Support generating effective-pom.
|
||||
|
||||
### 0.0.2
|
||||
- Add icons.
|
||||
|
||||
### 0.0.1
|
||||
- Projects listed in sidebar.
|
||||
|
|
18
README.md
18
README.md
|
@ -1,29 +1,19 @@
|
|||
# vscode-maven README
|
||||
# README
|
||||
|
||||
This is the README for extension "vscode-maven".
|
||||
This is the README for VSCode extension "Maven Project Explorer".
|
||||
|
||||
## Features
|
||||
Maven extension for VS Code. It now reads `pom.xml` in root folder, and provide project structures in sidebar.
|
||||
|
||||
* multi-module projects supported.
|
||||
* common goals can be executed via Right-Click, namely `clean`, `validate`, `compile`, `test`, `package`, `verify`, `install`, `site`, `deploy`.
|
||||
|
||||
![Screenshot](images/Capture.PNG)
|
||||
|
||||
* support generating effective pom.
|
||||
* support VSCode multi-root workspace.
|
||||
|
||||
![Screenshot](images/Capture2.PNG)
|
||||
![Screenshot](images/screen.gif)
|
||||
|
||||
## Requirements
|
||||
|
||||
Maven installed and PATH added, i.e., `mvn` command can be executed directly in the terminal.
|
||||
|
||||
## Release Notes
|
||||
|
||||
### 0.0.1 Projects listed in sidebar.
|
||||
|
||||
### 0.0.2 Add icons.
|
||||
|
||||
### 0.0.3 Support generating effective-pom.
|
||||
|
||||
### 0.0.4 Support multi-root
|
||||
|
|
Двоичные данные
images/Capture.PNG
Двоичные данные
images/Capture.PNG
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 85 KiB |
Двоичные данные
images/Capture2.PNG
Двоичные данные
images/Capture2.PNG
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 136 KiB |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 2.7 MiB |
22
package.json
22
package.json
|
@ -2,7 +2,7 @@
|
|||
"name": "vscode-maven",
|
||||
"displayName": "Maven Project Explorer",
|
||||
"description": "Browse maven projects in sidebar, execute goals.",
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.5-SNAPSHOT",
|
||||
"icon": "resources/logo.png",
|
||||
"publisher": "eskibear",
|
||||
"engines": {
|
||||
|
@ -12,7 +12,7 @@
|
|||
"Languages",
|
||||
"Other"
|
||||
],
|
||||
"homepage": "https://github.com/Eskibear/vscode-maven/blob/master/README.md",
|
||||
"homepage": "https://github.com/Eskibear/vscode-maven/blob/develop/README.md",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Eskibear/vscode-maven.git"
|
||||
|
@ -107,47 +107,47 @@
|
|||
{
|
||||
"command": "mavenGoal.validate",
|
||||
"when": "view == mavenProjects && viewItem == mavenProject",
|
||||
"group": "lifecycle@0"
|
||||
"group": "lifecycle@1"
|
||||
},
|
||||
{
|
||||
"command": "mavenGoal.compile",
|
||||
"when": "view == mavenProjects && viewItem == mavenProject",
|
||||
"group": "lifecycle@0"
|
||||
"group": "lifecycle@2"
|
||||
},
|
||||
{
|
||||
"command": "mavenGoal.test",
|
||||
"when": "view == mavenProjects && viewItem == mavenProject",
|
||||
"group": "lifecycle@0"
|
||||
"group": "lifecycle@3"
|
||||
},
|
||||
{
|
||||
"command": "mavenGoal.package",
|
||||
"when": "view == mavenProjects && viewItem == mavenProject",
|
||||
"group": "lifecycle@0"
|
||||
"group": "lifecycle@4"
|
||||
},
|
||||
{
|
||||
"command": "mavenGoal.verify",
|
||||
"when": "view == mavenProjects && viewItem == mavenProject",
|
||||
"group": "lifecycle@0"
|
||||
"group": "lifecycle@5"
|
||||
},
|
||||
{
|
||||
"command": "mavenGoal.install",
|
||||
"when": "view == mavenProjects && viewItem == mavenProject",
|
||||
"group": "lifecycle@0"
|
||||
"group": "lifecycle@6"
|
||||
},
|
||||
{
|
||||
"command": "mavenGoal.site",
|
||||
"when": "view == mavenProjects && viewItem == mavenProject",
|
||||
"group": "lifecycle@0"
|
||||
"group": "lifecycle@7"
|
||||
},
|
||||
{
|
||||
"command": "mavenGoal.deploy",
|
||||
"when": "view == mavenProjects && viewItem == mavenProject",
|
||||
"group": "lifecycle@0"
|
||||
"group": "lifecycle@8"
|
||||
},
|
||||
{
|
||||
"command": "mavenProject.effectivePom",
|
||||
"when": "view == mavenProjects && viewItem == mavenProject",
|
||||
"group": "effective@0"
|
||||
"group": "effective@9"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// Import the module and reference it with the alias vscode in your code below
|
||||
import * as vscode from 'vscode';
|
||||
import * as path from "path";
|
||||
import * as fs from "fs";
|
||||
import * as md5 from "md5";
|
||||
import { MavenProjectsTreeDataProvider } from './mavenProjectsTreeDataProvider';
|
||||
import { Utils } from './utils';
|
||||
|
@ -27,7 +28,7 @@ export function activate(context: vscode.ExtensionContext) {
|
|||
const item = goalItem as MavenProjectTreeItem;
|
||||
Utils.runInTerminal(`mvn ${item.label} -f "${item.pomXmlFilePath}"`);
|
||||
});
|
||||
|
||||
|
||||
let commandMavenProjectEffectivePom = vscode.commands.registerCommand('mavenProject.effectivePom', (goalItem) => {
|
||||
const item = goalItem as MavenProjectTreeItem;
|
||||
const tmpdir = process.env["TMP"] || process.env["TEMP"] || "/tmp";
|
||||
|
@ -42,8 +43,11 @@ export function activate(context: vscode.ExtensionContext) {
|
|||
resolve(true);
|
||||
});
|
||||
}).then(ret => {
|
||||
if (ret) {
|
||||
vscode.window.showTextDocument(vscode.Uri.file(filepath));
|
||||
if (ret && fs.existsSync(filepath)) {
|
||||
const pomxml = fs.readFileSync(filepath).toString();
|
||||
vscode.workspace.openTextDocument({ language: 'xml', content: pomxml }).then(document => {
|
||||
vscode.window.showTextDocument(document);
|
||||
});
|
||||
} else {
|
||||
vscode.window.showErrorMessage("Error occurred in generating effective pom.");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче