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 String
protected org.eclipse.aether.RepositorySystem
protected org.apache.maven.execution.MavenSession
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
artifactToString
(org.apache.maven.artifact.Artifact artifact) protected String
artifactToString
(org.eclipse.aether.artifact.Artifact artifact) protected step.core.accessors.AbstractAccessor<Resource>
protected RemoteResourceManager
protected ControllerCredentials
org.apache.maven.project.MavenProject
protected org.apache.maven.artifact.Artifact
getProjectArtifact
(String artifactClassifier, String groupId, String artifactId, String artifactVersion) protected org.eclipse.aether.artifact.Artifact
getRemoteArtifact
(String groupId, String artifactId, String artifactVersion, String classifier, String extension) getUrl()
protected org.apache.maven.plugin.MojoExecutionException
logAndThrow
(String errorText, Throwable e) protected LibFileReference
prepareLibraryFileReferenceForMavenArtifact
(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 String
resolveKeywordLibResourceByCriteria
(Map<String, String> libStepResourceSearchCriteria) void
setBuildFinalName
(String buildFinalName) void
setProject
(org.apache.maven.project.MavenProject project) void
setProjectVersion
(String projectVersion) void
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-