Class MavenArtifact

    • Constructor Detail

      • MavenArtifact

        public MavenArtifact()
    • Method Detail

      • getFileName

        public String getFileName()
        See Also:
      • getFileNameWithBaseVersion

        public String getFileNameWithBaseVersion()
        See Also:
      • getFileNameWithVersion

        public String getFileNameWithVersion()
        See Also:
      • getId

        public String getId()
      • getShortDescription

        public String getShortDescription()
        Gets a human readable description of this artifact
      • getUrl

        public String getUrl()
        URL of the artifact on the maven repository on which it has been deployed if it has been deployed.
        URL of the artifact or null if the artifact has not been deployed (if "mvn deploy" was not invoked)
      • isDeployed

        public boolean isDeployed()
        Artifact has been deployed to a Maven repository ("mvn deploy")
        See Also:
      • hashCode

        public int hashCode()
        hashCode in class Object
      • getBaseVersion

        public String getBaseVersion()
        Gets the base version of this artifact, for example "1.0-SNAPSHOT". In contrast to the org.eclipse.aether.artifact.Artifact#getVersion(), the base version will always refer to the unresolved meta version. org.eclipse.aether.artifact.Artifact#getBaseVersion()
      • setBaseVersion

        public void setBaseVersion​(String baseVersion)
      • getVersion

        public String getVersion()
        Gets the version of this artifact, for example "1.0-20180318.225603-3". Note that in case of meta versions like "1.0-SNAPSHOT", the artifact's version depends on the state of the artifact. Artifacts that have been resolved or deployed will usually have the meta version expanded. org.eclipse.aether.artifact.Artifact#getVersion()
      • setVersion

        public void setVersion​(String version)
      • getGroupId

        public String getGroupId()
      • setGroupId

        public void setGroupId​(String groupId)
      • getArtifactId

        public String getArtifactId()
      • setArtifactId

        public void setArtifactId​(String artifactId)
      • getType

        public String getType()
        The type of this artifact, for example "jar".
      • setType

        public void setType​(String type)
      • getClassifier

        public String getClassifier()
        Gets the classifier of this artifact, for example "sources".
        The classifier or null if none, never empty. org.eclipse.aether.artifact.Artifact#getClassifier()
      • setClassifier

        public void setClassifier​(@Nullable
                                  String classifier)
      • getExtension

        public String getExtension()
        Extension of the generated file
        file extension (e.g. "jar", "war"...) org.eclipse.aether.artifact.Artifact#getExtension()
      • setExtension

        public void setExtension​(String extension)
      • getFile

        public String getFile()
        Not persisted in the database
        absolute path of the generated file in the build agent workspace
      • setFile

        public void setFile​(@Nullable
                            String file)
      • isSnapshot

        public boolean isSnapshot()
      • setSnapshot

        public void setSnapshot​(boolean snapshot)
      • getRepositoryUrl

        public String getRepositoryUrl()

        URL of the Maven repository on which the artifact has been deployed ("mvn deploy").

        Sample: ""

      • setRepositoryUrl

        public void setRepositoryUrl​(@Nullable
                                     String repositoryUrl)
        repositoryUrl - URL of the maven repository the artifact was uploaded to.
        See Also: