org.apache.sling.maven.projectsupport
Class PreparePackageMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.sling.maven.projectsupport.AbstractBundleListMojo
          extended by org.apache.sling.maven.projectsupport.AbstractUsingBundleListMojo
              extended by org.apache.sling.maven.projectsupport.AbstractLaunchpadFrameworkMojo
                  extended by org.apache.sling.maven.projectsupport.PreparePackageMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
PrepareTestWebAppMojo

public class PreparePackageMojo
extends AbstractLaunchpadFrameworkMojo

Initialize a Sling application project by extracting bundles into the correct locations.


Field Summary
 
Fields inherited from class org.apache.sling.maven.projectsupport.AbstractLaunchpadFrameworkMojo
baseDestination
 
Fields inherited from class org.apache.sling.maven.projectsupport.AbstractUsingBundleListMojo
BUNDLE_PATH_PREFIX, CONFIG_PATH_PREFIX, defaultBundleList, JAR, mavenFileFilter, WAR
 
Fields inherited from class org.apache.sling.maven.projectsupport.AbstractBundleListMojo
bundleListFile, commonSlingBootstrap, commonSlingProps, ignoreBundleListConfig, mavenSession, PARTIAL, project, projectHelper, standaloneSlingBootstrap, standaloneSlingProps, webappSlingBootstrap, webappSlingProps
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PreparePackageMojo()
           
 
Method Summary
 void executeWithArtifacts()
          Execute the logic of the plugin after the default artifacts have been initialized.
protected  java.io.File getOutputDirectory()
           
protected  void initArtifactDefinitions(java.util.Properties dependencies)
          Hook methods for subclasses to initialize any additional artifact definitions.
protected  void initBundleList(BundleList bundleList)
          Add the JAR Web Support bundle to the bundle list.
protected  void unpackBaseArtifact()
           
 
Methods inherited from class org.apache.sling.maven.projectsupport.AbstractLaunchpadFrameworkMojo
copy, copy, copyBundles, getPathForArtifact
 
Methods inherited from class org.apache.sling.maven.projectsupport.AbstractUsingBundleListMojo
execute, getConfigDirectory, getInitializedBundleList, getSlingBootstrap, getSlingProperties, shouldCopy
 
Methods inherited from class org.apache.sling.maven.projectsupport.AbstractBundleListMojo
getArtifact, getArtifact
 
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
 

Constructor Detail

PreparePackageMojo

public PreparePackageMojo()
Method Detail

executeWithArtifacts

public void executeWithArtifacts()
                          throws org.apache.maven.plugin.MojoExecutionException,
                                 org.apache.maven.plugin.MojoFailureException
Description copied from class: AbstractUsingBundleListMojo
Execute the logic of the plugin after the default artifacts have been initialized.

Specified by:
executeWithArtifacts in class AbstractUsingBundleListMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

initArtifactDefinitions

protected void initArtifactDefinitions(java.util.Properties dependencies)
Description copied from class: AbstractUsingBundleListMojo
Hook methods for subclasses to initialize any additional artifact definitions.

Overrides:
initArtifactDefinitions in class AbstractUsingBundleListMojo
Parameters:
dependencies - the dependency properties loaded from the JAR file

initBundleList

protected void initBundleList(BundleList bundleList)
Add the JAR Web Support bundle to the bundle list.

Overrides:
initBundleList in class AbstractUsingBundleListMojo

getOutputDirectory

protected java.io.File getOutputDirectory()

unpackBaseArtifact

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


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.