package net.stickycode.plugins.bootstrap;

import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Set;

import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.ResolutionScope;

@Mojo(name = "project", requiresDependencyResolution = ResolutionScope.RUNTIME)
public class BootstrapProjectMojo
    extends AbstractBootstrapMojo {

  @Override
  protected Collection<File> collectArtifacts() {
    Set<Artifact> artifacts = getProject().getArtifacts();
    Collection<File> files = new ArrayList<File>();
    for (Artifact artifact : artifacts) {
      files.add(artifact.getFile());
      getLog().info("adding " + artifact);
    }
    return files;
  }

}

@@ -615,16 +615,134 @@
 File%3E();
+%0A%0A    files.add(getProject().getArtifact().getFile());%0A    getLog().info(%22adding %22 + getProject().getArtifact());%0A    
 %0A    for

Add the project file