|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.sun.enterprise.build.DistributionAssemblyMojo
com.sun.enterprise.build.RunMojo
public class RunMojo
Executes Glassfish by the current module (and all the other modules needed for a particular distribution of GF.)
| Nested Class Summary | |
|---|---|
protected static interface |
AbstractGlassfishMojo.ArtifactFilter
|
| Field Summary | |
|---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
|
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
artifactMetadataSource
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver
|
protected ArtifactInfo |
distribution
Distribution of Glassfish to be used as a basis. |
protected ArtifactInfo[] |
distributions
Same as <distribution> but allows you to specify multiple values. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
|
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected org.apache.maven.project.MavenProjectBuilder |
projectBuilder
|
| Fields inherited from class com.sun.enterprise.build.DistributionAssemblyMojo |
|---|
finalName, outputDirectory |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
RunMojo()
|
|
| Method Summary | |
|---|---|
protected com.sun.enterprise.module.ModulesRegistry |
createModuleRegistry(List<org.apache.maven.project.MavenProject> groups)
Creates a fully configured module registry. |
void |
execute()
|
protected Set<org.apache.maven.artifact.Artifact> |
findArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts,
AbstractGlassfishMojo.ArtifactFilter filter)
Finds artifacts that match the given filter. |
protected Set<org.apache.maven.artifact.Artifact> |
findArtifactsOfScope(Set<org.apache.maven.artifact.Artifact> artifacts,
String scope)
|
protected Set<org.apache.maven.artifact.Artifact> |
findArtifactsOfType(Set<org.apache.maven.artifact.Artifact> artifacts,
String type)
Returns a set of Artifacts that have the given type. |
protected boolean |
isModule(org.apache.maven.artifact.Artifact a)
|
protected org.apache.maven.project.MavenProject |
loadPom(org.apache.maven.artifact.Artifact artifact)
Resolves the POM of the given artifact and parses it into MavenProject. |
| 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 |
|---|
protected ArtifactInfo distribution
protected ArtifactInfo[] distributions
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.project.MavenProjectBuilder projectBuilder
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.apache.maven.project.MavenProject project
| Constructor Detail |
|---|
public RunMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class DistributionAssemblyMojoorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected com.sun.enterprise.module.ModulesRegistry createModuleRegistry(List<org.apache.maven.project.MavenProject> groups)
throws IOException
IOException
protected boolean isModule(org.apache.maven.artifact.Artifact a)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.apache.maven.project.MavenProject loadPom(org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.project.ProjectBuildingException
MavenProject.
org.apache.maven.project.ProjectBuildingException
protected Set<org.apache.maven.artifact.Artifact> findArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts,
AbstractGlassfishMojo.ArtifactFilter filter)
protected Set<org.apache.maven.artifact.Artifact> findArtifactsOfType(Set<org.apache.maven.artifact.Artifact> artifacts,
String type)
Artifacts that have the given type.
protected Set<org.apache.maven.artifact.Artifact> findArtifactsOfScope(Set<org.apache.maven.artifact.Artifact> artifacts,
String scope)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||