Class ArtifactNameReader

java.lang.Object
com.exasol.projectkeeper.validators.ArtifactNameReader

public class ArtifactNameReader extends Object
This class reads the file name of the release artifact produced by this pom.
  • Constructor Details

    • ArtifactNameReader

      public ArtifactNameReader(org.apache.maven.project.MavenProject project)
      Create a new instance.
      Parameters:
      project - the Maven project
  • Method Details

    • readFinalArtifactName

      public String readFinalArtifactName()
      Get the file name of the release artifact relative to the target directory.

      The name consists of the finalName configured for the maven-assembly-plugin plus the jar suffix. Placeholders like ${project.version} are already replaced with their actual values.

      Returns:
      file name or null if the assembly plugin is not configured.