net.jangaroo.jooc.mvnplugin
Class WarPackageMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.jangaroo.jooc.mvnplugin.WarPackageMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class WarPackageMojo
- extends org.apache.maven.plugin.AbstractMojo
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>
<id>compile-as-sources</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>war-package</id>
<goals>
<goal>war-package</goal>
</goals>
</execution>
</executions>
</plugin>
...
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
void |
execute()
|
static java.util.List<java.lang.String> |
sort(java.util.Map<java.lang.String,java.util.List<java.lang.String>> artifact2directDependencies)
Linearizes the acyclic, directed graph represented by artifact2directDependencies to a list
where every item just needs items that are contained in the list before itself. |
void |
unpack(org.apache.maven.artifact.Artifact artifact,
java.io.File target)
|
void |
unpack(java.io.File target)
|
| 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 |
WarPackageMojo
public WarPackageMojo()
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()
unpack
public void unpack(java.io.File target)
throws org.codehaus.plexus.archiver.ArchiverException
- Throws:
org.codehaus.plexus.archiver.ArchiverException
unpack
public void unpack(org.apache.maven.artifact.Artifact artifact,
java.io.File target)
throws org.codehaus.plexus.archiver.ArchiverException
- Throws:
org.codehaus.plexus.archiver.ArchiverException
sort
public static java.util.List<java.lang.String> sort(java.util.Map<java.lang.String,java.util.List<java.lang.String>> artifact2directDependencies)
- Linearizes the acyclic, directed graph represented by
artifact2directDependencies to a list
where every item just needs items that are contained in the list before itself.
- Parameters:
artifact2directDependencies - acyclic, directed dependency graph
- Returns:
- linearized dependency list
Copyright © 2002-2010 CoreMedia AG. All Rights Reserved.