Class MavenArtifact
java.lang.Object
org.owasp.dependencycheck.data.nexus.MavenArtifact
- All Implemented Interfaces:
Serializable
Simple bean representing a Maven Artifact.
- Author:
- colezlaw, nhenneaux
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty MavenArtifact.MavenArtifact(String groupId, String artifactId, String version) Creates a MavenArtifact with the given attributes.MavenArtifact(String groupId, String artifactId, String version, String url) Creates a MavenArtifact with the given attributes.Creates a MavenArtifact with the given attributes. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringderivePomUrl(String artifactId, String version, String artifactUrl) Tries to determine the URL to the pom.xml.Gets the artifactId.Gets the artifactUrl.Gets the groupId.Get the value of pomUrl.Gets the version.voidsetArtifactId(String artifactId) Sets the artifactId.voidsetArtifactUrl(String artifactUrl) Sets the artifactUrl.voidsetGroupId(String groupId) Sets the groupId.voidSet the value of pomUrl.voidsetVersion(String version) Sets the version.toString()Returns the Artifact coordinates as a String.
-
Constructor Details
-
MavenArtifact
public MavenArtifact()Creates an empty MavenArtifact. -
MavenArtifact
-
MavenArtifact
-
MavenArtifact
-
-
Method Details
-
derivePomUrl
-
toString
-
getGroupId
-
setGroupId
-
getArtifactId
-
setArtifactId
Sets the artifactId.- Parameters:
artifactId- the artifactId
-
getVersion
-
setVersion
-
getArtifactUrl
-
setArtifactUrl
Sets the artifactUrl.- Parameters:
artifactUrl- the artifactUrl
-
getPomUrl
-
setPomUrl
Set the value of pomUrl.- Parameters:
pomUrl- new value of pomUrl
-