Class BundleRemoteResourcesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.resources.remote.BundleRemoteResourcesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="bundle",
defaultPhase=GENERATE_RESOURCES,
threadSafe=true)
public class BundleRemoteResourcesMojo
extends org.apache.maven.plugin.AbstractMojo
Bundle up resources that should be considered as a remote-resource,
generating
META-INF/maven/remote-resources.xml
descriptor.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]
private String[]
A list of files to exclude.private String[]
A list of files to include.private File
The directory where you want the resource bundle manifest written to.List of project properties needed to process Velocity template by this resource bundle.static final String
private File
The directory which contains the resources you want packaged up in this resource bundle.private String
Encoding of the bundle.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
RESOURCES_MANIFEST
- See Also:
-
DEFAULT_INCLUDES
-
resourcesDirectory
The directory which contains the resources you want packaged up in this resource bundle. -
outputDirectory
@Parameter(defaultValue="${project.build.outputDirectory}", required=true) private File outputDirectoryThe directory where you want the resource bundle manifest written to. -
includes
A list of files to include. Can contain ant-style wildcards and double wildcards. The default includes are**/*.txt **/*.vm
- Since:
- 1.0-alpha-5
-
excludes
A list of files to exclude. Can contain ant-style wildcards and double wildcards.- Since:
- 1.0-alpha-5
-
sourceEncoding
Encoding of the bundle.- Since:
- 1.1
-
requiredProjectProperties
@Parameter(property="bundle.requiredProjectProperties") private List<String> requiredProjectPropertiesList of project properties needed to process Velocity template by this resource bundle.- Since:
- 3.3.0
-
-
Constructor Details
-
BundleRemoteResourcesMojo
public BundleRemoteResourcesMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-