Skip to content

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-sdk

Basic 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

License

Released under the MIT License.

Released under the MIT License.