Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency struct { GroupId string `xml:"groupId"` ArtifactId string `xml:"artifactId"` Version string `xml:"version"` Scope string `xml:"scope"` Optional bool `xml:"optional"` Exclusions []Dependency `xml:"exclusions>exclusion"` }
func NewDep ¶
func NewDep(groupId, artifactId, version string) *Dependency
func (*Dependency) JarName ¶
func (d *Dependency) JarName() string
func (*Dependency) Path ¶
func (d *Dependency) Path() string
func (*Dependency) PomName ¶
func (d *Dependency) PomName() string
func (*Dependency) RootName ¶
func (d *Dependency) RootName() string
func (*Dependency) String ¶
func (d *Dependency) String() string
type Pom ¶
type Pom struct { Name string `xml:"name"` ArtifactId string `xml:"artifactId"` Packaging string `xml:"packaging"` Version string `xml:"version"` // If no version, use parents' Parent Dependency `xml:"parent"` Dependencies []Dependency `xml:"dependencies>dependency"` ManagedDependencies []Dependency `xml:"dependencyManagement>dependencies>dependency"` Props PropertyList `xml:"properties"` }
func (*Pom) Deps ¶
func (pom *Pom) Deps() []*Dependency
func (*Pom) GetParent ¶
func (pom *Pom) GetParent() *Dependency
func (*Pom) Properties ¶
type PropertyList ¶
type PropertyList struct {
Property []Property `xml:",any"`
}
type Resolver ¶
func NewResolver ¶
func (*Resolver) GetDeps ¶
func (resolver *Resolver) GetDeps(dep *Dependency) []*Dependency
func (*Resolver) GetProperties ¶
func (resolver *Resolver) GetProperties(dep *Dependency) map[string]string
Click to show internal directories.
Click to hide internal directories.