maven

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Type string = "java"

Variables

View Source
var Manifests = []string{"pom.xml", "pom.properties"}

Functions

func CheckRelatedFile

func CheckRelatedFile(file string) (string, bool, bool)

func Scan

func Scan(data interface{}) interface{}

Types

type Activation

type Activation struct {
	ActiveByDefault bool                `xml:"activeByDefault" json:"activeByDefault,omitempty"`
	JDK             string              `xml:"jdk" json:"jdk,omitempty"`
	OS              *ActivationOS       `xml:"os" json:"os,omitempty"`
	Property        *ActivationProperty `xml:"property" json:"property,omitempty"`
	File            *ActivationFile     `xml:"file" json:"file,omitempty"`
}

type ActivationFile

type ActivationFile struct {
	Missing string `xml:"missing" json:"missing,omitempty"`
	Exists  string `xml:"exists" json:"exists,omitempty"`
}

type ActivationOS

type ActivationOS struct {
	Name    string `xml:"name" json:"name,omitempty"`
	Family  string `xml:"family" json:"family,omitempty"`
	Arch    string `xml:"arch" json:"arch,omitempty"`
	Version string `xml:"version" json:"version,omitempty"`
}

type ActivationProperty

type ActivationProperty struct {
	Name  string `xml:"name" json:"name,omitempty"`
	Value string `xml:"value" json:"value,omitempty"`
}

type Build

type Build struct {
	SourceDirectory       string      `xml:"sourceDirectory" json:"sourceDirectory,omitempty"`
	ScriptSourceDirectory string      `xml:"scriptSourceDirectory" json:"scriptSourceDirectory,omitempty"`
	TestSourceDirectory   string      `xml:"testSourceDirectory" json:"testSourceDirectory,omitempty"`
	OutputDirectory       string      `xml:"outputDirectory" json:"outputDirectory,omitempty"`
	TestOutputDirectory   string      `xml:"testOutputDirectory" json:"testOutputDirectory,omitempty"`
	Extensions            []Extension `xml:"extensions>extension" json:"extensions,omitempty"`
	BuildBase
}

type BuildBase

type BuildBase struct {
	DefaultGoal      string           `xml:"defaultGoal" json:"defaultGoal,omitempty"`
	Resources        []Resource       `xml:"resources>resource" json:"resources,omitempty"`
	TestResources    []Resource       `xml:"testResources>testResource" json:"testResources,omitempty"`
	Directory        string           `xml:"directory" json:"directory,omitempty"`
	FinalName        string           `xml:"finalName" json:"finalName,omitempty"`
	Filters          []string         `xml:"filters>filter" json:"filters,omitempty"`
	PluginManagement PluginManagement `xml:"pluginManagement" json:"pluginManagement,omitempty"`
	Plugins          []Plugin         `xml:"plugins>plugin" json:"plugins,omitempty"`
}

type CIManagement

type CIManagement struct {
	System    string     `xml:"system" json:"system,omitempty"`
	URL       string     `xml:"url" json:"url,omitempty"`
	Notifiers []Notifier `xml:"notifiers>notifier" json:"notifiers,omitempty"`
}

type Contributor

type Contributor struct {
	Name            string      `xml:"name" json:"name,omitempty"`
	Email           string      `xml:"email" json:"email,omitempty"`
	URL             string      `xml:"url" json:"url,omitempty"`
	Organization    string      `xml:"organization" json:"organization,omitempty"`
	OrganizationURL string      `xml:"organizationUrl" json:"organizationUrl,omitempty"`
	Roles           []string    `xml:"roles>role" json:"roles,omitempty"`
	Timezone        string      `xml:"timezone" json:"timezone,omitempty"`
	Properties      *Properties `xml:"properties" json:"properties,omitempty"`
}

type Dependency

type Dependency struct {
	GroupID    string      `xml:"groupId" json:"groupId,omitempty"`
	ArtifactID string      `xml:"artifactId" json:"artifactId,omitempty"`
	Version    string      `xml:"version" json:"version,omitempty"`
	Type       string      `xml:"type" json:"type,omitempty"`
	Classifier string      `xml:"classifier" json:"classifier,omitempty"`
	Scope      string      `xml:"scope" json:"scope,omitempty"`
	SystemPath string      `xml:"systemPath" json:"systemPath,omitempty"`
	Exclusions []Exclusion `xml:"exclusions>exclusion" json:"exclusions,omitempty"`
	Optional   string      `xml:"optional" json:"optional,omitempty"`
}

type DependencyManagement

type DependencyManagement struct {
	Dependencies []Dependency `xml:"dependencies>dependency" json:"dependencies,omitempty"`
}

type Developer

type Developer struct {
	ID              string      `xml:"id" json:"id,omitempty"`
	Name            string      `xml:"name" json:"name,omitempty"`
	Email           string      `xml:"email" json:"email,omitempty"`
	URL             string      `xml:"url" json:"url,omitempty"`
	Organization    string      `xml:"organization" json:"organization,omitempty"`
	OrganizationURL string      `xml:"organizationUrl" json:"organizationUrl,omitempty"`
	Roles           []string    `xml:"roles>role" json:"roles,omitempty"`
	Timezone        string      `xml:"timezone" json:"timezone,omitempty"`
	Properties      *Properties `xml:"properties" json:"properties,omitempty"`
}

type DistributionManagement

type DistributionManagement struct {
	Repository         *Repository `xml:"repository" json:"repository,omitempty"`
	SnapshotRepository *Repository `xml:"snapshotRepository" json:"snapshotRepository,omitempty"`
	Site               *Site       `xml:"site" json:"site,omitempty"`
	DownloadURL        string      `xml:"downloadUrl" json:"downloadUrl,omitempty"`
	Relocation         *Relocation `xml:"relocation" json:"relocation,omitempty"`
	Status             string      `xml:"status" json:"status,omitempty"`
}

type Exclusion

type Exclusion struct {
	ArtifactID string `xml:"artifactId" json:"artifactId,omitempty"`
	GroupID    string `xml:"groupId" json:"groupId,omitempty"`
}

type Extension

type Extension struct {
	GroupID    string `xml:"groupId" json:"groupId,omitempty"`
	ArtifactID string `xml:"artifactId" json:"artifactId,omitempty"`
	Version    string `xml:"version" json:"version,omitempty"`
}

type IssueManagement

type IssueManagement struct {
	System string `xml:"system" json:"system,omitempty"`
	URL    string `xml:"url" json:"url,omitempty"`
}

type License

type License struct {
	Name         string `xml:"name" json:"name,omitempty"`
	URL          string `xml:"url" json:"url,omitempty"`
	Distribution string `xml:"distribution" json:"distribution,omitempty"`
	Comments     string `xml:"comments" json:"comments,omitempty"`
}

type MailingList

type MailingList struct {
	Name          string   `xml:"name" json:"name,omitempty"`
	Subscribe     string   `xml:"subscribe" json:"subscribe,omitempty"`
	Unsubscribe   string   `xml:"unsubscribe" json:"unsubscribe,omitempty"`
	Post          string   `xml:"post" json:"post,omitempty"`
	Archive       string   `xml:"archive" json:"archive,omitempty"`
	OtherArchives []string `xml:"otherArchives>otherArchive" json:"otherArchives,omitempty"`
}

type Metadata

type Metadata struct {
	XMLName                xml.Name                `xml:"project" json:"project,omitempty"`
	ModelVersion           string                  `xml:"modelVersion" json:"modelVersion,omitempty"`
	Parent                 Parent                  `xml:"parent" json:"parent,omitempty"`
	GroupID                string                  `xml:"groupId" json:"groupId,omitempty"`
	ArtifactID             string                  `xml:"artifactId" json:"artifactId,omitempty"`
	Version                string                  `xml:"version" json:"version,omitempty"`
	Packaging              string                  `xml:"packaging" json:"packaging,omitempty"`
	Name                   string                  `xml:"name" json:"name,omitempty"`
	Description            string                  `xml:"description" json:"description,omitempty"`
	URL                    string                  `xml:"url" json:"url,omitempty"`
	InceptionYear          string                  `xml:"inceptionYear" json:"inceptionYear,omitempty"`
	Organization           *Organization           `xml:"organization" json:"organization,omitempty"`
	Licenses               *[]License              `xml:"licenses>license" json:"licenses,omitempty"`
	Developers             *[]Developer            `xml:"developers>developer" json:"developers,omitempty"`
	Contributors           *[]Contributor          `xml:"contributors>contributor" json:"contributors,omitempty"`
	MailingLists           *[]MailingList          `xml:"mailingLists>mailingList" json:"mailingLists,omitempty"`
	Prerequisites          *Prerequisites          `xml:"prerequisites" json:"prerequisites,omitempty"`
	Modules                []string                `xml:"modules>module" json:"modules,omitempty"`
	SCM                    *Scm                    `xml:"scm" json:"scm,omitempty"`
	IssueManagement        *IssueManagement        `xml:"issueManagement" json:"issueManagement,omitempty"`
	CIManagement           *CIManagement           `xml:"ciManagement" json:"ciManagement,omitempty"`
	DistributionManagement *DistributionManagement `xml:"distributionManagement" json:"distributionManagement,omitempty"`
	DependencyManagement   *DependencyManagement   `xml:"dependencyManagement" json:"dependencyManagement,omitempty"`
	Dependencies           []Dependency            `xml:"dependencies>dependency" json:"dependencies,omitempty"`
	Repositories           []PomRepository         `xml:"repositories>repository" json:"repositories,omitempty"`
	PluginRepositories     []PluginRepository      `xml:"pluginRepositories>pluginRepository" json:"pluginRepositories,omitempty"`
	Build                  *Build                  `xml:"build" json:"build,omitempty"`
	Reporting              *Reporting              `xml:"reporting" json:"reporting,omitempty"`
	Profiles               *[]Profile              `xml:"profiles>profile" json:"profiles,omitempty"`
	Properties             *Properties             `xml:"properties" json:"properties,omitempty"`
}

type Notifier

type Notifier struct {
	Type          string      `xml:"type" json:"type,omitempty"`
	SendOnError   bool        `xml:"sendOnError" json:"sendOnError,omitempty"`
	SendOnFailure bool        `xml:"sendOnFailure" json:"sendOnFailure,omitempty"`
	SendOnSuccess bool        `xml:"sendOnSuccess" json:"sendOnSuccess,omitempty"`
	SendOnWarning bool        `xml:"sendOnWarning" json:"sendOnWarning,omitempty"`
	Address       string      `xml:"address" json:"address,omitempty"`
	Configuration *Properties `xml:"configuration" json:"configuration,omitempty"`
}

type Organization

type Organization struct {
	Name string `xml:"name" json:"name,omitempty"`
	URL  string `xml:"url" json:"url,omitempty"`
}

type POM

type POM struct {
	Path   string
	Files  []string
	Parent string
}

type Parent

type Parent struct {
	GroupID      string `xml:"groupId" json:"groupId,omitempty"`
	ArtifactID   string `xml:"artifactId" json:"artifactId,omitempty"`
	Version      string `xml:"version" json:"version,omitempty"`
	RelativePath string `xml:"relativePath" json:"relativePath,omitempty"`
}

type Plugin

type Plugin struct {
	GroupID      string            `xml:"groupId" json:"groupId,omitempty"`
	ArtifactID   string            `xml:"artifactId" json:"artifactId,omitempty"`
	Version      string            `xml:"version" json:"version,omitempty"`
	Extensions   string            `xml:"extensions" json:"extensions,omitempty"`
	Executions   []PluginExecution `xml:"executions>execution" json:"executions,omitempty"`
	Dependencies []Dependency      `xml:"dependencies>dependency" json:"dependencies,omitempty"`
	Inherited    string            `xml:"inherited" json:"inherited,omitempty"`
}

type PluginExecution

type PluginExecution struct {
	ID        string   `xml:"id" json:"id,omitempty"`
	Phase     string   `xml:"phase" json:"phase,omitempty"`
	Goals     []string `xml:"goals>goal" json:"goals,omitempty"`
	Inherited string   `xml:"inherited" json:"inherited,omitempty"`
}

type PluginManagement

type PluginManagement struct {
	Plugins []Plugin `xml:"plugins>plugin" json:"plugins,omitempty"`
}

type PluginRepository

type PluginRepository struct {
	Releases  *RepositoryPolicy `xml:"releases" json:"releases,omitempty"`
	Snapshots *RepositoryPolicy `xml:"snapshots" json:"snapshots,omitempty"`
	ID        string            `xml:"id" json:"id,omitempty"`
	Name      string            `xml:"name" json:"name,omitempty"`
	URL       string            `xml:"url" json:"url,omitempty"`
	Layout    string            `xml:"layout" json:"layout,omitempty"`
}

type PomRepository

type PomRepository struct {
	UniqueVersion bool              `xml:"uniqueVersion" json:"uniqueVersion,omitempty"`
	Releases      *RepositoryPolicy `xml:"releases" json:"releases,omitempty"`
	Snapshots     *RepositoryPolicy `xml:"snapshots" json:"snapshots,omitempty"`
	ID            string            `xml:"id" json:"id,omitempty"`
	Name          string            `xml:"name" json:"name,omitempty"`
	URL           string            `xml:"url" json:"url,omitempty"`
	Layout        string            `xml:"layout" json:"layout,omitempty"`
}

type Prerequisites

type Prerequisites struct {
	Maven string `xml:"maven" json:"maven,omitempty"`
}

type Profile

type Profile struct {
	ID                     string                  `xml:"id" json:"id,omitempty"`
	Activation             *Activation             `xml:"activation" json:"activation,omitempty"`
	Build                  *BuildBase              `xml:"build" json:"build,omitempty"`
	Modules                []string                `xml:"modules>module" json:"modules,omitempty"`
	DistributionManagement *DistributionManagement `xml:"distributionManagement" json:"distributionManagement,omitempty"`
	Properties             *Properties             `xml:"properties" json:"properties,omitempty"`
	DependencyManagement   *DependencyManagement   `xml:"dependencyManagement" json:"dependencyManagement,omitempty"`
	Dependencies           []Dependency            `xml:"dependencies>dependency" json:"dependencies,omitempty"`
	Repositories           []Repository            `xml:"repositories>repository" json:"repositories,omitempty"`
	PluginRepositories     []PluginRepository      `xml:"pluginRepositories>pluginRepository" json:"pluginRepositories,omitempty"`
	Reporting              *Reporting              `xml:"reporting" json:"reporting,omitempty"`
}

type Properties

type Properties struct {
	Entries map[string]string `json:"entries,omitempty"`
}

type Relocation

type Relocation struct {
	GroupID    string `xml:"groupId" json:"groupId,omitempty"`
	ArtifactID string `xml:"artifactId" json:"artifactId,omitempty"`
	Version    string `xml:"version" json:"version,omitempty"`
	Message    string `xml:"message" json:"message,omitempty"`
}

type ReportSet

type ReportSet struct {
	ID        string   `xml:"id" json:"id,omitempty"`
	Reports   []string `xml:"reports>report" json:"reports,omitempty"`
	Inherited string   `xml:"inherited" json:"inherited,omitempty"`
}

type Reporting

type Reporting struct {
	ExcludeDefaults string            `xml:"excludeDefaults" json:"excludeDefaults,omitempty"`
	OutputDirectory string            `xml:"outputDirectory" json:"outputDirectory,omitempty"`
	Plugins         []ReportingPlugin `xml:"plugins>plugin" json:"plugins,omitempty"`
}

type ReportingPlugin

type ReportingPlugin struct {
	GroupID    string      `xml:"groupId" json:"groupId,omitempty"`
	ArtifactID string      `xml:"artifactId" json:"artifactId,omitempty"`
	Version    string      `xml:"version" json:"version,omitempty"`
	Inherited  string      `xml:"inherited" json:"inherited,omitempty"`
	ReportSets []ReportSet `xml:"reportSets>reportSet" json:"reportSets,omitempty"`
}

type Repository

type Repository struct {
	Type string `json:"type,omitempty" mapstructure:"type"`
	URL  string `json:"url,omitempty" mapstructure:"url"`
}

type RepositoryPolicy

type RepositoryPolicy struct {
	Enabled        string `xml:"enabled" json:"enabled,omitempty"`
	UpdatePolicy   string `xml:"updatePolicy" json:"updatePolicy,omitempty"`
	ChecksumPolicy string `xml:"checksumPolicy" json:"checksumPolicy,omitempty"`
}

type Resource

type Resource struct {
	TargetPath string   `xml:"targetPath" json:"targetPath,omitempty"`
	Filtering  string   `xml:"filtering" json:"filtering,omitempty"`
	Directory  string   `xml:"directory" json:"directory,omitempty"`
	Includes   []string `xml:"includes>include" json:"includes,omitempty"`
	Excludes   []string `xml:"excludes>exclude" json:"excludes,omitempty"`
}

type Scm

type Scm struct {
	Connection          string `xml:"connection" json:"connection,omitempty"`
	DeveloperConnection string `xml:"developerConnection" json:"developerConnection,omitempty"`
	Tag                 string `xml:"tag" json:"tag,omitempty"`
	URL                 string `xml:"url" json:"url,omitempty"`
}

type Site

type Site struct {
	ID   string `xml:"id" json:"id,omitempty"`
	Name string `xml:"name" json:"name,omitempty"`
	URL  string `xml:"url" json:"url,omitempty"`
}

Jump to

Keyboard shortcuts

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