|
||||||||||
| 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
org.ow2.petals.plugin.jbiplugin.JBIAbstractConfigurableMojo
public abstract class JBIAbstractConfigurableMojo
This class is used to give the main configuration parameters of all JBI goals needing artifact configuration.
| Field Summary | |
|---|---|
protected boolean |
includeConfiguration
Flag to activate JBI archive configuration when packaging it. |
protected static java.lang.String |
JBIDESCRIPTOR_ZIPENTRY_NAME
|
protected java.lang.String |
jbiExtraBootstrapClasspathMappingFile
Extra bootstrap classpath elements list mapping configuration file. |
protected java.net.URL |
jbiExtraBootstrapClasspathMappingFileURL
Extra bootstrap classpath elements list mapping configuration file. |
protected java.lang.String |
jbiExtraComponentClasspathMappingFile
Extra component classpath elements list mapping configuration file. |
protected java.net.URL |
jbiExtraComponentClasspathMappingFileURL
Extra component classpath elements list mapping configuration file. |
protected java.lang.String |
jbiIdentifiersMappingFile
JBI identifiers mapping configuration file. |
protected java.net.URL |
jbiIdentifiersMappingFileURL
JBI identifiers mapping configuration file. |
protected java.lang.String |
jbiSharedLibrariesMappingFile
JBI shared library list mapping configuration file. |
protected java.net.URL |
jbiSharedLibrariesMappingFileURL
JBI shared library list mapping configuration file. |
protected java.lang.String |
jbiVersionsMappingFile
JBI versions mapping configuration file. |
protected java.net.URL |
jbiVersionsMappingFileURL
JBI versions mapping configuration file. |
protected java.lang.String |
sharedLibraryNameMappingInComponent
Mapping pattern of the all shared library identifiers used inside a JBI component. |
| Fields inherited from class org.ow2.petals.plugin.jbiplugin.JBIAbstractMojo |
|---|
artifactFactory, artifactResolver, jbiDirectory, jbiName, localRepository, mavenProjectBuilder, outputDirectory, packaging, PACKAGING_COMPONENT, PACKAGING_SA, PACKAGING_SL, PACKAGING_SU, project, projectArtifact, settingsBuilder, verbose |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
JBIAbstractConfigurableMojo()
|
|
| Method Summary | |
|---|---|
protected org.ow2.petals.jbi.descriptor.original.generated.Component.SharedLibrary |
artifactToSharedLibrary(org.apache.maven.artifact.Artifact artifact)
Convert a shared library as a Maven artifact to the associated element of the component JBI descriptor. |
protected java.util.List<org.apache.maven.artifact.Artifact> |
evaluateBootstrapClasspathElts(org.apache.maven.artifact.Artifact artifact)
Compute the extra bootstrap classpath elements of a component according to: the artifact match a pattern according to: the configuration mode ( includeConfiguration)
the artifact matches a pattern in the JBI extra bootstrap classpath elements mapping configuration file (
jbiExtraBootstrapClasspathMappingFile, jbiExtraBootstrapClasspathMappingFileURL)
|
protected java.util.List<org.apache.maven.artifact.Artifact> |
evaluateComponentClasspathElts(org.apache.maven.artifact.Artifact artifact)
Compute the extra component classpath elements of a component according to: the artifact match a pattern according to: the configuration mode ( includeConfiguration)
the artifact matches a pattern in the extra component classpath elements mapping configuration file (
jbiExtraComponentClasspathMappingFile, jbiExtraComponentClasspathMappingFileURL)
|
protected java.lang.String |
evaluateJBIIdentifier(java.lang.String expression,
org.apache.maven.artifact.Artifact artifact)
Compute the JBI identifier of the artifact according to: the artifact match a pattern according to: the configuration mode ( includeConfiguration)
the artifact matches a pattern in the JBI identifiers mapping
configuration file (jbiIdentifiersMappingFile)
a default expression (expression)
|
protected java.lang.String |
evaluateJBIVersion(java.lang.String expression,
org.apache.maven.artifact.Artifact artifact)
Compute the JBI version of the artifact according to: the artifact match a pattern according to: the configuration mode ( includeConfiguration)
the artifact matches a pattern in the JBI versions mapping
configuration file (jbiVersionsMappingFile)
a default expression (expression)
|
protected java.util.List<org.ow2.petals.jbi.descriptor.original.generated.Component.SharedLibrary> |
evaluateSharedLibraries(org.apache.maven.artifact.Artifact artifact)
Compute the JBI shared libraries list of a component according to: the artifact match a pattern according to: the configuration mode ( includeConfiguration)
the artifact matches a pattern in the JBI shared libraries list
mapping configuration file (jbiSharedLibrariesMappingFile)
the default shared library list provided by the original POM file, if
existing, on which the mapping defined by the parameter
sharedLibraryNameMappingInComponent is applied.
|
protected abstract org.apache.maven.project.MavenProject |
getMavenProject()
Returns the MavenProject associated to the artifact to configure. |
protected void |
readConfigurationFiles()
Read all configuration file needed by the goal "jbi-configure". |
| Methods inherited from class org.ow2.petals.plugin.jbiplugin.JBIAbstractMojo |
|---|
attachedJBIArchive, buildProjectFromArtifact, createDependencyArtifact, debug, error, error, execute, executeMojo, getSharedLibraries, info, packagingIsOkForGoal, readJbiDescriptor, warn |
| 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 JBIDESCRIPTOR_ZIPENTRY_NAME
protected boolean includeConfiguration
protected java.lang.String sharedLibraryNameMappingInComponent
protected java.lang.String jbiIdentifiersMappingFile
protected java.net.URL jbiIdentifiersMappingFileURL
#jbiIdentifiersMappingFile}.protected java.lang.String jbiSharedLibrariesMappingFile
protected java.net.URL jbiSharedLibrariesMappingFileURL
#jbiSharedLibrariesMappingFile}.protected java.lang.String jbiVersionsMappingFile
protected java.net.URL jbiVersionsMappingFileURL
#jbiIdentifiersMappingFile}.protected java.lang.String jbiExtraComponentClasspathMappingFile
protected java.net.URL jbiExtraComponentClasspathMappingFileURL
#jbiExtraComponentClasspathMappingFile}.protected java.lang.String jbiExtraBootstrapClasspathMappingFile
protected java.net.URL jbiExtraBootstrapClasspathMappingFileURL
#jbiExtraBootstrapClasspathMappingFile}.| Constructor Detail |
|---|
public JBIAbstractConfigurableMojo()
| Method Detail |
|---|
protected java.lang.String evaluateJBIIdentifier(java.lang.String expression,
org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
Compute the JBI identifier of the artifact according to:
includeConfiguration)jbiIdentifiersMappingFile)expression)
expression - The default expression defining the JBI identifier of the
artifactartifact - Artifact for which a JBI identifier must be defined
org.apache.maven.plugin.MojoExecutionException
protected java.lang.String evaluateJBIVersion(java.lang.String expression,
org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
Compute the JBI version of the artifact according to:
includeConfiguration)jbiVersionsMappingFile)expression)
expression - The default expression defining the JBI version of the
artifactartifact - Artifact for which a JBI version must be defined
org.apache.maven.plugin.MojoExecutionException
protected java.util.List<org.ow2.petals.jbi.descriptor.original.generated.Component.SharedLibrary> evaluateSharedLibraries(org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
Compute the JBI shared libraries list of a component according to:
includeConfiguration)jbiSharedLibrariesMappingFile)sharedLibraryNameMappingInComponent is applied.
artifact - Artifact for which a JBI shared libraries list must be defined
org.apache.maven.plugin.MojoExecutionException
protected final java.util.List<org.apache.maven.artifact.Artifact> evaluateBootstrapClasspathElts(org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
Compute the extra bootstrap classpath elements of a component according to:
includeConfiguration)jbiExtraBootstrapClasspathMappingFile, jbiExtraBootstrapClasspathMappingFileURL)
artifact - Artifact for which extra bootstrap classpath elements must be added
Artifact.
org.apache.maven.plugin.MojoExecutionException - An error occurs during resolution of the extra bootstap class path elements.
protected final java.util.List<org.apache.maven.artifact.Artifact> evaluateComponentClasspathElts(org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
Compute the extra component classpath elements of a component according to:
includeConfiguration)jbiExtraComponentClasspathMappingFile, jbiExtraComponentClasspathMappingFileURL)
artifact - Artifact for which extra component classpath elements must be added
Artifact.
org.apache.maven.plugin.MojoExecutionException - An error occurs during resolution of the extra bootstap class path elements.protected abstract org.apache.maven.project.MavenProject getMavenProject()
protected org.ow2.petals.jbi.descriptor.original.generated.Component.SharedLibrary artifactToSharedLibrary(org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
artifact -
org.apache.maven.plugin.MojoExecutionException
protected void readConfigurationFiles()
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 | |||||||||