Class PackageIUMojo

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

    @Mojo(name="package-iu",
          defaultPhase=PACKAGE,
          requiresDependencyResolution=RUNTIME,
          threadSafe=true)
    public class PackageIUMojo
    extends AbstractTychoPackagingMojo
    Creates the zip for the IU and attaches it as an artifact
    • Field Detail

      • LOCK

        private static final java.lang.Object LOCK
      • outputDirectory

        @Parameter(property="project.build.directory",
                   required=true,
                   readonly=true)
        protected java.io.File outputDirectory
      • artifactContentFolder

        @Parameter(property="project.build.outputDirectory")
        private java.lang.String artifactContentFolder
        Folder containing the files to include in the final zip.
      • basedir

        @Parameter(property="project.basedir",
                   required=true,
                   readonly=true)
        private java.io.File basedir
      • zipArchiver

        @Component(role=org.codehaus.plexus.archiver.Archiver.class,
                   hint="zip")
        private org.codehaus.plexus.archiver.zip.ZipArchiver zipArchiver
    • Constructor Detail

      • PackageIUMojo

        public PackageIUMojo()
    • 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
      • addMavenProperties

        private void addMavenProperties​(IU iu)
      • addSelfCapability

        private void addSelfCapability​(IU iu)
      • addArtifactReference

        private void addArtifactReference​(IU iu)
      • expandVersions

        private void expandVersions​(IU iu)
                             throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • hasPayload

        private boolean hasPayload()
      • createArtifact

        private java.io.File createArtifact()
                                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getPayloadDir

        private java.io.File getPayloadDir()
      • hasArtifactReference

        private boolean hasArtifactReference​(IU iu)