org.apache.servicemix.maven.plugin.jbi
Class JbiProjectDeployerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.servicemix.maven.plugin.jbi.AbstractJbiMojo
          extended by org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo
              extended by org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
MakeServiceMixDirsMojo, ServiceMixMojo

public class JbiProjectDeployerMojo
extends AbstractDeployableMojo

A Mojo that can take any project and determine its JBI dependencies and then install it and its dependencies using the JBI deployment tasks

Version:
$Id: GenerateComponentDescriptorMojo 314956 2005-10-12 16:27:15Z brett $
Author:
Philip Dodds

Nested Class Summary
protected  class JbiProjectDeployerMojo.ArtifactDepthComparator
           
protected  class JbiProjectDeployerMojo.JbiDeployableArtifact
           
 
Field Summary
static java.lang.String JBI_COMPONENT
           
static java.lang.String JBI_SERVICE_ASSEMBLY
           
static java.lang.String JBI_SHARED_LIBRARY
           
 
Fields inherited from class org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo
containerName, host, jmxDomainName, jndiPath, password, port, serverProtocol, username
 
Fields inherited from class org.apache.servicemix.maven.plugin.jbi.AbstractJbiMojo
artifactMetadataSource, collector, factory, JBI_DESCRIPTOR, LIB_DIRECTORY, localRepo, META_INF, project, projectBuilder, projectHelper, remoteRepos, resolver, workDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JbiProjectDeployerMojo()
           
 
Method Summary
protected  void deployDependency(JbiProjectDeployerMojo.JbiDeployableArtifact jbiDeployable, boolean doDeferExceptions)
           
protected  void deployProject()
           
 void execute()
           
protected  java.util.List getDeployablePackagingTypes()
           
protected  java.lang.String getExtension(org.apache.maven.project.MavenProject project2)
           
protected  boolean isDeployed(JbiProjectDeployerMojo.JbiDeployableArtifact jbiDeployable)
           
protected  JbiProjectDeployerMojo.JbiDeployableArtifact resolveDeploymentPackage(org.apache.maven.project.MavenProject project, org.apache.maven.artifact.Artifact artifact)
           
protected  void startDependency(JbiProjectDeployerMojo.JbiDeployableArtifact jbiDeployable)
           
protected  void stopDependency(JbiProjectDeployerMojo.JbiDeployableArtifact jbiDeployable)
           
protected  void undeployDependency(JbiProjectDeployerMojo.JbiDeployableArtifact jbiDeployable)
           
 
Methods inherited from class org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo
initializeJbiTask
 
Methods inherited from class org.apache.servicemix.maven.plugin.jbi.AbstractJbiMojo
createManagedVersionMap, excludeBranch, getArtifacts, getClassLoader, getProject, getProjectHelper, getWorkDirectory, print, removeBranch, removeChildren, resolveProject, retainArtifacts
 
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

JBI_SHARED_LIBRARY

public static final java.lang.String JBI_SHARED_LIBRARY
See Also:
Constant Field Values

JBI_COMPONENT

public static final java.lang.String JBI_COMPONENT
See Also:
Constant Field Values

JBI_SERVICE_ASSEMBLY

public static final java.lang.String JBI_SERVICE_ASSEMBLY
See Also:
Constant Field Values
Constructor Detail

JbiProjectDeployerMojo

public JbiProjectDeployerMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

deployProject

protected void deployProject()
                      throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

startDependency

protected void startDependency(JbiProjectDeployerMojo.JbiDeployableArtifact jbiDeployable)

undeployDependency

protected void undeployDependency(JbiProjectDeployerMojo.JbiDeployableArtifact jbiDeployable)

isDeployed

protected boolean isDeployed(JbiProjectDeployerMojo.JbiDeployableArtifact jbiDeployable)

stopDependency

protected void stopDependency(JbiProjectDeployerMojo.JbiDeployableArtifact jbiDeployable)

deployDependency

protected void deployDependency(JbiProjectDeployerMojo.JbiDeployableArtifact jbiDeployable,
                                boolean doDeferExceptions)
                         throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getDeployablePackagingTypes

protected java.util.List getDeployablePackagingTypes()

resolveDeploymentPackage

protected JbiProjectDeployerMojo.JbiDeployableArtifact resolveDeploymentPackage(org.apache.maven.project.MavenProject project,
                                                                                org.apache.maven.artifact.Artifact artifact)
                                                                         throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
                                                                                org.apache.maven.artifact.resolver.ArtifactNotFoundException
Throws:
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException

getExtension

protected java.lang.String getExtension(org.apache.maven.project.MavenProject project2)


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.