Class AbstractP2MetadataMojo

    • Field Detail

      • project

        @Parameter(property="project",
                   required=true,
                   readonly=true)
        protected org.apache.maven.project.MavenProject project
      • metadataRepositoryName

        @Parameter(defaultValue="${project.name}",
                   required=true)
        protected java.lang.String metadataRepositoryName
        Metadata repository name
      • target

        @Parameter(defaultValue="${project.build.directory}/site")
        protected java.io.File target
        Generated update site location (must match update-site mojo configuration)
      • artifactRepositoryName

        @Parameter(defaultValue="${project.name} Artifacts",
                   required=true)
        protected java.lang.String artifactRepositoryName
        Artifact repository name
      • forkedProcessTimeoutInSeconds

        @Parameter(property="p2.timeout")
        private int forkedProcessTimeoutInSeconds
        Kill the forked test process after a certain number of seconds. If set to 0, wait forever for the process, never timing out.
      • argLine

        @Parameter
        private java.lang.String argLine
        Arbitrary JVM options to set on the command line.
      • generateP2Metadata

        @Parameter(defaultValue="true")
        protected boolean generateP2Metadata
      • compressRepository

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

      • AbstractP2MetadataMojo

        public AbstractP2MetadataMojo()
    • 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
      • logUpdateSiteLocationNotFound

        protected void logUpdateSiteLocationNotFound()
      • generateMetadata

        private void generateMetadata()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addArguments

        protected void addArguments​(P2ApplicationLauncher launcher)
                             throws java.io.IOException,
                                    java.net.MalformedURLException
        Throws:
        java.io.IOException
        java.net.MalformedURLException
      • getPublisherApplication

        protected abstract java.lang.String getPublisherApplication()
      • getUpdateSiteLocation

        protected java.io.File getUpdateSiteLocation()