@Mojo(name="package",
defaultPhase=PACKAGE,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public class PackageMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.MavenProject |
project |
protected String |
projectBuildDir |
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepositories |
protected org.eclipse.aether.DefaultRepositorySystemSession |
repositorySystemSession |
| Constructor and Description |
|---|
PackageMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
analyzeModuleDependencies() |
protected void |
analyzeModuleDependencies(org.apache.maven.artifact.Artifact artifact) |
protected void |
analyzeModuleDependencies(InputStream moduleXml) |
protected void |
collectDependencies() |
void |
execute() |
protected void |
gatherDependencies() |
protected void |
gatherDependency(org.apache.maven.artifact.Artifact artifact) |
protected void |
gatherDependency(org.eclipse.aether.artifact.Artifact artifact) |
protected void |
gatherDependency(String gav) |
protected List<org.eclipse.aether.repository.RemoteRepository> |
remoteRepositories() |
@Component protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${project.build.directory}")
protected String projectBuildDir
@Parameter(defaultValue="${repositorySystemSession}")
protected org.eclipse.aether.DefaultRepositorySystemSession repositorySystemSession
@Parameter(defaultValue="${project.remoteArtifactRepositories}")
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void collectDependencies()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void analyzeModuleDependencies()
throws IOException
IOExceptionprotected void analyzeModuleDependencies(org.apache.maven.artifact.Artifact artifact)
throws IOException
IOExceptionprotected void analyzeModuleDependencies(InputStream moduleXml) throws IOException
IOExceptionprotected void gatherDependencies()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void gatherDependency(String gav) throws org.eclipse.aether.resolution.ArtifactResolutionException, org.apache.maven.plugin.MojoFailureException
org.eclipse.aether.resolution.ArtifactResolutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void gatherDependency(org.apache.maven.artifact.Artifact artifact)
throws IOException
IOExceptionprotected void gatherDependency(org.eclipse.aether.artifact.Artifact artifact)
throws IOException
IOExceptionprotected List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories()
Copyright © 2015 JBoss by Red Hat. All rights reserved.