{
    "name": "coc-maven",
    "version": "0.1.9",
    "description": "Coc extensions for maven",
    "author": "asmodeus812",
    "license": "MIT",
    "main": "lib/index.js",
    "keywords": [
        "coc.nvim"
    ],
    "repository": {
        "type": "git",
        "url": "https://github.com/asmodeus812/coc-maven"
    },
    "engines": {
        "coc": "^0.0.82"
    },
    "scripts": {
        "watch": "node esbuild.mjs --watch",
        "build": "node esbuild.mjs",
        "prepare": "node esbuild.mjs"
    },
    "devDependencies": {
        "coc.nvim": "^0.0.83-next.18",
        "domhandler": "^5.0.3",
        "esbuild": "^0.19.8",
        "expand-home-dir": "^0.0.3",
        "fast-glob": "^3.3.3",
        "fs-extra": "^11.1.0",
        "get-port": "^7.1.0",
        "htmlparser2": "^10.0.0",
        "jszip": "^3.10.1",
        "lodash": "^4.17.21",
        "md5": "^2.3.0",
        "semver": "^7.7.3",
        "typescript": "^5.3.3",
        "which": "^5.0.0",
        "xml2js": "^0.6.2"
    },
    "activationEvents": [
        "onLanguage:java",
        "workspaceContains:pom.xml",
        "workspaceContains:*/pom.xml"
    ],
    "contributes": {
        "javaExtensions": [
            "./server/com.microsoft.java.maven.plugin.jar"
        ],
        "configuration": {
            "type": "object",
            "title": "Maven",
            "properties": {
                "maven.executable.path": {
                    "type": "string",
                    "default": "",
                    "description": "Absolute path to the Maven executable to run (e.g., /usr/bin/mvn).",
                    "scope": "machine-overridable"
                },
                "maven.executable.preferMavenWrapper": {
                    "type": "boolean",
                    "default": true,
                    "description": "Prefer using the Maven Wrapper (mvnw) if present in the project.",
                    "scope": "resource"
                },
                "maven.executable.options": {
                    "anyOf": [
                        {
                            "type": "string"
                        },
                        {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        }
                    ],
                    "default": "",
                    "description": "Additional command-line options to pass to every Maven invocation (e.g., -T 1C, -Dmaven.test.skip=true).",
                    "scope": "machine-overridable"
                },
                "maven.settingsFile": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "default": null,
                    "description": "Path to a custom Maven settings.xml file to use (overrides the default settings).",
                    "scope": "machine"
                },
                "maven.terminal.customEnv": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "title": "environment setting",
                        "required": [
                            "environmentVariable",
                            "value"
                        ],
                        "properties": {
                            "environmentVariable": {
                                "type": "string",
                                "minLength": 1,
                                "description": "Name of the environment variable to set (e.g., MAVEN_OPTS)."
                            },
                            "value": {
                                "type": "string",
                                "description": "Value to assign to the environment variable."
                            }
                        }
                    },
                    "default": [],
                    "description": "Environment variables to inject into the integrated terminal when running Maven.",
                    "scope": "resource"
                },
                "maven.terminal.favorites": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "title": "Favorite commands",
                        "required": [
                            "command"
                        ],
                        "properties": {
                            "alias": {
                                "type": "string",
                                "minLength": 1,
                                "description": "Optional label shown for the favorite command."
                            },
                            "command": {
                                "type": "string",
                                "minLength": 1,
                                "description": "Maven goals and options to run (omit the leading 'mvn')."
                            },
                            "debug": {
                                "type": "boolean",
                                "default": false,
                                "description": "Run this favorite with Maven debug output (-X)."
                            }
                        }
                    },
                    "default": [
                        {
                            "alias": "Install without tests",
                            "command": "install -DskipTests"
                        },
                        {
                            "alias": "Build without tests",
                            "command": "clean package -DskipTests"
                        }
                    ],
                    "description": "Saved Maven commands that appear as quick actions in the terminal.",
                    "scope": "resource"
                },
                "maven.explorer.view": {
                    "type": "string",
                    "enum": [
                        "flat",
                        "hierarchical"
                    ],
                    "default": "hierarchical",
                    "scope": "window",
                    "description": "Layout of the Maven explorer: all projects on one level, or modules nested below the project that declares them."
                },
                "maven.explorer.projectName": {
                    "default": "${project.name}",
                    "type": "string",
                    "scope": "resource",
                    "description": "Template for how project names are shown in the Maven view.",
                    "enum": [
                        "${project.name}",
                        "${project.artifactId}",
                        "${project.artifactId}-${project.version}",
                        "${project.groupId}.${project.artifactId}",
                        "${project.groupId}.${project.artifactId}-${project.version}"
                    ]
                },
                "maven.pomfile.globPattern": {
                    "type": "string",
                    "default": "**/pom.xml",
                    "description": "Glob pattern used to resolve and distinguish a POM file. Used to enable various lsp capabilities for pom files.",
                    "scope": "window"
                },
                "maven.pomfile.prefetchEffectivePom": {
                    "type": "boolean",
                    "default": true,
                    "description": "Precompute Effective POMs in the background to speed up Maven features.",
                    "scope": "resource"
                },
                "maven.pomfile.autoUpdateEffectivePOM": {
                    "type": "boolean",
                    "default": true,
                    "description": "Automatically recompute the Effective POM when a POM file changes.",
                    "scope": "window"
                },
                "maven.excludedFolders": {
                    "type": "array",
                    "default": [
                        "**/.*",
                        "**/node_modules",
                        "**/target",
                        "**/bin",
                        "**/archetype-resources"
                    ],
                    "description": "Glob patterns for folders to ignore in Maven project discovery and the Maven view.",
                    "scope": "resource"
                },
                "maven.completion.gavEnabled": {
                    "type": "boolean",
                    "default": true,
                    "description": "Query the remote Maven Central search service for GAV (GroupId, ArtifactId, Version) completions in pom.xml. The completions from the Java language server index and the local repository stay on.",
                    "scope": "window"
                },
                "maven.dependency.enableConflictDiagnostics": {
                    "type": "boolean",
                    "default": true,
                    "description": "Enable diagnostics for dependency version and conflict issues in the dependency tree.",
                    "scope": "window"
                },
                "maven.projectOpenBehavior": {
                    "default": "Interactive",
                    "type": "string",
                    "scope": "window",
                    "description": "Default action when prompted to open a detected Maven project.",
                    "enum": [
                        "Interactive",
                        "Open",
                        "Cancel"
                    ]
                },
                "maven.outputDirectory": {
                    "type": "string",
                    "default": "",
                    "description": "Folder for the files Maven generates for a project: effective-pom.xml, dependency-tree.txt, profiles.txt and plugins/. Empty uses a folder named after the md5 of the pom path in the coc storage folder of the extension. A relative path resolves against the folder of the pom, for example target/generated. ${workspaceFolder}, ${projectDir}, ${relativeProjectDir}, environment variables and a leading ~ are expanded.",
                    "scope": "resource"
                }
            }
        },
        "commands": [
            {
                "command": "maven.explorer.show",
                "title": "Show Maven Explorer"
            },
            {
                "command": "maven.explorer.refresh",
                "title": "Refresh Maven Explorer"
            },
            {
                "command": "maven.explorer.flat",
                "title": "Switch to Flat View"
            },
            {
                "command": "maven.explorer.hierarchical",
                "title": "Switch to Hierarchical View"
            },
            {
                "command": "maven.goal.execute",
                "title": "Run Maven Commands for a project"
            },
            {
                "command": "maven.goal.custom",
                "title": "Run Custom Maven Goal"
            },
            {
                "command": "maven.goal.clean",
                "title": "Run Maven Phase 'clean'"
            },
            {
                "command": "maven.goal.validate",
                "title": "Run Maven Phase 'validate'"
            },
            {
                "command": "maven.goal.compile",
                "title": "Run Maven Phase 'compile'"
            },
            {
                "command": "maven.goal.test",
                "title": "Run Maven Phase 'test'"
            },
            {
                "command": "maven.goal.test-compile",
                "title": "Run Maven Phase 'test-compile'"
            },
            {
                "command": "maven.goal.package",
                "title": "Run Maven Phase 'package'"
            },
            {
                "command": "maven.goal.verify",
                "title": "Run Maven Phase 'verify'"
            },
            {
                "command": "maven.goal.install",
                "title": "Run Maven Phase 'install'"
            },
            {
                "command": "maven.goal.site",
                "title": "Run Maven Phase 'site'"
            },
            {
                "command": "maven.goal.deploy",
                "title": "Run Maven Phase 'deploy'"
            },
            {
                "command": "maven.favorites",
                "title": "Run Favorite Maven Command"
            },
            {
                "command": "maven.project.addFavorite",
                "title": "Add Favorite Maven Command"
            },
            {
                "command": "maven.history",
                "title": "Open Maven Command History"
            },
            {
                "command": "maven.project.effectivePom",
                "title": "Show Effective pom file"
            },
            {
                "command": "maven.project.showDependencies",
                "title": "Show Project Dependencies"
            },
            {
                "command": "maven.project.addDependency",
                "title": "Add Dependency to pom file"
            },
            {
                "command": "maven.project.openPom",
                "title": "Open Project pom file"
            },
            {
                "command": "maven.project.generatedResources",
                "title": "Open Generated Maven Files of a Project"
            },
            {
                "command": "maven.project.configuration.update",
                "title": "Update Java Project Configuration"
            },
            {
                "command": "maven.archetype.generate",
                "title": "Generate Project from Maven Archetype"
            },
            {
                "command": "maven.new.module",
                "title": "Create New Maven Module"
            },
            {
                "command": "maven.archetype.update",
                "title": "Update Maven Archetype Catalog"
            }
        ]
    }
}
