|
||||||||||
| 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 String |
CLASSPATH_TOKEN
|
protected String |
classpathScope
Defines the scope of the classpath passed to the plugin. |
protected String |
exoBaseDir
|
protected String |
exobuildJBossVersion
|
protected String |
exobuildTomcatVersion
|
protected File |
exoDependenciesDir
|
protected File |
exoWorkingDir
|
protected org.apache.maven.artifact.installer.ArtifactInstaller |
installer
|
protected File |
outputDirectoryPackager
Default location used for mojo unless overridden in ArtifactItem |
protected 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(List artifacts,
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(File destDir,
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(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)
|
List |
getSuccessCodes()
|
protected String |
getSystemProperty(String key)
|
protected boolean |
hasCommandlineArgs()
|
protected String[] |
parseCommandlineArgs()
Parses the argument string given by the user. |
protected void |
registerSourceRoots()
Register compile and compile tests source roots if necessary |
void |
setSuccessCodes(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 File exoWorkingDir
protected File exoDependenciesDir
protected String exobuildTomcatVersion
protected String exobuildJBossVersion
protected String exoBaseDir
protected File outputDirectoryPackager
protected File outputDirectoryPackagerConf
protected org.apache.maven.artifact.installer.ArtifactInstaller installer
protected org.apache.maven.artifact.repository.ArtifactRepositoryFactory repositoryFactory
public static final String CLASSPATH_TOKEN
protected 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(File destDir,
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(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 String getSystemProperty(String key)
public void setSuccessCodes(List list)
public List getSuccessCodes()
protected void collectProjectArtifactsAndClasspath(List artifacts,
List theClasspathFiles)
artifacts - the list where to collect the scope specific artifactstheClasspathFiles - the list where to collect the scope specific
output directories
NullPointerException - if at least one of the parameter is null
protected 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 | |||||||||