Documentation ¶
Index ¶
- func GetFirstTwoPartsOfGroupId(groupId string) (string, error)
- func Marshall(project *Model, indent string) ([]byte, error)
- func SetDependencyVersionElement(dependencies *Dependencies, dep Dependency, newVersion string) bool
- type Activation
- type ActivationFile
- type ActivationOS
- type ActivationProperty
- type Any
- type Build
- type BuildBase
- type BuildBasePlugins
- type BuildPlugins
- type CiManagement
- type Contributor
- type Contributors
- type Dependencies
- type Dependency
- type DependencyManagement
- type DeploymentRepository
- type Developer
- type Developers
- type DistributionManagement
- type Excludes
- type Exclusion
- type Exclusions
- type Executions
- type Extension
- type Extensions
- type Filters
- type Goals
- type Includes
- type IssueManagement
- type License
- type Licenses
- type MailingList
- type MailingLists
- type Model
- func (model *Model) FindDependency(groupId string, artifactId string) (Dependency, error)
- func (model *Model) GetDependencyVersion(dep Dependency) (string, error)
- func (model *Model) GetGroupId() (groupId string)
- func (model *Model) GetPluginVersion(plugin Plugin) (string, error)
- func (model *Model) GetSecondPartyGroupId() (string, error)
- func (model *Model) InsertDependency(dep Dependency)
- func (model *Model) RemoveDependency(dep Dependency) error
- func (model *Model) ReplaceVersionTagForDependency(dep Dependency) error
- func (model *Model) ReplaceVersionTagForDependencyManagement(dep Dependency) error
- func (model *Model) SetDependencyVersion(dep Dependency, newVersion string) error
- func (model *Model) SetPluginVersion(plugin Plugin, newVersion string) error
- func (model *Model) WriteToFile(outputFile string, indent string) error
- type Modules
- type Notifier
- type Notifiers
- type Organization
- type OtherArchives
- type Parent
- type Plugin
- type PluginExecution
- type PluginManagement
- type PluginManagementPlugins
- type PluginRepositories
- type Plugins
- type Prerequisites
- type Profile
- type Profiles
- type Relocation
- type ReportPlugin
- type ReportSet
- type ReportSets
- type Reporting
- type Reports
- type Repositories
- type Repository
- type RepositoryPolicy
- type Resource
- type Resources
- type Roles
- type Scm
- type Site
- type TestResources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDependencyVersionElement ¶
func SetDependencyVersionElement(dependencies *Dependencies, dep Dependency, newVersion string) bool
Types ¶
type Activation ¶
type Activation struct { Comment string `xml:",comment"` ActiveByDefault bool `xml:"activeByDefault,omitempty"` Jdk string `xml:"jdk,omitempty"` Os *ActivationOS `xml:"os,omitempty"` Property *ActivationProperty `xml:"property,omitempty"` File *ActivationFile `xml:"file,omitempty"` }
type ActivationFile ¶
type ActivationOS ¶
type ActivationProperty ¶
type Any ¶
type Build ¶
type Build struct { Comment string `xml:",comment"` SourceDirectory string `xml:"sourceDirectory,omitempty"` ScriptSourceDirectory string `xml:"scriptSourceDirectory,omitempty"` TestSourceDirectory string `xml:"testSourceDirectory,omitempty"` OutputDirectory string `xml:"outputDirectory,omitempty"` TestOutputDirectory string `xml:"testOutputDirectory,omitempty"` Extensions *Extensions `xml:"extensions,omitempty"` DefaultGoal string `xml:"defaultGoal,omitempty"` Resources *Resources `xml:"resources,omitempty"` TestResources *TestResources `xml:"testResources,omitempty"` Directory string `xml:"directory,omitempty"` FinalName string `xml:"finalName,omitempty"` Filters *Filters `xml:"filters,omitempty"` PluginManagement *PluginManagement `xml:"pluginManagement,omitempty"` Plugins *BuildPlugins `xml:"plugins,omitempty"` }
type BuildBase ¶
type BuildBase struct { Comment string `xml:",comment"` DefaultGoal string `xml:"defaultGoal,omitempty"` Resources *Resources `xml:"resources,omitempty"` TestResources *TestResources `xml:"testResources,omitempty"` Directory string `xml:"directory,omitempty"` FinalName string `xml:"finalName,omitempty"` Filters *Filters `xml:"filters,omitempty"` PluginManagement *PluginManagement `xml:"pluginManagement,omitempty"` Plugins *BuildBasePlugins `xml:"plugins,omitempty"` }
type BuildBasePlugins ¶
type BuildPlugins ¶
type CiManagement ¶
type Contributor ¶
type Contributor struct { Comment string `xml:",comment"` Name string `xml:"name,omitempty"` Email string `xml:"email,omitempty"` Url string `xml:"url,omitempty"` Organization string `xml:"organization,omitempty"` OrganizationUrl string `xml:"organizationUrl,omitempty"` Roles *Roles `xml:"roles,omitempty"` Timezone string `xml:"timezone,omitempty"` Properties *Any `xml:"properties,omitempty"` }
type Contributors ¶
type Contributors struct { Comment string `xml:",comment"` Contributor []Contributor `xml:"contributor,omitempty"` }
type Dependencies ¶
type Dependencies struct { Dependency []Dependency `xml:"dependency,omitempty"` Comment string `xml:",comment"` }
func (Dependencies) FindArtifact ¶
func (deps Dependencies) FindArtifact(artifactId string) (Dependency, error)
func (Dependencies) FindDuplicates ¶
func (deps Dependencies) FindDuplicates() (duplicates []Dependency)
type Dependency ¶
type Dependency struct { Comment string `xml:",comment"` GroupId string `xml:"groupId,omitempty"` ArtifactId string `xml:"artifactId,omitempty"` Version string `xml:"version,omitempty"` Type_ string `xml:"type,omitempty"` Classifier string `xml:"classifier,omitempty"` Scope string `xml:"scope,omitempty"` SystemPath string `xml:"systemPath,omitempty"` Exclusions *Exclusions `xml:"exclusions,omitempty"` Optional string `xml:"optional,omitempty"` }
type DependencyManagement ¶
type DependencyManagement struct { Comment string `xml:",comment"` Dependencies *Dependencies `xml:"dependencies,omitempty"` }
type DeploymentRepository ¶
type DeploymentRepository struct { Comment string `xml:",comment"` UniqueVersion bool `xml:"uniqueVersion,omitempty"` Releases *RepositoryPolicy `xml:"releases,omitempty"` Snapshots *RepositoryPolicy `xml:"snapshots,omitempty"` Id string `xml:"id,omitempty"` Name string `xml:"name,omitempty"` Url string `xml:"url,omitempty"` Layout string `xml:"layout,omitempty"` }
type Developer ¶
type Developer struct { Comment string `xml:",comment"` Id string `xml:"id,omitempty"` Name string `xml:"name,omitempty"` Email string `xml:"email,omitempty"` Url string `xml:"url,omitempty"` Organization string `xml:"organization,omitempty"` OrganizationUrl string `xml:"organizationUrl,omitempty"` Roles *Roles `xml:"roles,omitempty"` Timezone string `xml:"timezone,omitempty"` Properties *Any `xml:"properties,omitempty"` }
type Developers ¶
type DistributionManagement ¶
type DistributionManagement struct { Comment string `xml:",comment"` Repository *DeploymentRepository `xml:"repository,omitempty"` SnapshotRepository *DeploymentRepository `xml:"snapshotRepository,omitempty"` Site *Site `xml:"site,omitempty"` DownloadUrl string `xml:"downloadUrl,omitempty"` Relocation *Relocation `xml:"relocation,omitempty"` Status string `xml:"status,omitempty"` }
type Exclusions ¶
type Executions ¶
type Executions struct { Comment string `xml:",comment"` Execution []PluginExecution `xml:"execution,omitempty"` }
type Extensions ¶
type IssueManagement ¶
type MailingList ¶
type MailingList struct { Comment string `xml:",comment"` Name string `xml:"name,omitempty"` Subscribe string `xml:"subscribe,omitempty"` Unsubscribe string `xml:"unsubscribe,omitempty"` Post string `xml:"post,omitempty"` Archive string `xml:"archive,omitempty"` OtherArchives *OtherArchives `xml:"otherArchives,omitempty"` }
type MailingLists ¶
type MailingLists struct { Comment string `xml:",comment"` MailingList []MailingList `xml:"mailingList,omitempty"` }
type Model ¶
type Model struct { Comment string `xml:",comment"` XMLName xml.Name `xml:"project"` Xmlns string `xml:"xmlns,attr"` SchemaLocation string `xml:"xsi,attr"` Xsi string `xml:"schemaLocation,attr"` ModelVersion string `xml:"modelVersion,omitempty"` Parent *Parent `xml:"parent,omitempty"` GroupId string `xml:"groupId,omitempty"` ArtifactId string `xml:"artifactId,omitempty"` Version string `xml:"version,omitempty"` Packaging string `xml:"packaging,omitempty"` Name string `xml:"name,omitempty"` Description string `xml:"description,omitempty"` Url string `xml:"url,omitempty"` InceptionYear string `xml:"inceptionYear,omitempty"` Organization *Organization `xml:"organization,omitempty"` Licenses *Licenses `xml:"licenses,omitempty"` Developers *Developers `xml:"developers,omitempty"` Contributors *Contributors `xml:"contributors,omitempty"` MailingLists *MailingLists `xml:"mailingLists,omitempty"` Prerequisites *Prerequisites `xml:"prerequisites,omitempty"` Modules *Modules `xml:"modules,omitempty"` Scm *Scm `xml:"scm,omitempty"` IssueManagement *IssueManagement `xml:"issueManagement,omitempty"` CiManagement *CiManagement `xml:"ciManagement,omitempty"` DistributionManagement *DistributionManagement `xml:"distributionManagement,omitempty"` Properties *Any `xml:"properties,omitempty"` DependencyManagement *DependencyManagement `xml:"dependencyManagement,omitempty"` Dependencies *Dependencies `xml:"dependencies,omitempty"` Repositories *Repositories `xml:"repositories,omitempty"` PluginRepositories *PluginRepositories `xml:"pluginRepositories,omitempty"` Build *Build `xml:"build,omitempty"` Reports *Any `xml:"reports,omitempty"` Reporting *Reporting `xml:"reporting,omitempty"` Profiles *Profiles `xml:"profiles,omitempty"` }
func GetModelFrom ¶
func (*Model) FindDependency ¶
func (model *Model) FindDependency(groupId string, artifactId string) (Dependency, error)
func (*Model) GetDependencyVersion ¶
func (model *Model) GetDependencyVersion(dep Dependency) (string, error)
func (*Model) GetGroupId ¶
func (*Model) GetPluginVersion ¶
func (*Model) GetSecondPartyGroupId ¶
func (*Model) InsertDependency ¶
func (model *Model) InsertDependency(dep Dependency)
func (*Model) RemoveDependency ¶
func (model *Model) RemoveDependency(dep Dependency) error
func (*Model) ReplaceVersionTagForDependency ¶
func (model *Model) ReplaceVersionTagForDependency(dep Dependency) error
func (*Model) ReplaceVersionTagForDependencyManagement ¶
func (model *Model) ReplaceVersionTagForDependencyManagement(dep Dependency) error
func (*Model) SetDependencyVersion ¶
func (model *Model) SetDependencyVersion(dep Dependency, newVersion string) error
func (*Model) SetPluginVersion ¶
type Notifier ¶
type Notifier struct { Comment string `xml:",comment"` Type_ string `xml:"type,omitempty"` SendOnError bool `xml:"sendOnError,omitempty"` SendOnFailure bool `xml:"sendOnFailure,omitempty"` SendOnSuccess bool `xml:"sendOnSuccess,omitempty"` SendOnWarning bool `xml:"sendOnWarning,omitempty"` Address string `xml:"address,omitempty"` Configuration *Any `xml:"configuration,omitempty"` }
type Organization ¶
type OtherArchives ¶
type Plugin ¶
type Plugin struct { Comment string `xml:",comment"` GroupId string `xml:"groupId,omitempty"` ArtifactId string `xml:"artifactId,omitempty"` Version string `xml:"version,omitempty"` Extensions string `xml:"extensions,omitempty"` Executions *Executions `xml:"executions,omitempty"` Dependencies *Dependencies `xml:"dependencies,omitempty"` Goals *Any `xml:"goals,omitempty"` Inherited string `xml:"inherited,omitempty"` Configuration *Any `xml:"configuration,omitempty"` }
type PluginExecution ¶
type PluginManagement ¶
type PluginManagement struct { Comment string `xml:",comment"` Plugins *PluginManagementPlugins `xml:"plugins,omitempty"` }
type PluginManagementPlugins ¶
type PluginRepositories ¶
type PluginRepositories struct { PluginRepository []Repository `xml:"pluginRepository,omitempty"` Comment string `xml:",comment"` }
type Plugins ¶
type Plugins struct { Plugin []ReportPlugin `xml:"plugin,omitempty"` Comment string `xml:",comment"` }
type Prerequisites ¶
type Profile ¶
type Profile struct { Comment string `xml:",comment"` Id string `xml:"id,omitempty"` Activation *Activation `xml:"activation,omitempty"` Build *BuildBase `xml:"build,omitempty"` Modules *Modules `xml:"modules,omitempty"` DistributionManagement *DistributionManagement `xml:"distributionManagement,omitempty"` Properties *Any `xml:"properties,omitempty"` DependencyManagement *DependencyManagement `xml:"dependencyManagement,omitempty"` Dependencies *Dependencies `xml:"dependencies,omitempty"` Repositories *Repositories `xml:"repositories,omitempty"` PluginRepositories *PluginRepositories `xml:"pluginRepositories,omitempty"` Reports *Any `xml:"reports,omitempty"` Reporting *Reporting `xml:"reporting,omitempty"` }
type Relocation ¶
type ReportPlugin ¶
type ReportPlugin struct { Comment string `xml:",comment"` GroupId string `xml:"groupId,omitempty"` ArtifactId string `xml:"artifactId,omitempty"` Version string `xml:"version,omitempty"` ReportSets *ReportSets `xml:"reportSets,omitempty"` Inherited string `xml:"inherited,omitempty"` Configuration *Any `xml:"configuration,omitempty"` }
type ReportSets ¶
type Repositories ¶
type Repositories struct { Repository []Repository `xml:"repository,omitempty"` Comment string `xml:",comment"` }
type Repository ¶
type Repository struct { Comment string `xml:",comment"` Releases *RepositoryPolicy `xml:"releases,omitempty"` Snapshots *RepositoryPolicy `xml:"snapshots,omitempty"` Id string `xml:"id,omitempty"` Name string `xml:"name,omitempty"` Url string `xml:"url,omitempty"` Layout string `xml:"layout,omitempty"` }
type RepositoryPolicy ¶
type TestResources ¶
Click to show internal directories.
Click to hide internal directories.