org.apache.maven.plugin.resources.remote
Class ProcessRemoteResourcesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

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

Pull down resourceBundles containing remote resources and process the resources contained inside the artifact.

Resources that end in ".vm" are treated as velocity templates. For those, the ".vm" is stripped off for the final artifact name and it's fed through velocity to have properties expanded, conditions processed, etc...

Resources that don't end in ".vm" are copied "as is".


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ProcessRemoteResourcesMojo()
           
 
Method Summary
protected  void configureVelocityContext(org.apache.velocity.VelocityContext context)
           
protected  boolean copyResourceIfExists(java.io.File file, java.lang.String relFileName)
           
 void execute()
           
protected  java.util.List getProjects()
           
protected  org.apache.maven.model.Model getSupplement(org.codehaus.plexus.util.xml.Xpp3Dom supplementModelXml)
           
protected  org.apache.maven.model.Model mergeModels(org.apache.maven.model.Model parent, org.apache.maven.model.Model child)
           
protected  void processResourceBundles(RemoteResourcesClassLoader classLoader, org.apache.velocity.VelocityContext context)
           
protected  void validate()
           
 
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

ProcessRemoteResourcesMojo

public ProcessRemoteResourcesMojo()
Method Detail

execute

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

getProjects

protected java.util.List getProjects()
                              throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

copyResourceIfExists

protected boolean copyResourceIfExists(java.io.File file,
                                       java.lang.String relFileName)
                                throws java.io.IOException
Throws:
java.io.IOException

validate

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

configureVelocityContext

protected void configureVelocityContext(org.apache.velocity.VelocityContext context)
                                 throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

processResourceBundles

protected void processResourceBundles(RemoteResourcesClassLoader classLoader,
                                      org.apache.velocity.VelocityContext context)
                               throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getSupplement

protected org.apache.maven.model.Model getSupplement(org.codehaus.plexus.util.xml.Xpp3Dom supplementModelXml)
                                              throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

mergeModels

protected org.apache.maven.model.Model mergeModels(org.apache.maven.model.Model parent,
                                                   org.apache.maven.model.Model child)


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.