How to Set Up a Java Development Environment with Maven, IDEA, and VSCode
This guide walks you through installing Java 1.8, configuring Maven with Alibaba mirrors, setting up IDEA for Maven builds and Lombok, and installing VSCode with a collection of useful extensions to create a complete Java development workspace.
PassJava online documentation (www.tech.jayh.club) provides a full tutorial series; follow the steps below to configure your local Java development environment.
Development Tool Configuration
1. Install Java locally
Your local Java version is 1.8.0_131. java -version For Java installation and environment variable setup, see the linked blog post.
2. Configure Maven locally
(1) Download Maven and copy the folder to C:\apache-maven-3.6.2.
(2) Add Maven to the system PATH.
Run mvn -v in cmder; if the command is not found, restart cmder.
(3) Set Maven proxy to Alibaba Cloud: https://maven.aliyun.com/mvn/view and copy the provided configuration.
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>Alibaba Cloud Public Repository</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>(4) Configure Maven to compile with JDK 1.8.
<profiles>
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
</profiles>3. IDEA Maven Build Tool Configuration
Configure IDEA to use the Maven settings defined above (see screenshot).
4. Install Lombok Plugin in IDEA
Lombok simplifies JavaBean development.
5. Install MyBatisX Plugin in IDEA
MyBatisX helps locate XML files from mapper methods when using MyBatis‑Plus.
6. Install VSCode
Download from https://code.visualstudio.com/ .
7. Add VSCode Extensions
Auto Close Tag – automatically adds closing tags.
Auto Rename Tag – renames matching tags together.
Chinese – Simplified Chinese language pack.
ESLint – JavaScript/ES6 syntax checking.
HTML CSS Support – assists CSS development.
HTML Snippets – provides HTML code snippets.
Live Server – launches a local development server.
Open in Browser – opens files in a browser.
Vetur – Vue.js development support.
Minapp – assists mini‑program development.
Follow the illustrated screenshots for each extension installation.
Stay tuned for more content and scan the QR code to follow the public account for additional resources.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Wukong Talks Architecture
Explaining distributed systems and architecture through stories. Author of the "JVM Performance Tuning in Practice" column, open-source author of "Spring Cloud in Practice PassJava", and independently developed a PMP practice quiz mini-program.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
