org.ow2.petals.plugin.jbiplugin
Class JBIConfigureMojo

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.JBIConfigureMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class JBIConfigureMojo
extends JBIAbstractConfigurableMojo

Configure a deliverable JBI Artefact (Component / Service Assembly)

Since:
2.0.0
Author:
cdeneux - Capgemini Sud

Field Summary
protected  java.lang.String artifactId
          ArtifactId of the deliverable JBI artefact to configure.
protected  java.io.File configuredArtifactOutputDirectory
          Configured artifacts output directory
protected  java.lang.String groupId
          GroupId of the deliverable JBI artefact to configure.
protected  java.lang.String targetName
          Target Name of the deliverable JBI artefact to configure.
protected  java.lang.String version
          Version of the deliverable JBI artefact to configure.
 
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
JBIConfigureMojo()
           
 
Method Summary
 void executeMojo()
          Execute the MOJO
protected  org.apache.maven.project.MavenProject getMavenProject()
          Returns the MavenProject associated to the artifact to configure.
protected  boolean packagingIsOkForGoal()
          the goal "jbi-configure" is designed to be run on command line.
 
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, 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

groupId

protected java.lang.String groupId
GroupId of the deliverable JBI artefact to configure.


artifactId

protected java.lang.String artifactId
ArtifactId of the deliverable JBI artefact to configure.


version

protected java.lang.String version
Version of the deliverable JBI artefact to configure.


targetName

protected java.lang.String targetName
Target Name of the deliverable JBI artefact to configure.


configuredArtifactOutputDirectory

protected java.io.File configuredArtifactOutputDirectory
Configured artifacts output directory

Constructor Detail

JBIConfigureMojo

public JBIConfigureMojo()
Method Detail

packagingIsOkForGoal

protected boolean packagingIsOkForGoal()
the goal "jbi-configure" is designed to be run on command line. So we need to override this method to avoid a check on packaging.

Overrides:
packagingIsOkForGoal in class JBIAbstractMojo
Returns:
See Also:
JBIAbstractMojo.packagingIsOkForGoal()

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.