org.apache.maven.plugin.jar

Class AbstractJarMojo

public abstract class AbstractJarMojo extends AbstractMojo

Base class for creating a jar from project classes.

Version: $Id: AbstractJarMojo.java 366416 2006-01-06 04:07:11Z brett $

Author: Emmanuel Venisse

Method Summary
FilecreateArchive()
Generates the JAR.
voidexecute()
Generates the JAR.
protected abstract FilegetClassesDirectory()
Return the specific output directory to serve as the root for the archive.
protected abstract StringgetClassifier()
Overload this to produce a test-jar, for example.
protected static FilegetJarFile(File basedir, String finalName, String classifier)
protected MavenProjectgetProject()

Method Detail

createArchive

public File createArchive()
Generates the JAR.

UNKNOWN: Add license files in META-INF directory.

execute

public void execute()
Generates the JAR.

UNKNOWN: Add license files in META-INF directory.

getClassesDirectory

protected abstract File getClassesDirectory()
Return the specific output directory to serve as the root for the archive.

getClassifier

protected abstract String getClassifier()
Overload this to produce a test-jar, for example.

getJarFile

protected static File getJarFile(File basedir, String finalName, String classifier)

getProject

protected final MavenProject getProject()
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.