net.jangaroo.webjars.mvnplugin
Class UnpackJarResourcesMojo

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

public class UnpackJarResourcesMojo
extends org.apache.maven.plugin.AbstractMojo

A goal to be used in a "war" build to unpack resources contained in dependent JARs in their META-INF/resources subdirectory. This is useful when building web apps that are not supposed to be run in a Java Application Server, but in a static web server like Apache or Lighttpd.


Field Summary
static String META_INF_RESOURCES
           
protected  org.apache.maven.project.MavenProject project
          The maven project.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
UnpackJarResourcesMojo()
           
 
Method Summary
 void execute()
           
protected  Set<org.apache.maven.artifact.Artifact> getArtifacts()
           
 void unpack(File target)
           
 void unpack(org.codehaus.plexus.archiver.UnArchiver unarchiver, org.apache.maven.artifact.Artifact artifact, 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
 

Field Detail

META_INF_RESOURCES

public static final String META_INF_RESOURCES
See Also:
Constant Field Values

project

protected org.apache.maven.project.MavenProject project
The maven project.

Constructor Detail

UnpackJarResourcesMojo

public UnpackJarResourcesMojo()
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

unpack

public void unpack(File target)
            throws org.codehaus.plexus.archiver.ArchiverException
Throws:
org.codehaus.plexus.archiver.ArchiverException

unpack

public void unpack(org.codehaus.plexus.archiver.UnArchiver unarchiver,
                   org.apache.maven.artifact.Artifact artifact,
                   File target)
            throws org.codehaus.plexus.archiver.ArchiverException
Throws:
org.codehaus.plexus.archiver.ArchiverException

getArtifacts

protected Set<org.apache.maven.artifact.Artifact> getArtifacts()


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