org.ow2.petals.plugin.jbiplugin
Class JBIPackageMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.ow2.petals.plugin.jbiplugin.JBIAbstractMojo
          extended by org.ow2.petals.plugin.jbiplugin.JBIAbstractConfigurableMojo
              extended by org.ow2.petals.plugin.jbiplugin.JBIPackageMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class JBIPackageMojo
extends JBIAbstractConfigurableMojo

Make a JBI Archive of a project

Author:
alouis - EBM Websourcing, cdeneux - Capgemini Sud, rnaudin - EBM Websourcing

Field Summary
protected  java.io.File additionalJBIResourceDirectory
           
protected  java.io.File artifactJar
          The name of the Jar package of the JBI artifact
protected  java.lang.String componentNameMapping
          If the JBI update is activated, sets the mapping pattern of the component name.
protected  java.lang.String serviceAssemblyNameMapping
          If the JBI update is activated, sets the mapping pattern of the Service Assembly name.
protected  java.lang.String serviceUnitFileNameMappingInSA
          Sets the mapping pattern for all SU file names included in this service assembly.
protected  java.lang.String serviceUnitNameMappingInSA
          If the JBI update is activated, sets the mapping pattern of the all SU names included in this service assembly.
protected  java.lang.String sharedLibraryNameMapping
          If the JBI update is activated, sets the mapping pattern of the Shared Library name.
protected  java.lang.String toExcludes
          List of entries to exclude (comma separated values)
protected  boolean updateJBIXml
          Update JBI XML
 
Fields inherited from class org.ow2.petals.plugin.jbiplugin.JBIAbstractConfigurableMojo
includeConfiguration, JBIDESCRIPTOR_ZIPENTRY_NAME, jbiExtraBootstrapClasspathMappingFile, jbiExtraBootstrapClasspathMappingFileURL, jbiExtraComponentClasspathMappingFile, jbiExtraComponentClasspathMappingFileURL, jbiIdentifiersMappingFile, jbiIdentifiersMappingFileURL, jbiSharedLibrariesMappingFile, jbiSharedLibrariesMappingFileURL, jbiVersionsMappingFile, jbiVersionsMappingFileURL, sharedLibraryNameMappingInComponent
 
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
JBIPackageMojo()
           
 
Method Summary
 void executeMojo()
          Execute the MOJO
protected  org.apache.maven.project.MavenProject getMavenProject()
          Returns the MavenProject associated to the artifact to configure.
 
Methods inherited from class org.ow2.petals.plugin.jbiplugin.JBIAbstractConfigurableMojo
artifactToSharedLibrary, evaluateBootstrapClasspathElts, evaluateComponentClasspathElts, evaluateJBIIdentifier, evaluateJBIVersion, evaluateSharedLibraries, readConfigurationFiles
 
Methods inherited from class org.ow2.petals.plugin.jbiplugin.JBIAbstractMojo
attachedJBIArchive, buildProjectFromArtifact, createDependencyArtifact, debug, error, error, execute, 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

artifactJar

protected java.io.File artifactJar
The name of the Jar package of the JBI artifact


additionalJBIResourceDirectory

protected java.io.File additionalJBIResourceDirectory

updateJBIXml

protected boolean updateJBIXml
Update JBI XML


serviceUnitFileNameMappingInSA

protected java.lang.String serviceUnitFileNameMappingInSA
Sets the mapping pattern for all SU file names included in this service assembly.


serviceUnitNameMappingInSA

protected java.lang.String serviceUnitNameMappingInSA
If the JBI update is activated, sets the mapping pattern of the all SU names included in this service assembly.


serviceAssemblyNameMapping

protected java.lang.String serviceAssemblyNameMapping
If the JBI update is activated, sets the mapping pattern of the Service Assembly name.


componentNameMapping

protected java.lang.String componentNameMapping
If the JBI update is activated, sets the mapping pattern of the component name.


sharedLibraryNameMapping

protected java.lang.String sharedLibraryNameMapping
If the JBI update is activated, sets the mapping pattern of the Shared Library name.


toExcludes

protected java.lang.String toExcludes
List of entries to exclude (comma separated values)

Constructor Detail

JBIPackageMojo

public JBIPackageMojo()
Method Detail

executeMojo

public void executeMojo()
                 throws org.apache.maven.plugin.MojoExecutionException,
                        org.apache.maven.plugin.MojoFailureException
Description copied from class: JBIAbstractMojo
Execute the MOJO

Specified by:
executeMojo in class JBIAbstractMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

getMavenProject

protected org.apache.maven.project.MavenProject getMavenProject()
Description copied from class: JBIAbstractConfigurableMojo
Returns the MavenProject associated to the artifact to configure. In case of the goal "jbi-package", it's the project itself. In case of the goal "jbi-configure", it's the project associated to the provided artifact.

Specified by:
getMavenProject in class JBIAbstractConfigurableMojo
Returns:


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.