|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.exoplatform.maven.plugin.exobuild.AbstractDependencyMojo
org.exoplatform.maven.plugin.exobuild.AbstractDependencyFilterMojo
org.exoplatform.maven.plugin.exobuild.AbstractFromDependenciesMojo
org.exoplatform.maven.plugin.exobuild.ExobuildMojo
public class ExobuildMojo
| Field Summary | |
|---|---|
static java.lang.String |
CLASSPATH_TOKEN
|
protected java.lang.String |
classpathScope
Defines the scope of the classpath passed to the plugin. |
protected java.lang.String |
exoBaseDir
|
protected java.lang.String |
exobuildJBossVersion
|
protected java.lang.String |
exobuildTomcatVersion
|
protected java.io.File |
exoDependenciesDir
|
protected java.io.File |
exoWorkingDir
|
protected org.apache.maven.artifact.installer.ArtifactInstaller |
installer
|
protected java.io.File |
outputDirectoryPackager
Default location used for mojo unless overridden in ArtifactItem |
protected java.io.File |
outputDirectoryPackagerConf
Default location used for mojo unless overridden in ArtifactItem |
protected org.apache.maven.artifact.repository.ArtifactRepositoryFactory |
repositoryFactory
|
| Fields inherited from class org.exoplatform.maven.plugin.exobuild.AbstractFromDependenciesMojo |
|---|
copyPom, failOnMissingClassifierArtifact, outputDirectory, stripVersion, useRepositoryLayout, useSubDirectoryPerArtifact, useSubDirectoryPerType |
| Fields inherited from class org.exoplatform.maven.plugin.exobuild.AbstractDependencyFilterMojo |
|---|
classifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, type |
| Fields inherited from class org.exoplatform.maven.plugin.exobuild.AbstractDependencyMojo |
|---|
archiverManager, artifactCollector, artifactMetadataSource, factory, local, outputAbsoluteArtifactFilename, project, reactorProjects, remoteRepos, resolver, silent |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ExobuildMojo()
|
|
| Method Summary | |
|---|---|
protected void |
collectProjectArtifactsAndClasspath(java.util.List artifacts,
java.util.List theClasspathFiles)
Collects the project artifacts in the specified List and the project specific classpath (build output and build test output) Files in the specified List, depending on the plugin classpathScope value. |
void |
copyPoms(java.io.File destDir,
java.util.Set artifacts,
boolean removeVersion)
Copy the pom files associated with the artifacts. |
void |
execute()
Main entry into mojo. |
protected int |
executeCommandLine(org.codehaus.plexus.util.cli.Commandline commandLine,
org.codehaus.plexus.util.cli.StreamConsumer stream1,
org.codehaus.plexus.util.cli.StreamConsumer stream2)
|
void |
executeExobuild(java.lang.String deployTarget)
priority in the execute method will be to use System properties arguments over the pom specification. |
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter |
getMarkedArtifactFilter()
|
protected org.apache.maven.artifact.Artifact |
getResolvedPomArtifact(org.apache.maven.artifact.Artifact artifact)
|
java.util.List |
getSuccessCodes()
|
protected java.lang.String |
getSystemProperty(java.lang.String key)
|
protected boolean |
hasCommandlineArgs()
|
protected java.lang.String[] |
parseCommandlineArgs()
Parses the argument string given by the user. |
protected void |
registerSourceRoots()
Register compile and compile tests source roots if necessary |
void |
setSuccessCodes(java.util.List list)
|
| Methods inherited from class org.exoplatform.maven.plugin.exobuild.AbstractFromDependenciesMojo |
|---|
getOutputDirectory, isCopyPom, isFailOnMissingClassifierArtifact, isStripVersion, isUseRepositoryLayout, isUseSubDirectoryPerArtifact, isUseSubDirectoryPerType, setCopyPom, setFailOnMissingClassifierArtifact, setOutputDirectory, setStripVersion, setUseRepositoryLayout, setUseSubDirectoryPerArtifact, setUseSubDirectoryPerType |
| Methods inherited from class org.exoplatform.maven.plugin.exobuild.AbstractDependencyFilterMojo |
|---|
filterMarkedDependencies, getClassifierTranslatedDependencies, getDependencySets, getMarkersDirectory, getResolvedDependencies, setMarkersDirectory |
| Methods inherited from class org.exoplatform.maven.plugin.exobuild.AbstractDependencyMojo |
|---|
copyFile, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, unpack, unpack |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.io.File exoWorkingDir
protected java.io.File exoDependenciesDir
protected java.lang.String exobuildTomcatVersion
protected java.lang.String exobuildJBossVersion
protected java.lang.String exoBaseDir
protected java.io.File outputDirectoryPackager
protected java.io.File outputDirectoryPackagerConf
protected org.apache.maven.artifact.installer.ArtifactInstaller installer
protected org.apache.maven.artifact.repository.ArtifactRepositoryFactory repositoryFactory
public static final java.lang.String CLASSPATH_TOKEN
protected java.lang.String classpathScope
| Constructor Detail |
|---|
public ExobuildMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.#getDependencies,
#copyArtifact(Artifact, boolean)
public void copyPoms(java.io.File destDir,
java.util.Set artifacts,
boolean removeVersion)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.maven.artifact.Artifact getResolvedPomArtifact(org.apache.maven.artifact.Artifact artifact)
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter getMarkedArtifactFilter()
getMarkedArtifactFilter in class AbstractDependencyFilterMojo
public void executeExobuild(java.lang.String deployTarget)
throws org.apache.maven.plugin.MojoExecutionException
deployTarget - TODO
org.apache.maven.plugin.MojoExecutionException - if a failure happens
protected int executeCommandLine(org.codehaus.plexus.util.cli.Commandline commandLine,
org.codehaus.plexus.util.cli.StreamConsumer stream1,
org.codehaus.plexus.util.cli.StreamConsumer stream2)
throws org.codehaus.plexus.util.cli.CommandLineException
org.codehaus.plexus.util.cli.CommandLineExceptionprotected java.lang.String getSystemProperty(java.lang.String key)
public void setSuccessCodes(java.util.List list)
public java.util.List getSuccessCodes()
protected void collectProjectArtifactsAndClasspath(java.util.List artifacts,
java.util.List theClasspathFiles)
artifacts - the list where to collect the scope specific artifactstheClasspathFiles - the list where to collect the scope specific
output directories
java.lang.NullPointerException - if at least one of the parameter is null
protected java.lang.String[] parseCommandlineArgs()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - for wrong formatted argumentsprotected boolean hasCommandlineArgs()
protected void registerSourceRoots()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||