Class AbstractStepPluginMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
step.plugins.maven.AbstractStepPluginMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractRunAutomationPackagesMojo, AbstractUploadKeywordsPackageMojo

public abstract class AbstractStepPluginMojo extends org.apache.maven.plugin.AbstractMojo
  • Field Details

    • session

      @Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session
    • repositorySystem

      @Component protected org.eclipse.aether.RepositorySystem repositorySystem
    • ID_FIELD

      protected static final String ID_FIELD
      See Also:
  • Constructor Details

    • AbstractStepPluginMojo

      public AbstractStepPluginMojo()
  • Method Details

    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getBuildFinalName

      public String getBuildFinalName()
    • setBuildFinalName

      public void setBuildFinalName(String buildFinalName)
    • getProjectVersion

      public String getProjectVersion()
    • setProjectVersion

      public void setProjectVersion(String projectVersion)
    • getProject

      public org.apache.maven.project.MavenProject getProject()
    • setProject

      public void setProject(org.apache.maven.project.MavenProject project)
    • logAndThrow

      protected org.apache.maven.plugin.MojoExecutionException logAndThrow(String errorText, Throwable e)
    • getControllerCredentials

      protected ControllerCredentials getControllerCredentials()
    • resolveKeywordLibResourceByCriteria

      protected String resolveKeywordLibResourceByCriteria(Map<String,String> libStepResourceSearchCriteria) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • createRemoteResourcesAccessor

      protected step.core.accessors.AbstractAccessor<Resource> createRemoteResourcesAccessor()
    • getRemoteArtifact

      protected org.eclipse.aether.artifact.Artifact getRemoteArtifact(String groupId, String artifactId, String artifactVersion, String classifier, String extension) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getProjectArtifact

      protected org.apache.maven.artifact.Artifact getProjectArtifact(String artifactClassifier, String groupId, String artifactId, String artifactVersion)
    • prepareLibraryFileReferenceForMavenArtifact

      protected LibFileReference prepareLibraryFileReferenceForMavenArtifact(org.eclipse.aether.artifact.Artifact remoteLibArtifact) throws org.apache.maven.plugin.MojoExecutionException
      Tries to find the existing step resource with the specified tracking attribute and use this resource as library file for keyword package. Otherwise, uploads the remote artifact to Step and uses this just uploaded resource as library file
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • createResourceManager

      protected RemoteResourceManager createResourceManager()
    • artifactToString

      protected String artifactToString(org.apache.maven.artifact.Artifact artifact)
    • artifactToString

      protected String artifactToString(org.eclipse.aether.artifact.Artifact artifact)