com.atlassian.distribution.mojo
Class SourceDistributionMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.atlassian.distribution.mojo.SourceDistributionMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="source",
      aggregator=true,
      requiresProject=true,
      threadSafe=false,
      requiresDependencyResolution=TEST)
public class SourceDistributionMojo
extends org.apache.maven.plugin.AbstractMojo

Checkout source code of the project, download dependency source jar from maven.atlassian.com, download maven, generate build script


Field Summary
protected  org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
           
protected  org.apache.maven.artifact.repository.ArtifactRepository localRepository
           
protected  org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource
           
protected  java.util.List remoteRepositories
           
protected  org.apache.maven.artifact.resolver.ArtifactResolver resolver
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
SourceDistributionMojo()
           
 
Method Summary
 void execute()
           
 
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
 

Field Detail

localRepository

@Parameter(defaultValue="${localRepository}",
           readonly=true)
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository

remoteRepositories

@Parameter(defaultValue="${project.remoteArtifactRepositories}",
           readonly=true)
protected java.util.List remoteRepositories

metadataSource

@Component
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource

resolver

@Component
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver

artifactFactory

@Component
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
Constructor Detail

SourceDistributionMojo

public SourceDistributionMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2014 Atlassian. All Rights Reserved.