|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.apache.geronimo.mavenplugins.car.AbstractCarMojo
public abstract class AbstractCarMojo
Support for packaging Mojos.
| Nested Class Summary | |
|---|---|
protected class |
AbstractCarMojo.ArtifactLookupImpl
|
| Field Summary | |
|---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
The artifact factory to use. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
artifactRepository
|
protected File |
basedir
The basedir of the project. |
protected Set<org.apache.maven.artifact.Artifact> |
dependencies
|
protected String |
encoding
The character encoding scheme to be applied when filtering resources. |
protected String |
escapeString
Expression preceded with the String won't be interpolated \${foo} will be replaced with ${foo} |
protected Set<org.apache.maven.artifact.Artifact> |
localDependencies
|
protected org.apache.maven.shared.filtering.MavenFileFilter |
mavenFileFilter
|
protected org.apache.maven.shared.filtering.MavenResourcesFiltering |
mavenResourcesFiltering
|
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected org.apache.maven.execution.MavenSession |
session
|
protected String |
treeListing
|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractCarMojo()
|
|
| Method Summary | |
|---|---|
protected void |
filter(File sourceFile,
File targetFile)
|
protected void |
generateExplicitVersionProperties(File outputFile,
Set<org.apache.maven.artifact.Artifact> dependencies)
Generates a properties file with explicit versions of artifacts of the current project transitivly. |
protected org.apache.maven.artifact.Artifact |
geronimoToMavenArtifact(Artifact artifact)
|
protected static File |
getArchiveFile(File basedir,
String finalName,
String classifier)
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
getArtifactRepository()
|
protected void |
getDependencies(org.apache.maven.project.MavenProject project,
boolean useTransitiveDependencies)
|
org.apache.maven.plugin.logging.Log |
getLog()
|
protected ArtifactType |
getModuleId()
|
protected org.apache.maven.project.MavenProject |
getProject()
|
protected boolean |
includeDependency(org.apache.maven.model.Dependency dependency)
|
protected void |
init()
|
protected boolean |
isModuleArtifact(Artifact artifact)
Determine if the given artifact is a Geronimo module. |
protected Artifact |
mavenToGeronimoArtifact(org.apache.maven.artifact.Artifact artifact)
|
protected Artifact |
mavenToGeronimoArtifact(org.apache.maven.model.Dependency artifact)
|
protected org.apache.maven.artifact.Artifact |
resolveArtifact(String groupId,
String artifactId,
String type)
|
protected org.apache.maven.model.Dependency |
resolveDependency(org.apache.maven.model.Dependency dependency,
List<org.apache.maven.model.Dependency> artifacts)
|
void |
setLog(org.apache.maven.plugin.logging.Log log)
|
protected LinkedHashSet<Dependency> |
toDependencies(Collection<Dependency> listedDependencies,
UseMavenDependencies useMavenDependencies,
boolean includeImport)
|
protected static Dependency |
toGeronimoDependency(org.apache.maven.artifact.Artifact dependency,
boolean includeVersion)
|
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
execute |
| Field Detail |
|---|
protected org.apache.maven.project.MavenProject project
protected File basedir
protected Set<org.apache.maven.artifact.Artifact> dependencies
protected Set<org.apache.maven.artifact.Artifact> localDependencies
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected String treeListing
protected String encoding
protected org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering
protected org.apache.maven.execution.MavenSession session
protected String escapeString
protected org.apache.maven.shared.filtering.MavenFileFilter mavenFileFilter
protected org.apache.maven.artifact.repository.ArtifactRepository artifactRepository
| Constructor Detail |
|---|
public AbstractCarMojo()
| Method Detail |
|---|
protected org.apache.maven.project.MavenProject getProject()
protected org.apache.maven.artifact.repository.ArtifactRepository getArtifactRepository()
protected void init()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void generateExplicitVersionProperties(File outputFile,
Set<org.apache.maven.artifact.Artifact> dependencies)
throws org.apache.maven.plugin.MojoExecutionException,
IOException
org.apache.maven.plugin.MojoExecutionException
IOException
protected static File getArchiveFile(File basedir,
String finalName,
String classifier)
protected Artifact mavenToGeronimoArtifact(org.apache.maven.artifact.Artifact artifact)
protected Artifact mavenToGeronimoArtifact(org.apache.maven.model.Dependency artifact)
protected org.apache.maven.artifact.Artifact geronimoToMavenArtifact(Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected boolean isModuleArtifact(Artifact artifact)
artifact - The artifact to check; must not be null.
protected boolean includeDependency(org.apache.maven.model.Dependency dependency)
protected org.apache.maven.model.Dependency resolveDependency(org.apache.maven.model.Dependency dependency,
List<org.apache.maven.model.Dependency> artifacts)
protected void getDependencies(org.apache.maven.project.MavenProject project,
boolean useTransitiveDependencies)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void setLog(org.apache.maven.plugin.logging.Log log)
setLog in interface org.apache.maven.plugin.Mojopublic org.apache.maven.plugin.logging.Log getLog()
getLog in interface org.apache.maven.plugin.Mojo
protected static Dependency toGeronimoDependency(org.apache.maven.artifact.Artifact dependency,
boolean includeVersion)
protected LinkedHashSet<Dependency> toDependencies(Collection<Dependency> listedDependencies,
UseMavenDependencies useMavenDependencies,
boolean includeImport)
throws org.apache.maven.project.artifact.InvalidDependencyVersionException,
org.apache.maven.artifact.resolver.ArtifactResolutionException,
org.apache.maven.project.ProjectBuildingException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.project.artifact.InvalidDependencyVersionException
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.project.ProjectBuildingException
org.apache.maven.plugin.MojoExecutionExceptionprotected ArtifactType getModuleId()
protected org.apache.maven.artifact.Artifact resolveArtifact(String groupId,
String artifactId,
String type)
protected void filter(File sourceFile,
File targetFile)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||