Class PrepareAssemblyMojo

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

    @Mojo(name="prepare-assembly",
          threadSafe=true)
    public class PrepareAssemblyMojo
    extends org.apache.maven.plugin.AbstractMojo
    Prepares the apache-camel/pom.xml and common-bin to keep the Camel artifacts up-to-date.
    • Field Detail

      • project

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

        @Parameter(defaultValue="${project.build.directory}/../../../apache-camel/pom.xml")
        protected File releasePom
        The apache-camel/pom
      • commonBinXml

        @Parameter(defaultValue="${project.build.directory}/../../../apache-camel/src/main/descriptors/common-bin.xml")
        protected File commonBinXml
        The apache-camel/descriptors/common-bin.xml
      • allComponentsPomFile

        @Parameter(defaultValue="${project.build.directory}/../../../core/camel-allcomponents/pom.xml")
        protected File allComponentsPomFile
        The directory for components
    • Constructor Detail

      • PrepareAssemblyMojo

        public PrepareAssemblyMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Execute goal.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - execution of the main class or one of the threads it generated failed.
        org.apache.maven.plugin.MojoFailureException - something bad happened...
      • updatePomAndCommonBin

        protected void updatePomAndCommonBin​(File allComponentsPom,
                                             String groupId,
                                             String token)
                                      throws org.apache.maven.plugin.MojoExecutionException,
                                             org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException