Package step.plugins.maven
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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected org.eclipse.aether.RepositorySystemprotected org.apache.maven.execution.MavenSessionFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringartifactToString(org.apache.maven.artifact.Artifact artifact) protected StringartifactToString(org.eclipse.aether.artifact.Artifact artifact) protected step.core.accessors.AbstractAccessor<Resource>protected RemoteResourceManagerprotected ControllerCredentialsorg.apache.maven.project.MavenProjectprotected org.apache.maven.artifact.ArtifactgetProjectArtifact(String artifactClassifier, String groupId, String artifactId, String artifactVersion) protected org.eclipse.aether.artifact.ArtifactgetRemoteArtifact(String groupId, String artifactId, String artifactVersion, String classifier, String extension) getUrl()protected org.apache.maven.plugin.MojoExecutionExceptionlogAndThrow(String errorText, Throwable e) protected LibFileReferenceprepareLibraryFileReferenceForMavenArtifact(org.eclipse.aether.artifact.Artifact remoteLibArtifact) Tries to find the existing step resource with the specified tracking attribute and use this resource as library file for keyword package.protected StringresolveKeywordLibResourceByCriteria(Map<String, String> libStepResourceSearchCriteria) voidsetBuildFinalName(String buildFinalName) voidsetProject(org.apache.maven.project.MavenProject project) voidsetProjectVersion(String projectVersion) voidMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
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
- See Also:
-
-
Constructor Details
-
AbstractStepPluginMojo
public AbstractStepPluginMojo()
-
-
Method Details
-
getUrl
-
setUrl
-
getBuildFinalName
-
setBuildFinalName
-
getProjectVersion
-
setProjectVersion
-
getProject
public org.apache.maven.project.MavenProject getProject() -
setProject
public void setProject(org.apache.maven.project.MavenProject project) -
logAndThrow
-
getControllerCredentials
-
resolveKeywordLibResourceByCriteria
protected String resolveKeywordLibResourceByCriteria(Map<String, String> libStepResourceSearchCriteria) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
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
-
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
-
artifactToString
-
artifactToString
-