Manage Java projects in Visual Studio Code.
Перейти к файлу
Sheng Chen 573598b8ca
build - Prepare for 0.24.1 (#863)
2024-10-31 15:49:39 +08:00
.azure-pipelines build - Update dependencies (#850) 2024-08-27 12:32:57 +08:00
.github/workflows build - Update dependencies (#850) 2024-08-27 12:32:57 +08:00
.vscode ux - display maven and gradle dependencies with pattern 'groupId:artifactId:version ' (#859) 2024-10-31 15:05:11 +08:00
icons
images
jdtls.ext build - Prepare for 0.24.1 (#863) 2024-10-31 15:49:39 +08:00
scripts
src ux - display maven and gradle dependencies with pattern 'groupId:artifactId:version ' (#859) 2024-10-31 15:05:11 +08:00
templates/invisible-project
test ux - display maven and gradle dependencies with pattern 'groupId:artifactId:version ' (#859) 2024-10-31 15:05:11 +08:00
.gitignore
.vscodeignore build: Migrate to 1ES pipeline (#814) 2024-01-15 13:20:55 +08:00
CHANGELOG.md build - Prepare for 0.24.1 (#863) 2024-10-31 15:49:39 +08:00
CONTRIBUTING.md ux - display maven and gradle dependencies with pattern 'groupId:artifactId:version ' (#859) 2024-10-31 15:05:11 +08:00
LICENSE
README.md
SECURITY.md
ThirdPartyNotices.txt
extension.bundle.ts
javaConfig.json
logo.png
main.js
package-lock.json build - Prepare for 0.24.1 (#863) 2024-10-31 15:49:39 +08:00
package.json build - Prepare for 0.24.1 (#863) 2024-10-31 15:49:39 +08:00
package.nls.json feat - Suppport create package from file explorer (#845) 2024-07-08 11:07:43 +08:00
package.nls.zh-cn.json
package.nls.zh-tw.json
tsconfig.json
tslint.json
webpack.config.js

README.md

Project Manager for Java

Manage Java projects in Visual Studio Code

GitHub Actions GitHub Actions GitHub Actions

Overview

A lightweight extension to provide additional Java project explorer features. It works with Language Support for Java by Red Hat to provide the following features:

Project View

project-view

Create Java Projects

create project

Export Jar

Note: For Spring Boot projects, please use the build tool to build the executable jar, for example: mvn package.

export jar

Manage Dependencies

You can work with JAR files directly without any build tools. Go to JAVA PROJECTS view, find the Referenced Libraries node and click the + icon:

Reference JAR Files

If you want to fine-tune this, go to settings.json and look for the java.project.referencedLibraries entry.

"java.project.referencedLibraries": [
    "library/**/*.jar",
    "/home/username/lib/foo.jar"
]

You can tell that the glob pattern is supported. And here's more - you can include/exclude certain files, and attach source JARs:

"java.project.referencedLibraries": {
    "include": [
        "library/**/*.jar",
        "/home/username/lib/foo.jar"
    ],
    "exclude": [
        "library/sources/**"
    ],
    "sources": {
        "library/bar.jar": "library/sources/bar-src.jar"
    }
}

Requirements

Settings

Setting Name Description Default Value
java.dependency.showMembers Specify whether to show the members in the Java Projects explorer. false
java.dependency.syncWithFolderExplorer Specify whether to link Java Projects Explorer with the active editor. true
java.dependency.autoRefresh Specify whether to automatically sync the change from editor to the Java Projects explorer. true
java.dependency.refreshDelay The delay time (ms) the auto refresh is invoked when changes are detected. 2000ms
java.dependency.packagePresentation Specify how to display the package. Supported values are: flat, hierarchical. flat
java.project.exportJar.targetPath The output path of export jar. When this setting is empty , a file explorer will pop up to let the user select the output location. ${workspaceFolder}/${workspaceFolderBasename}.jar
java.project.explorer.showNonJavaResources When enabled, the explorer shows non-Java resources. true

Contribution

Build

  • Prerequirement

    • Node.js
    • Java SDK 11 or above
  • Go to root folder:

npm install
npm run build-server

Telemetry

VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you don't wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry setting to false. Learn more in our FAQ.


This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.