class DefaultMavenProjectHelper extends AbstractLogEnabled implements MavenProjectHelper {
    private final ArtifactHandlerManager artifactHandlerManager;

    @Inject
    public DefaultMavenProjectHelper(ArtifactHandlerManager artifactHandlerManager) {
        this.artifactHandlerManager = artifactHandlerManager;
    }

    public void attachArtifact(
            MavenProject project, String artifactType, String artifactClassifier, File artifactFile) {
        ArtifactHandler handler = null;

        if (artifactType != null) {
            handler = artifactHandlerManager.getArtifactHandler(artifactType);
        }

        if (handler == null) {
            handler = artifactHandlerManager.getArtifactHandler("jar");
        }

        Artifact artifact = new AttachedArtifact(project.getArtifact(), artifactType, artifactClassifier, handler);

        artifact.setFile(artifactFile);
        artifact.setResolved(true);

        attachArtifact(project, artifact);
    }

    public void attachArtifact(MavenProject project, String artifactType, File artifactFile) {<FILL_FUNCTION_BODY>}

    public void attachArtifact(MavenProject project, File artifactFile, String artifactClassifier) {
        Artifact projectArtifact = project.getArtifact();

        Artifact artifact = new AttachedArtifact(
                projectArtifact, projectArtifact.getType(), artifactClassifier, projectArtifact.getArtifactHandler());

        artifact.setFile(artifactFile);
        artifact.setResolved(true);

        attachArtifact(project, artifact);
    }

    /**
     * Add an attached artifact or replace the file for an existing artifact.
     *
     * @see MavenProject#addAttachedArtifact(org.apache.maven.artifact.Artifact)
     * @param project project reference.
     * @param artifact artifact to add or replace.
     */
    public void attachArtifact(MavenProject project, Artifact artifact) {
        project.addAttachedArtifact(artifact);
    }

    public void addResource(
            MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes) {
        Resource resource = new Resource();
        resource.setDirectory(resourceDirectory);
        resource.setIncludes(includes);
        resource.setExcludes(excludes);

        project.addResource(resource);
    }

    public void addTestResource(
            MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes) {
        Resource resource = new Resource();
        resource.setDirectory(resourceDirectory);
        resource.setIncludes(includes);
        resource.setExcludes(excludes);

        project.addTestResource(resource);
    }
}

        ArtifactHandler handler = artifactHandlerManager.getArtifactHandler(artifactType);

        Artifact artifact = new AttachedArtifact(project.getArtifact(), artifactType, handler);

        artifact.setFile(artifactFile);
        artifact.setResolved(true);

        attachArtifact(project, artifact);
    
<methods>public void <init>() ,public void enableLogging(org.codehaus.plexus.logging.Logger) <variables>private org.codehaus.plexus.logging.Logger logger