Class AddDependencyMojo

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

    @Mojo(name="add-dep")
    public class AddDependencyMojo
    extends EditingMojo
    Mojo responsible to add a given dependency to a target POM if such dependency is not declared or the given dependency's version is greater than the existent at target POM
    • Constructor Detail

      • AddDependencyMojo

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