Overview Version History Q & A Rating & Review
Maven Assistant
GitHub Repository : VSCodeMavenAssistant
Issues & Bug Reports : GitHub Issues
A powerful Visual Studio Code Maven dependency management and analysis tool that provides dependency tree visualization, conflict detection, intelligent POM file editing, and more.
🚀 Key Features
📊 Dependency Analysis
Dependency Tree Visualization : Interactive dependency tree with expand/collapse support
Dependency Conflict Detection : Automatically identify version conflicts and provide solutions
Transitive Dependency Analysis : Deep analysis of indirect dependency relationships
Dependency Path Tracking : Display complete dependency introduction paths
🛠️ POM File Management
Smart Editor : Dedicated dependency analysis editor
Quick Navigation : Right-click menu for quick jumps to dependency declarations in POM files
Dependency Exclusion : One-click addition of exclusion tags to resolve conflicts
📋 System Requirements
Visual Studio Code : Version 1.101.0 or higher
Java : Java 17 or higher
Maven : Apache Maven 3.6.0 or higher
🔧 Installation
Open Visual Studio Code
Go to Extensions (Ctrl+Shift+X)
Search for "Maven Assistant"
Click Install
Restart VS Code
⚙️ Configuration
Custom Maven Repository Path
By default, Maven Assistant uses the standard Maven local repository path (~/.m2/repository
). You can customize this path through VS Code settings:
Settings UI
Open VS Code Settings (Ctrl+, or Cmd+,)
Search for "maven assistant"
Find "Local Repository Path" setting
Enter your custom Maven repository path (e.g., D:/maven-repo
)
Reload VS Code window (Ctrl+Shift+P → "Developer: Reload Window")
📖 Usage Guide
1. Opening Maven Assistant
After opening a Maven project in VS Code, right click the pom.xml and select option: "Open with...", and select "Dependency Assistant"
2. Dependency Analysis
Viewing Dependency Tree
Click "Dependency Tree" radio button in the "Dependency Management" view
In the opened dependency analyzer:
Click arrows to expand/collapse dependency nodes
Use the search box to quickly locate specific dependencies
View dependency GAV information (GroupId:ArtifactId:Version)
View dependency scope and size information
Conflict Detection and Resolution
Click "Dependency Conflicts" radio button to view conflict list
In the dependency tree mode, conflicting dependencies are marked in red
Right-click on conflicting dependencies and select appropriate actions:
Jump to POM : Navigate to dependency declaration in POM file
Exclude : Add exclusion tag to exclude the dependency
Jump to Left Tree : Locate the dependency in the left dependency tree
Dependency Path Analysis
Click any dependency node in the dependency tree
The right panel will display all introduction paths for that dependency
Each path shows the complete dependency chain: Project → Direct Dependency → ... → Target Dependency
💡 Usage Tips
Quick Dependency Location : Use the search box at the top of the dependency tree to quickly find specific dependencies
Batch Exclusion : For complex dependency conflicts, exclude conflicting dependencies one by one
Path Analysis : Understand dependency introduction sources through dependency paths to help decide whether to exclude
POM Navigation : Use right-click menu to quickly jump to POM files for manual editing
Multi-module Support : The plugin fully supports dependency analysis for Maven multi-module projects
🐛 Known Issues
Initial analysis of large multi-module projects may be slow
Some Maven plugins may not be fully supported in dependency analysis
📄 License
MIT License
Enjoy using Maven Assistant!