maven

package
v6.17.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlanEntryMaven                 = "maven"
	PlanEntryJVMApplicationPackage = "jvm-application-package"
	PlanEntryJDK                   = "jdk"
	PlanEntrySyft                  = "syft"
	PlanEntryYarn                  = "yarn"
	PlanEntryNode                  = "node"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationFactory

type ApplicationFactory interface {
	NewApplication(additionalMetadata map[string]interface{}, arguments []string, artifactResolver libbs.ArtifactResolver,
		cache libbs.Cache, command string, bom *libcnb.BOM, applicationPath string, bomScanner sbom.SBOMScanner) (libbs.Application, error)
}

type Build

type Build struct {
	Logger             bard.Logger
	ApplicationFactory ApplicationFactory
	TTY                bool
	// contains filtered or unexported fields
}

func (Build) Build

func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error)

type DaemonMavenManager added in v6.9.0

type DaemonMavenManager struct {
	// contains filtered or unexported fields
}

DaemonMavenManager provides the Maven daemon based Maven distribution

func NewDaemonMavenManager added in v6.9.0

func NewDaemonMavenManager(configResolver libpak.ConfigurationResolver, depResolver libpak.DependencyResolver, depCache libpak.DependencyCache, layersPath string, logger bard.Logger) DaemonMavenManager

func (DaemonMavenManager) Install added in v6.9.0

Install the Maven daemon tool

func (DaemonMavenManager) ShouldInstall added in v6.9.0

func (d DaemonMavenManager) ShouldInstall() bool

ShouldInstall the Maven Daemon

type Detect

type Detect struct{}

func (Detect) Detect

func (Detect) Detect(context libcnb.DetectContext) (libcnb.DetectResult, error)

type Distribution

type Distribution struct {
	LayerContributor libpak.DependencyLayerContributor
	Logger           bard.Logger
}

func (Distribution) Contribute

func (d Distribution) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (Distribution) Name

func (d Distribution) Name() string

type MavenManager added in v6.9.0

type MavenManager interface {
	ShouldInstall() bool
	Install() (string, libcnb.LayerContributor, *libcnb.BOMEntry, error)
}

MavenManager manages the lifecycle of a Maven distribution

type MvndDistribution

type MvndDistribution struct {
	LayerContributor libpak.DependencyLayerContributor
	Logger           bard.Logger
}

func (MvndDistribution) Contribute

func (d MvndDistribution) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (MvndDistribution) Name

func (d MvndDistribution) Name() string

type NoopMavenManager added in v6.9.0

type NoopMavenManager struct {
	// contains filtered or unexported fields
}

NoopMavenManager doesn't provide Maven, but expects it to exist on the path

func NewNoopMavenManager added in v6.9.0

func NewNoopMavenManager(logger bard.Logger) NoopMavenManager

func (NoopMavenManager) Install added in v6.9.0

Install nothing. Slightly misleading as this doesn't install anything, it just makes sure mvn is on the $PATH

func (NoopMavenManager) ShouldInstall added in v6.9.0

func (n NoopMavenManager) ShouldInstall() bool

ShouldInstall determines if Maven is on the $PATH

type StandardMavenManager added in v6.9.0

type StandardMavenManager struct {
	// contains filtered or unexported fields
}

StandardMavenManager provides the standard JVM-based Maven distribution

func NewStandardMavenManager added in v6.9.0

func NewStandardMavenManager(appPath string, configResolver libpak.ConfigurationResolver, depResolver libpak.DependencyResolver, depCache libpak.DependencyCache, layersPath string, logger bard.Logger) StandardMavenManager

func (StandardMavenManager) Install added in v6.9.0

Install the standard JVM-based Maven distribution

func (StandardMavenManager) ShouldInstall added in v6.9.0

func (s StandardMavenManager) ShouldInstall() bool

ShouldInstall the standard JVM-based Maven distribution

type WrapperMavenManager added in v6.9.0

type WrapperMavenManager struct {
	// contains filtered or unexported fields
}

WrapperMavenManager provides Maven through the Maven Wrapper

func NewWrapperMavenManager added in v6.9.0

func NewWrapperMavenManager(appPath string, logger bard.Logger) WrapperMavenManager

func (WrapperMavenManager) Install added in v6.9.0

Install the Maven wrapper tool Slightly misleading as this doesn't install anything, it just makes sure the wrapper can be run The wrapper itself handles any installation, if it's necessary

func (WrapperMavenManager) ShouldInstall added in v6.9.0

func (w WrapperMavenManager) ShouldInstall() bool

ShouldInstall the Maven Wrapper

Jump to

Keyboard shortcuts

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