Documentation
¶
Overview ¶
Package java provides a backend for Java using maven.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JavaBackend = api.LanguageBackend{ Name: "java-maven", Specfile: pomdotxml, Lockfile: pomdotxml, IsAvailable: isAvailable, FilenamePatterns: javaPatterns, Quirks: api.QuirksAddRemoveAlsoLocks, GetPackageDir: func() string { return "target/dependency" }, Search: search, Info: info, Add: addPackages, Remove: removePackages, Install: func(ctx context.Context) { span, ctx := tracer.StartSpanFromContext(ctx, "Maven install") defer span.Finish() util.RunCmd([]string{ "mvn", "de.qaware.maven:go-offline-maven-plugin:resolve-dependencies", "dependency:copy-dependencies", }) }, ListSpecfile: listSpecfile, ListLockfile: listLockfile, Lock: func(ctx context.Context) {}, InstallReplitNixSystemDependencies: nix.DefaultInstallReplitNixSystemDependencies, }
JavaBackend is the UPM language backend for Java using Maven.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type DynamicDependency ¶
type PluginConfiguration ¶
type PluginConfiguration struct { XMLName xml.Name `xml:"configuration"` DynamicDependencies []DynamicDependency `xml:"dynamicDependencies>DynamicDependency"` }
type Project ¶
type Project struct { XMLName xml.Name `xml:"project"` ModelVersion string `xml:"modelVersion"` GroupId string `xml:"groupId"` ArtifactId string `xml:"artifactId"` Version string `xml:"version"` Dependencies []Dependency `xml:"dependencies>dependency"` Plugins []Plugin `xml:"build>plugins>plugin"` }
type SearchDoc ¶
type SearchResult ¶
type SearchResult struct { Response struct { Docs []SearchDoc `json:"docs"` } `json:"response"` }
Click to show internal directories.
Click to hide internal directories.