Class 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

      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.
      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.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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

      • 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
    • Constructor Detail

      • BundleRemoteResourcesMojo

        public BundleRemoteResourcesMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException