net.jangaroo.jooc.mvnplugin
Class WarPackageMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.jangaroo.jooc.mvnplugin.PackageApplicationMojo
          extended by net.jangaroo.jooc.mvnplugin.WarPackageMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class WarPackageMojo
extends PackageApplicationMojo

The war-package goal extracts all dependent jangaroo artifacts into the web application to make them accessible from HTML pages during execution of the webapp. It also copies optional Jangaroo compiler output from the current module into the web application.
This goal is NOT bound to the jangaroo lifecycle. It is aimed to be used in conjunction with the war lifecycle and, optionally, the Jangaroo compile goal by defining its execution as shown in the following snippet

 ...
 <plugin>
  <groupId>net.jangaroo</groupId>
  <artifactId>jangaroo-maven-plugin</artifactId>
  <extensions>true</extensions>
  <executions>
   <execution>
     <goals>
      <goal>compile</goal>
      <goal>war-package</goal>
    </goals>
   </execution>
  </executions>
 </plugin>
 ...
 


Field Summary
 
Fields inherited from class net.jangaroo.jooc.mvnplugin.PackageApplicationMojo
project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
WarPackageMojo()
           
 
Method Summary
 void execute()
          
 File getPackageSourceDirectory()
           
 
Methods inherited from class net.jangaroo.jooc.mvnplugin.PackageApplicationMojo
createWebapp, getArtifacts, sort, unpack, unpack, writeThisJangarooModuleScript
 
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

WarPackageMojo

public WarPackageMojo()
Method Detail

getPackageSourceDirectory

public File getPackageSourceDirectory()
Specified by:
getPackageSourceDirectory in class PackageApplicationMojo

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
See Also:
Mojo.execute()


Copyright © 2002-2011 CoreMedia AG. All Rights Reserved.