Class PrepareParentPomMojo

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

    @Mojo(name="prepare-parent-pom",
          threadSafe=true)
    public class PrepareParentPomMojo
    extends org.apache.maven.plugin.AbstractMojo
    Prepares the parent/pom.xml 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.
      • parentPom

        @Parameter(defaultValue="${project.build.directory}/../../../parent/pom.xml")
        protected File parentPom
        The parent/pom
      • componentsDir

        @Parameter(defaultValue="${project.build.directory}/../../../components")
        protected File componentsDir
        The directory for components
    • Constructor Detail

      • PrepareParentPomMojo

        public PrepareParentPomMojo()
    • 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...
      • updateParentPom

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