org.apache.maven.plugin.resources.remote
Class ProcessRemoteResourcesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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".
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
ProcessRemoteResourcesMojo
public ProcessRemoteResourcesMojo()
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-2009 Apache Software Foundation. All Rights Reserved.