pom

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package pom handles the generation of Maven pom.xml files for a Java library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(libraryPath, libraryID string) error

Generate generates the pom.xml files for a library. Precondition: module directories exist except for for the *-bom.

func UpdateVersions

func UpdateVersions(repoDir, sourcePath, outputDir, libraryID, version string) error

UpdateVersions updates the versions of all pom.xml files in a given directory. It appends the "-SNAPSHOT" suffix to the version given the version parameter. If the directory is not present, this function creates it.

Types

type Module

type Module struct {
	GroupId    string
	ArtifactId string
	Version    string
}

Module represents a Maven module.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL