Maven SDK Go
A Go SDK for Maven operations.
Features
- 🔍 Finder: Find JAR files in Maven local repository
- ⚡ Command: Execute Maven commands
- 📦 Local Repository: Parse Maven local repository structure
- 🚀 Installer: Automatically install Maven
Quick Start
Installation
bash
go get github.com/scagogogo/mvn-sdkBasic Usage
go
package main
import (
"fmt"
"github.com/scagogogo/mvn-sdk/pkg/finder"
)
func main() {
// Find JAR file
jarPath, err := finder.FindJar("org.example", "example-artifact", "1.0.0")
if err != nil {
panic(err)
}
fmt.Printf("Found JAR: %s\n", jarPath)
}Documentation
- API Reference - Detailed API documentation
- Examples - Code examples
License
Released under the MIT License.