|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.ow2.petals.plugin.jbiplugin.JBIAbstractMojo
public abstract class JBIAbstractMojo
This class is used to give the main configuration parameters of all JBI goals
| Field Summary | |
|---|---|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver
|
protected java.io.File |
jbiDirectory
JBI conf directory |
protected java.lang.String |
jbiName
JBI archive name (will be suffixed by .zip). |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
Local maven repository. |
protected org.apache.maven.project.MavenProjectBuilder |
mavenProjectBuilder
|
protected java.io.File |
outputDirectory
Output directory |
protected java.lang.String |
packaging
|
protected static java.lang.String |
PACKAGING_COMPONENT
|
protected static java.lang.String |
PACKAGING_SA
|
protected static java.lang.String |
PACKAGING_SL
|
protected static java.lang.String |
PACKAGING_SU
|
protected org.apache.maven.project.MavenProject |
project
The Maven Project. |
protected org.apache.maven.artifact.Artifact |
projectArtifact
Project artifact. |
protected org.apache.maven.settings.MavenSettingsBuilder |
settingsBuilder
|
protected boolean |
verbose
Verbose |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
JBIAbstractMojo()
|
|
| Method Summary | |
|---|---|
protected void |
attachedJBIArchive(org.apache.maven.artifact.Artifact artifact)
|
protected org.apache.maven.project.MavenProject |
buildProjectFromArtifact(org.apache.maven.artifact.Artifact artifact)
Create a maven project from the given artifact |
protected org.apache.maven.artifact.Artifact |
createDependencyArtifact(org.apache.maven.model.Dependency dependency)
Create an Artifact from the given Dependency |
protected void |
debug(java.lang.String msg)
Log the message as DEBUG one |
protected void |
error(java.lang.String msg)
Log the message as ERROR one |
protected void |
error(java.lang.String msg,
java.lang.Throwable exception)
Log the message and the exception as ERROR one |
void |
execute()
|
protected abstract void |
executeMojo()
Execute the MOJO |
protected java.util.List<org.apache.maven.artifact.Artifact> |
getSharedLibraries(org.apache.maven.project.MavenProject lProject)
Retrieve artifact associated to the shared libraries needed by Maven project associated to a JBI compoenent. |
protected void |
info(java.lang.String msg)
Log the message as INFO one |
protected boolean |
packagingIsOkForGoal()
Check if the current goal can be applied to the current packaging |
protected org.ow2.petals.jbi.descriptor.original.generated.Jbi |
readJbiDescriptor(org.apache.maven.artifact.Artifact artifact)
Read and parse the JBI descriptor of an artifact |
protected void |
warn(java.lang.String msg)
Log the message as WARNING one |
| 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 static final java.lang.String PACKAGING_COMPONENT
protected static final java.lang.String PACKAGING_SU
protected static final java.lang.String PACKAGING_SA
protected static final java.lang.String PACKAGING_SL
protected java.lang.String jbiName
protected boolean verbose
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected java.io.File outputDirectory
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.artifact.Artifact projectArtifact
protected java.lang.String packaging
protected java.io.File jbiDirectory
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder
protected org.apache.maven.settings.MavenSettingsBuilder settingsBuilder
| Constructor Detail |
|---|
public JBIAbstractMojo()
| Method Detail |
|---|
protected final org.ow2.petals.jbi.descriptor.original.generated.Jbi readJbiDescriptor(org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
artifact - JBI artifact containing the JBI descriptor. Not null.
org.apache.maven.plugin.MojoExecutionExceptionprotected void attachedJBIArchive(org.apache.maven.artifact.Artifact artifact)
protected void debug(java.lang.String msg)
msg - protected void info(java.lang.String msg)
msg - protected void warn(java.lang.String msg)
msg - protected void error(java.lang.String msg)
msg -
protected void error(java.lang.String msg,
java.lang.Throwable exception)
msg - exception -
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionprotected boolean packagingIsOkForGoal()
protected org.apache.maven.project.MavenProject buildProjectFromArtifact(org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.project.ProjectBuildingException
artifact -
org.apache.maven.project.ProjectBuildingException
protected org.apache.maven.artifact.Artifact createDependencyArtifact(org.apache.maven.model.Dependency dependency)
throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
dependency - MUST be non null
org.apache.maven.artifact.versioning.InvalidVersionSpecificationException - problem with the version of the dependency
protected java.util.List<org.apache.maven.artifact.Artifact> getSharedLibraries(org.apache.maven.project.MavenProject lProject)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected abstract void executeMojo()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||