|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo
public class ProcessRemoteResourcesMojo
Pull down resourceBundles containing remote resources and process the resources contained inside. When that is done the resources are injected into the current (in-memory) Maven project, making them available to the process-resources phase.
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 | |
---|---|
protected java.io.File |
basedir
Used for calculation of execution-root for runOnlyAtExecutionRoot . |
protected org.apache.maven.ProjectDependenciesResolver |
dependencyResolver
|
protected java.lang.String |
encoding
The character encoding scheme to be applied when filtering resources. |
protected java.lang.String |
excludeArtifactIds
Comma separated list of Artifact names too exclude. |
protected java.lang.String |
excludeGroupIds
Comma separated list of GroupId Names to exclude. |
protected java.lang.String |
excludeScope
Scope to exclude. |
protected boolean |
excludeTransitive
If we should exclude transitive dependencies |
protected java.util.List<java.lang.String> |
filterDelimiters
In cases where a local resource overrides one from a remote resource bundle, that resource should be filtered if the resource set specifies it. |
protected java.lang.String |
includeArtifactIds
Comma separated list of Artifact names to include. |
protected java.lang.String |
includeGroupIds
Comma separated list of GroupIds to include. |
protected java.lang.String |
includeScope
Scope to include. |
protected boolean |
runOnlyAtExecutionRoot
If true, only generate resources in the directory of the root project in a multimodule build. |
protected boolean |
useDefaultFilterDelimiters
|
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,
org.apache.velocity.VelocityContext context)
|
void |
execute()
|
protected java.util.List<org.apache.maven.project.MavenProject> |
getProjects()
|
protected java.util.Map<org.apache.maven.model.Organization,java.util.List<org.apache.maven.project.MavenProject>> |
getProjectsSortedByOrganization(java.util.List<org.apache.maven.project.MavenProject> projects)
|
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 |
Field Detail |
---|
protected java.util.List<java.lang.String> filterDelimiters
In cases where a local resource overrides one from a remote resource bundle, that resource should be filtered if the resource set specifies it. In those cases, this parameter defines the list of delimiters for filterable expressions. These delimiters are specified in the form 'beginToken*endToken'. If no '*' is given, the delimiter is assumed to be the same for start and end.
So, the default filtering delimiters might be specified as:
<delimiters> <delimiter>${*}</delimiter> <delimiter>@</delimiter> </delimiters>
Since the '@' delimiter is the same on both ends, we don't need to specify '@*@' (though we can).
protected boolean useDefaultFilterDelimiters
protected boolean runOnlyAtExecutionRoot
protected java.io.File basedir
runOnlyAtExecutionRoot
.
protected java.lang.String encoding
protected java.lang.String includeScope
protected java.lang.String excludeScope
protected java.lang.String excludeArtifactIds
protected java.lang.String includeArtifactIds
protected java.lang.String excludeGroupIds
protected java.lang.String includeGroupIds
protected boolean excludeTransitive
protected org.apache.maven.ProjectDependenciesResolver dependencyResolver
Constructor Detail |
---|
public ProcessRemoteResourcesMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.util.List<org.apache.maven.project.MavenProject> getProjects() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.util.Map<org.apache.maven.model.Organization,java.util.List<org.apache.maven.project.MavenProject>> getProjectsSortedByOrganization(java.util.List<org.apache.maven.project.MavenProject> projects) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected boolean copyResourceIfExists(java.io.File file, java.lang.String relFileName, org.apache.velocity.VelocityContext context) throws java.io.IOException, org.apache.maven.plugin.MojoExecutionException
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
protected void validate() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void configureVelocityContext(org.apache.velocity.VelocityContext context) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void processResourceBundles(RemoteResourcesClassLoader classLoader, org.apache.velocity.VelocityContext context) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.apache.maven.model.Model getSupplement(org.codehaus.plexus.util.xml.Xpp3Dom supplementModelXml) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.apache.maven.model.Model mergeModels(org.apache.maven.model.Model parent, org.apache.maven.model.Model child)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |