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 Details

    • RESOURCES_MANIFEST

      public static final String RESOURCES_MANIFEST
      See Also:
    • DEFAULT_INCLUDES

      private static final String[] DEFAULT_INCLUDES
    • resourcesDirectory

      @Parameter(defaultValue="${basedir}/src/main/resources") private 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 File outputDirectory
      The directory where you want the resource bundle manifest written to.
    • includes

      @Parameter private 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 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 String sourceEncoding
      Encoding of the bundle.
      Since:
      1.1
    • requiredProjectProperties

      @Parameter(property="bundle.requiredProjectProperties") private List<String> requiredProjectProperties
      List 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