Class AttachPublishedArtifactsMojo

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

    @Mojo(name="attach-artifacts")
    public class AttachPublishedArtifactsMojo
    extends AbstractP2Mojo

    Attaches p2 metadata and extra artifacts produced by the publishers to the project. In this way, the full build results are available in the local Maven repository, e.g. for builds of parts of a reactor.

    • Field Detail

      • projectHelper

        @Component
        private org.apache.maven.project.MavenProjectHelper projectHelper
    • Constructor Detail

      • AttachPublishedArtifactsMojo

        public AttachPublishedArtifactsMojo()
    • Method Detail

      • 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
      • getExtension

        private static java.lang.String getExtension​(java.io.File file)