Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PomProjectByParentPath ¶
func PomProjectByParentPath(archivePath string) (map[string]PomProject, error)
func PomPropertiesByParentPath ¶
func PomPropertiesByParentPath(archivePath string) (map[string]PomProperties, error)
Types ¶
type PomDependency ¶
type PomParent ¶
type PomParent struct { GroupID string `json:"groupId"` ArtifactID string `json:"artifactId"` Version string `json:"version"` }
PomParent contains the fields within the <parent> tag in a pom.xml file
type PomProject ¶
type PomProject struct { Path string `json:"path"` Parent *PomParent `json:"parent,omitempty"` GroupID string `json:"groupId"` ArtifactID string `json:"artifactId"` Version string `json:"version"` Name string `json:"name"` Description string `json:"description,omitempty"` URL string `json:"url,omitempty"` Licenses []string `json:"licenses,omitempty"` Dependencies []PomDependency `json:"dependencies,omitempty"` }
PomProject represents fields of interest extracted from a Java archive's pom.xml file. See https://maven.apache.org/ref/3.6.3/maven-model/maven.html for more details.
type PomProperties ¶
type PomProperties struct { Path string `mapstructure:"path" json:"path"` Name string `mapstructure:"name" json:"name"` GroupID string `mapstructure:"groupId" json:"groupId" ` ArtifactID string `mapstructure:"artifactId" json:"artifactId" ` Version string `mapstructure:"version" json:"version"` Extra map[string]string `mapstructure:",remain" json:"extraFields,omitempty"` }
PomProperties represents the fields of interest extracted from a Java archive's pom.properties file.
Click to show internal directories.
Click to hide internal directories.