562 строки
16 KiB
JSON
562 строки
16 KiB
JSON
{
|
|
"name": "vscode-maven",
|
|
"displayName": "Maven for Java",
|
|
"description": "%description%",
|
|
"version": "0.21.2",
|
|
"icon": "resources/logo.png",
|
|
"publisher": "vscjava",
|
|
"preview": true,
|
|
"aiKey": "7c4292ac-8ca8-4e02-9f1c-0b73e1eeeca4",
|
|
"engines": {
|
|
"vscode": "^1.43.0"
|
|
},
|
|
"categories": [
|
|
"Programming Languages",
|
|
"Other"
|
|
],
|
|
"keywords": [
|
|
"Maven",
|
|
"Java"
|
|
],
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/Microsoft/vscode-maven/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Microsoft/vscode-maven.git"
|
|
},
|
|
"activationEvents": [
|
|
"workspaceContains:**/pom.xml",
|
|
"onCommand:maven.explorer.refresh",
|
|
"onCommand:maven.goal.clean",
|
|
"onCommand:maven.goal.validate",
|
|
"onCommand:maven.goal.compile",
|
|
"onCommand:maven.goal.test",
|
|
"onCommand:maven.goal.package",
|
|
"onCommand:maven.goal.verify",
|
|
"onCommand:maven.goal.install",
|
|
"onCommand:maven.goal.site",
|
|
"onCommand:maven.goal.deploy",
|
|
"onCommand:maven.goal.custom",
|
|
"onCommand:maven.goal.execute",
|
|
"onCommand:maven.project.effectivePom",
|
|
"onCommand:maven.project.openPom",
|
|
"onCommand:maven.archetype.generate",
|
|
"onCommand:maven.archetype.update",
|
|
"onCommand:maven.history",
|
|
"onCommand:maven.plugin.execute",
|
|
"onCommand:maven.project.addDependency",
|
|
"onView:mavenProjects",
|
|
"onLanguage:xml"
|
|
],
|
|
"main": "./dist/extension",
|
|
"contributes": {
|
|
"javaExtensions": [
|
|
"./jdtls.ext/com.microsoft.java.maven.plugin/target/com.microsoft.java.maven.plugin-0.21.2.jar"
|
|
],
|
|
"commands": [
|
|
{
|
|
"command": "maven.explorer.refresh",
|
|
"title": "%contributes.commands.maven.explorer.refresh%",
|
|
"category": "Maven",
|
|
"icon": "$(refresh)"
|
|
},
|
|
{
|
|
"command": "maven.goal.clean",
|
|
"title": "clean",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.goal.validate",
|
|
"title": "validate",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.goal.compile",
|
|
"title": "compile",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.goal.test",
|
|
"title": "test",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.goal.package",
|
|
"title": "package",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.goal.verify",
|
|
"title": "verify",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.goal.install",
|
|
"title": "install",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.goal.site",
|
|
"title": "site",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.goal.deploy",
|
|
"title": "deploy",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.goal.custom",
|
|
"title": "%contributes.commands.maven.goal.custom%",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.project.effectivePom",
|
|
"title": "%contributes.commands.maven.project.effectivePom%",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.project.openPom",
|
|
"title": "%contributes.commands.maven.project.openPom%",
|
|
"category": "Maven",
|
|
"icon": "$(go-to-file)"
|
|
},
|
|
{
|
|
"command": "maven.archetype.generate",
|
|
"title": "%contributes.commands.maven.archetype.generate%",
|
|
"category": "Maven",
|
|
"icon": "$(add)"
|
|
},
|
|
{
|
|
"command": "maven.archetype.update",
|
|
"title": "%contributes.commands.maven.archetype.update%",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.history",
|
|
"title": "%contributes.commands.maven.history%",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.goal.execute",
|
|
"title": "%contributes.commands.maven.goal.execute%",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.plugin.execute",
|
|
"title": "%contributes.commands.maven.plugin.execute%",
|
|
"category": "Maven",
|
|
"icon": "$(play)"
|
|
},
|
|
{
|
|
"command": "maven.plugin.debug",
|
|
"title": "%contributes.commands.maven.plugin.debug%",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.view.flat",
|
|
"title": "%contributes.commands.maven.view.flat%",
|
|
"category": "Maven",
|
|
"icon": "$(list-tree)"
|
|
},
|
|
{
|
|
"command": "maven.view.hierarchical",
|
|
"title": "%contributes.commands.maven.view.hierarchical%",
|
|
"category": "Maven",
|
|
"icon": "$(list-flat)"
|
|
},
|
|
{
|
|
"command": "maven.project.addDependency",
|
|
"title": "%contributes.commands.maven.project.addDependency%",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.project.showDependencies",
|
|
"title": "%contributes.commands.maven.project.showDependencies%",
|
|
"category": "Maven"
|
|
},
|
|
{
|
|
"command": "maven.favorites",
|
|
"title": "%contributes.commands.maven.favorites%",
|
|
"category": "Maven"
|
|
}
|
|
],
|
|
"views": {
|
|
"explorer": [
|
|
{
|
|
"id": "mavenProjects",
|
|
"name": "%contributes.views.explorer.mavenProjects%"
|
|
}
|
|
]
|
|
},
|
|
"menus": {
|
|
"commandPalette": [
|
|
{
|
|
"command": "maven.goal.clean",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.goal.validate",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.goal.compile",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.goal.test",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.goal.package",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.goal.verify",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.goal.install",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.goal.site",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.goal.deploy",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.goal.custom",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.project.effectivePom",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.explorer.refresh",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.project.openPom",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.plugin.execute",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.plugin.debug",
|
|
"when": "never"
|
|
},
|
|
{
|
|
"command": "maven.project.showDependencies",
|
|
"when": "never"
|
|
}
|
|
],
|
|
"explorer/context": [
|
|
{
|
|
"command": "maven.archetype.generate",
|
|
"group": "maven@3"
|
|
},
|
|
{
|
|
"command": "maven.project.effectivePom",
|
|
"when": "resourceFilename == pom.xml",
|
|
"group": "maven@1"
|
|
}
|
|
],
|
|
"view/title": [
|
|
{
|
|
"command": "maven.view.flat",
|
|
"when": "view == mavenProjects && config.maven.view != flat",
|
|
"group": "navigation@0a"
|
|
},
|
|
{
|
|
"command": "maven.view.hierarchical",
|
|
"when": "view == mavenProjects && config.maven.view != hierarchical",
|
|
"group": "navigation@0b"
|
|
},
|
|
{
|
|
"command": "maven.archetype.generate",
|
|
"when": "view == mavenProjects",
|
|
"group": "navigation@1"
|
|
},
|
|
{
|
|
"command": "maven.explorer.refresh",
|
|
"when": "view == mavenProjects",
|
|
"group": "navigation@2"
|
|
}
|
|
],
|
|
"view/item/context": [
|
|
{
|
|
"command": "maven.goal.custom",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@5"
|
|
},
|
|
{
|
|
"command": "maven.favorites",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@3"
|
|
},
|
|
{
|
|
"command": "maven.history",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@0"
|
|
},
|
|
{
|
|
"command": "maven.goal.clean",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@10"
|
|
},
|
|
{
|
|
"command": "maven.goal.package",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@20"
|
|
},
|
|
{
|
|
"command": "maven.goal.install",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@30"
|
|
},
|
|
{
|
|
"command": "maven.goal.compile",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@40"
|
|
},
|
|
{
|
|
"command": "maven.goal.validate",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@50"
|
|
},
|
|
{
|
|
"command": "maven.goal.verify",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@60"
|
|
},
|
|
{
|
|
"command": "maven.goal.test",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@70"
|
|
},
|
|
{
|
|
"command": "maven.goal.site",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@80"
|
|
},
|
|
{
|
|
"command": "maven.goal.deploy",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "1-lifecycle@90"
|
|
},
|
|
{
|
|
"command": "maven.project.effectivePom",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "0-pom@1"
|
|
},
|
|
{
|
|
"command": "maven.project.showDependencies",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "0-pom@0"
|
|
},
|
|
{
|
|
"command": "maven.project.openPom",
|
|
"when": "view == mavenProjects && viewItem == MavenProject",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "maven.plugin.execute",
|
|
"when": "view == mavenProjects && viewItem == PluginGoal",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "maven.plugin.execute",
|
|
"when": "view == mavenProjects && viewItem == PluginGoal",
|
|
"group": "1@1"
|
|
},
|
|
{
|
|
"command": "maven.plugin.debug",
|
|
"when": "view == mavenProjects && viewItem == PluginGoal",
|
|
"group": "1@2"
|
|
},
|
|
{
|
|
"command": "maven.explorer.refresh",
|
|
"when": "view == mavenProjects && viewItem == MavenPlugin",
|
|
"group": "1@1"
|
|
},
|
|
{
|
|
"command": "maven.explorer.refresh",
|
|
"when": "view == mavenProjects && viewItem == Menu",
|
|
"group": "inline"
|
|
}
|
|
]
|
|
},
|
|
"configuration": [
|
|
{
|
|
"title": "Maven for Java",
|
|
"properties": {
|
|
"maven.excludedFolders": {
|
|
"type": "array",
|
|
"default": [
|
|
"**/.*",
|
|
"**/node_modules",
|
|
"**/target",
|
|
"**/bin"
|
|
],
|
|
"description": "%configuration.maven.excludedFolders%",
|
|
"scope": "resource"
|
|
},
|
|
"maven.executable.preferMavenWrapper": {
|
|
"type": "boolean",
|
|
"default": "true",
|
|
"description": "%configuration.maven.executable.preferMavenWrapper%",
|
|
"scope": "resource"
|
|
},
|
|
"maven.executable.path": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "%configuration.maven.executable.path%",
|
|
"scope": "resource"
|
|
},
|
|
"maven.executable.options": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "%configuration.maven.executable.options%",
|
|
"scope": "resource"
|
|
},
|
|
"maven.terminal.useJavaHome": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%configuration.maven.terminal.useJavaHome%",
|
|
"scope": "window"
|
|
},
|
|
"maven.terminal.customEnv": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"title": "environment setting",
|
|
"required": [
|
|
"environmentVariable",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"environmentVariable": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"description": "%configuration.maven.terminal.customEnv.environmentVariable%"
|
|
},
|
|
"value": {
|
|
"type": "string",
|
|
"description": "%configuration.maven.terminal.customEnv.value%"
|
|
}
|
|
}
|
|
},
|
|
"default": [],
|
|
"description": "%configuration.maven.terminal.customEnv%",
|
|
"scope": "window"
|
|
},
|
|
"maven.terminal.favorites": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"title": "Favorite commands",
|
|
"required": [
|
|
"alias",
|
|
"command"
|
|
],
|
|
"properties": {
|
|
"alias": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"description": "%configuration.maven.terminal.favorites.alias%"
|
|
},
|
|
"command": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"description": "%configuration.maven.terminal.favorites.command%"
|
|
},
|
|
"debug": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%configuration.maven.terminal.favorites.debug%"
|
|
}
|
|
}
|
|
},
|
|
"default": [],
|
|
"description": "%configuration.maven.terminal.favorites%",
|
|
"scope": "resource"
|
|
},
|
|
"maven.view": {
|
|
"type": "string",
|
|
"enum": [
|
|
"flat",
|
|
"hierarchical"
|
|
],
|
|
"default": "flat",
|
|
"scope": "window",
|
|
"description": "%configuration.maven.view%"
|
|
},
|
|
"maven.pomfile.globPattern": {
|
|
"type": "string",
|
|
"default": "**/pom.xml",
|
|
"description": "%configuration.maven.pomfile.globPattern%",
|
|
"scope": "window"
|
|
},
|
|
"maven.pomfile.autoUpdateEffectivePOM": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%configuration.maven.pomfile.autoUpdateEffectivePOM%",
|
|
"scope": "window"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "webpack --mode production",
|
|
"build-plugin": "gulp build-plugin",
|
|
"compile": "tsc -p ./",
|
|
"tslint": "tslint -t verbose --project tslint.json",
|
|
"watch": "webpack --mode development --watch --info-verbosity verbose",
|
|
"test": "npm run compile && node ./out/test/runTest.js",
|
|
"webpack": "webpack --mode development"
|
|
},
|
|
"devDependencies": {
|
|
"@types/fs-extra": "^4.0.9",
|
|
"@types/glob": "^7.1.1",
|
|
"@types/lodash": "^4.14.136",
|
|
"@types/md5": "^2.1.33",
|
|
"@types/minimatch": "^3.0.3",
|
|
"@types/mocha": "^5.2.7",
|
|
"@types/node": "^10.14.13",
|
|
"@types/vscode": "1.43.0",
|
|
"@types/which": "^1.3.1",
|
|
"@types/xml2js": "^0.4.4",
|
|
"glob": "^7.1.4",
|
|
"gulp": "^4.0.2",
|
|
"mocha": "^4.1.0",
|
|
"ts-loader": "^4.4.2",
|
|
"tslint": "^5.18.0",
|
|
"tslint-microsoft-contrib": "^5.0.1",
|
|
"typescript": "^2.9.2",
|
|
"vscode-test": "^1.0.2",
|
|
"webpack": "^4.36.1",
|
|
"webpack-cli": "^3.3.6"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^0.19.0",
|
|
"fast-glob": "^2.2.7",
|
|
"fs-extra": "^4.0.3",
|
|
"get-port": "^4.2.0",
|
|
"lodash": "^4.17.15",
|
|
"md5": "^2.2.1",
|
|
"minimatch": "^3.0.4",
|
|
"vscode-extension-telemetry-wrapper": "^0.4.0",
|
|
"vscode-languageserver-protocol": "^3.14.1",
|
|
"which": "^1.3.1",
|
|
"xml-zero-lexer": "^2.0.5",
|
|
"xml2js": "^0.4.19"
|
|
}
|
|
}
|