Class AddToRepositoryMojo

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

    @Mojo(name="features-add-to-repository",
          defaultPhase=COMPILE,
          requiresDependencyResolution=RUNTIME,
          threadSafe=true)
    public class AddToRepositoryMojo
    extends AbstractFeatureMojo
    Add features to a repository directory
    • Field Detail

      • repository

        @Parameter(defaultValue="${project.build.directory}/features-repo")
        protected File repository
    • Constructor Detail

      • AddToRepositoryMojo

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

        protected void copy​(org.apache.maven.artifact.Artifact artifact,
                            File destRepository)