Class P2MetadataDefaultMojo

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

    @Mojo(name="p2-metadata-default",
          threadSafe=true)
    public class P2MetadataDefaultMojo
    extends P2MetadataMojo
    P2 metadata generation goal bound to default artifact build lifecycle. For explicit binding use p2-metadata goal. The idea is to avoid double p2 metadata generation for projects that generate additional artifacts or post process standard artifacts using custom goals bound to package phase.
    • Field Detail

      • defaultP2Metadata

        @Parameter(defaultValue="true")
        private boolean defaultP2Metadata
    • Constructor Detail

      • P2MetadataDefaultMojo

        public P2MetadataDefaultMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class P2MetadataMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException