public abstract class AbstractLibertySupport
extends org.codehaus.mojo.pluginsupport.MojoSupport
| Modifier and Type | Field and Description |
|---|---|
protected org.codehaus.mojo.pluginsupport.ant.AntHelper |
ant |
protected org.apache.maven.artifact.repository.ArtifactRepository |
artifactRepository |
protected org.apache.maven.project.ProjectBuilder |
mavenProjectBuilder |
protected org.apache.maven.project.MavenProject |
project
Maven Project
|
protected List<org.apache.maven.project.MavenProject> |
reactorProjects |
protected org.eclipse.aether.RepositorySystemSession |
repoSession |
protected List<org.eclipse.aether.repository.RemoteRepository> |
repositories |
protected org.eclipse.aether.RepositorySystem |
repositorySystem |
protected org.apache.maven.execution.MavenSession |
session |
protected org.apache.maven.settings.Settings |
settings
The build settings.
|
| Constructor and Description |
|---|
AbstractLibertySupport() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.artifact.Artifact |
createArtifact(org.codehaus.mojo.pluginsupport.util.ArtifactItem item)
Create a new artifact.
|
protected org.codehaus.mojo.pluginsupport.util.ArtifactItem |
createArtifactItem(String groupId,
String artifactId,
String type,
String version) |
protected boolean |
dependencyTrailContainsArtifact(String gaCoords,
String version,
List<String> depTrail) |
protected void |
findTransitiveDependencies(org.apache.maven.artifact.Artifact resolvedArtifact,
Set<org.apache.maven.artifact.Artifact> resolvedArtifacts,
Set<org.apache.maven.artifact.Artifact> resolvedDependencies) |
protected org.apache.maven.artifact.Artifact |
getArtifact(org.codehaus.mojo.pluginsupport.util.ArtifactItem item)
Resolves the Artifact from the remote repository if necessary.
|
protected org.apache.maven.artifact.Artifact |
getArtifact(String groupId,
String artifactId,
String type,
String version)
Equivalent to
getArtifact(ArtifactItem) with an ArtifactItem
defined by the given the coordinates. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
getArtifactRepository() |
protected org.apache.maven.project.MavenProject |
getProject() |
protected org.apache.maven.project.MavenProject |
getReactorMavenProject(org.apache.maven.artifact.Artifact artifact) |
protected Set<org.apache.maven.artifact.Artifact> |
getResolvedDependencyWithTransitiveDependencies(String groupId,
String artifactId,
String version,
String type)
Find resolved dependencies with matching groupId:artifactId:version.
|
protected void |
init() |
protected boolean |
isReactorMavenProject(org.apache.maven.artifact.Artifact artifact) |
contextualize, doExecute, execute, getArtifactFactory, getArtifactResolver, getProjectArtifacts, getProjectArtifacts, getProjectArtifacts, resolveArtifact, resolveArtifact@Parameter(defaultValue="${project}",
required=true,
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${localRepository}",
required=true,
readonly=true)
protected org.apache.maven.artifact.repository.ArtifactRepository artifactRepository
@Parameter(defaultValue="${settings}",
required=true,
readonly=true)
protected org.apache.maven.settings.Settings settings
@Component(role=org.codehaus.mojo.pluginsupport.ant.AntHelper.class) protected org.codehaus.mojo.pluginsupport.ant.AntHelper ant
@Component protected org.eclipse.aether.RepositorySystem repositorySystem
@Parameter(defaultValue="${repositorySystemSession}",
readonly=true,
required=true)
protected org.eclipse.aether.RepositorySystemSession repoSession
@Parameter(defaultValue="${project.remoteProjectRepositories}",
readonly=true,
required=true)
protected List<org.eclipse.aether.repository.RemoteRepository> repositories
@Component protected org.apache.maven.project.ProjectBuilder mavenProjectBuilder
@Parameter(defaultValue="${session}",
readonly=true)
protected org.apache.maven.execution.MavenSession session
@Parameter(property="reactorProjects",
required=true,
readonly=true)
protected List<org.apache.maven.project.MavenProject> reactorProjects
protected org.apache.maven.project.MavenProject getProject()
getProject in class org.codehaus.mojo.pluginsupport.MojoSupportprotected org.apache.maven.artifact.repository.ArtifactRepository getArtifactRepository()
getArtifactRepository in class org.codehaus.mojo.pluginsupport.MojoSupportprotected void init()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
init in class org.codehaus.mojo.pluginsupport.MojoSupportorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected boolean isReactorMavenProject(org.apache.maven.artifact.Artifact artifact)
protected org.apache.maven.project.MavenProject getReactorMavenProject(org.apache.maven.artifact.Artifact artifact)
protected org.apache.maven.artifact.Artifact getArtifact(org.codehaus.mojo.pluginsupport.util.ArtifactItem item)
throws org.apache.maven.plugin.MojoExecutionException
getArtifact in class org.codehaus.mojo.pluginsupport.MojoSupportitem - The item to create an artifact for; must not be nullorg.apache.maven.plugin.MojoExecutionException - Failed to create artifactprotected org.apache.maven.artifact.Artifact getArtifact(String groupId, String artifactId, String type, String version) throws org.apache.maven.plugin.MojoExecutionException
getArtifact(ArtifactItem) with an ArtifactItem
defined by the given the coordinates.groupId - The group IDartifactId - The artifact IDtype - The type (e.g. jar)version - The version, or null to retrieve it from the dependency list
or from the DependencyManagement section of the pom.org.apache.maven.plugin.MojoExecutionException - Failed to create artifactprotected org.codehaus.mojo.pluginsupport.util.ArtifactItem createArtifactItem(String groupId, String artifactId, String type, String version)
protected Set<org.apache.maven.artifact.Artifact> getResolvedDependencyWithTransitiveDependencies(String groupId, String artifactId, String version, String type) throws org.apache.maven.plugin.MojoExecutionException
groupId - String specifying the groupId of the Maven artifact to copy.artifactId - String specifying the artifactId of the Maven artifact to copy.version - String specifying the version of the Maven artifact to copy.type - String specifying the type of the Maven artifact to copy.org.apache.maven.plugin.MojoExecutionExceptionprotected void findTransitiveDependencies(org.apache.maven.artifact.Artifact resolvedArtifact,
Set<org.apache.maven.artifact.Artifact> resolvedArtifacts,
Set<org.apache.maven.artifact.Artifact> resolvedDependencies)
protected boolean dependencyTrailContainsArtifact(String gaCoords, String version, List<String> depTrail)
protected org.apache.maven.artifact.Artifact createArtifact(org.codehaus.mojo.pluginsupport.util.ArtifactItem item)
throws org.apache.maven.plugin.MojoExecutionException
createArtifact in class org.codehaus.mojo.pluginsupport.MojoSupportitem - The item to create an artifact fororg.apache.maven.plugin.MojoExecutionException - Failed to create artifactCopyright © 2021 the original author or authors.