|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.atlassian.maven.plugins.sourcerelease.mojos.AbstractSourceDistributionMojo
public abstract class AbstractSourceDistributionMojo
Does most of the heavy lifting for resolving what projects will be checked out
| Field Summary | |
|---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
|
protected String |
artifactId
ArtifactId of the generated source release pom |
protected String |
checkoutDirectoryName
Directory name of the location in the output directory where the source release project will be generated |
protected List |
dependencyExclusions
List of artifacts to exclude from the source release including all their dependencies. |
protected List |
exclusions
List of artifacts to exclude from the source release. |
protected boolean |
generatePom
Upload a POM for this artifact. |
protected String |
groupId
GroupId of the generated pom |
protected String |
groupIdMask
Mask of groupId to include in source release (eg. |
protected boolean |
ignoreFailures
Whether to ignore export failures or not. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
|
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
metadataSource
|
protected File |
outputDirectory
Location of the file. |
protected String |
productName
Product Name of the generated pom (eg. |
protected org.apache.maven.project.MavenProject |
project
|
protected org.apache.maven.project.MavenProjectBuilder |
projectBuilder
|
protected List<org.apache.maven.project.MavenProject> |
reactorProjects
All projects listed in the reactor |
protected ReleaseArtifactMapping[] |
releaseArtifactMappings
Allows overriding of artifacts tag prefixes. |
protected List |
remoteRepositories
|
protected RepositoryMapping[] |
repositoryMappings
Specific source dependency configurations |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver
|
protected boolean |
resolveRoot
Whether to resolve and check out the parent project for modules of a multi-module projects |
protected List |
scmPrefixExclusions
List of exclusions based on scm prefix |
protected org.apache.maven.settings.Settings |
settings
|
protected boolean |
skip
Skips the execution |
protected SourceDependency[] |
sourceDependencies
Deprecated. Use RepositoryMapping instead. Since v1.4.4. |
protected boolean |
useReactor
Whether to use the reactor artifacts for dependency resolution or the artifacts in the source distribution pom. |
protected String |
version
Version of the generated pom |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractSourceDistributionMojo()
|
|
| Method Summary | |
|---|---|
protected void |
applyModuleMapping(Map<String,String> moduleMapping,
org.apache.maven.project.MavenProject mavenProject)
Applies a module mapping for sub modules with paths different from their artifactId. |
protected ReleaseArtifactMapping |
determineReleaseArtifactMappingForProject(org.apache.maven.project.MavenProject project)
|
protected Set<org.apache.maven.project.MavenProject> |
getResolvedProjects()
Resolves the set of projects which will be checked out. |
protected org.apache.maven.project.MavenProject |
resolveRootProject(org.apache.maven.project.MavenProject mavenProject)
Resolves the root, parent project in a multi module project set up. |
| 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 Detail |
|---|
protected File outputDirectory
protected boolean generatePom
protected String groupId
protected String artifactId
protected String version
protected String productName
protected String checkoutDirectoryName
protected String groupIdMask
protected List exclusions
protected List dependencyExclusions
protected boolean skip
protected boolean resolveRoot
protected boolean ignoreFailures
protected SourceDependency[] sourceDependencies
RepositoryMapping instead. Since v1.4.4.
protected List scmPrefixExclusions
protected RepositoryMapping[] repositoryMappings
protected ReleaseArtifactMapping[] releaseArtifactMappings
protected boolean useReactor
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected List<org.apache.maven.project.MavenProject> reactorProjects
protected org.apache.maven.project.MavenProjectBuilder projectBuilder
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
protected org.apache.maven.settings.Settings settings
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected List remoteRepositories
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource
| Constructor Detail |
|---|
public AbstractSourceDistributionMojo()
| Method Detail |
|---|
protected Set<org.apache.maven.project.MavenProject> getResolvedProjects()
throws org.apache.maven.plugin.MojoExecutionException
useReactor is true,
will resolve the initial set of projects based on those in the reactor. Otherwise, projects
will be resolved based on the transitive dependencies of the module invoking this plugin.
This initial set of projects will then undergo a set of transformations if they match any
RepositoryMapping configurations specified.
org.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.maven.project.MavenProject resolveRootProject(org.apache.maven.project.MavenProject mavenProject)
foobarwith resolved scm of
scm:svn:http://svn.atlassian.com/foo/bar/foobar/tags/foo-1.0, will determine the number of path elements to foobar (foo/bar) and traverse up the hierarchy twice to return the MavenProject corresponding to
foo.
mavenProject - the module to start upward resolution from
protected void applyModuleMapping(Map<String,String> moduleMapping,
org.apache.maven.project.MavenProject mavenProject)
moduleMapping - mavenProject - protected ReleaseArtifactMapping determineReleaseArtifactMappingForProject(org.apache.maven.project.MavenProject project)
project - the maven project to look up in the mapping.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||