Class ListResourcesMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="list-resources",
          defaultPhase=PROCESS_RESOURCES,
          requiresProject=true,
          threadSafe=true)
    public class ListResourcesMojo
    extends org.apache.maven.plugin.AbstractMojo
    Creates a list of resources in the current project.
    Author:
    Rob Spoor
    • Constructor Detail

      • ListResourcesMojo

        public ListResourcesMojo()
    • Method Detail

      • setResourceListFile

        @Parameter(defaultValue="${project.build.outputDirectory}/META-INF/${project.artifactId}.resources",
                   required=true)
        public void setResourceListFile​(File resourceListFile)
        The file to store the resource list in.
        Parameters:
        resourceListFile - The file to store the resource list in.
        Since:
        1.0
      • setResourceBaseDir

        @Parameter(defaultValue="${project.build.outputDirectory}",
                   required=true)
        public void setResourceBaseDir​(File resourceBaseDir)
        The resource base directory.
        Parameters:
        resourceBaseDir - The resource base directory.
        Since:
        1.0
      • execute

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