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, generatingMETA-INF/maven/remote-resources.xml
descriptor.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]
DEFAULT_INCLUDES
private java.lang.String[]
excludes
A list of files to exclude.private java.lang.String[]
includes
A list of files to include.private java.io.File
outputDirectory
The directory where you want the resource bundle manifest written to.private java.util.List<java.lang.String>
requiredProjectProperties
List of project properties needed to process Velocity template by this resource bundle.static java.lang.String
RESOURCES_MANIFEST
private java.io.File
resourcesDirectory
The directory which contains the resources you want packaged up in this resource bundle.private java.lang.String
sourceEncoding
Encoding of the bundle.
-
Constructor Summary
Constructors Constructor Description BundleRemoteResourcesMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
-
-
Field Detail
-
RESOURCES_MANIFEST
public static final java.lang.String RESOURCES_MANIFEST
- See Also:
- Constant Field Values
-
DEFAULT_INCLUDES
private static final java.lang.String[] DEFAULT_INCLUDES
-
resourcesDirectory
@Parameter(defaultValue="${basedir}/src/main/resources") private java.io.File resourcesDirectory
The directory which contains the resources you want packaged up in this resource bundle.
-
outputDirectory
@Parameter(defaultValue="${project.build.outputDirectory}", required=true) private java.io.File outputDirectory
The directory where you want the resource bundle manifest written to.
-
includes
@Parameter private java.lang.String[] 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
@Parameter private java.lang.String[] excludes
A list of files to exclude. Can contain ant-style wildcards and double wildcards.- Since:
- 1.0-alpha-5
-
sourceEncoding
@Parameter(defaultValue="${project.build.sourceEncoding}") private java.lang.String sourceEncoding
Encoding of the bundle.- Since:
- 1.1
-
requiredProjectProperties
@Parameter(property="bundle.requiredProjectProperties") private java.util.List<java.lang.String> requiredProjectProperties
List of project properties needed to process Velocity template by this resource bundle.- Since:
- 3.3.0
-
-