org.codehaus.mojo.jboss.packaging
Class HarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.jboss.packaging.AbstractPackagingMojo
          extended by org.codehaus.mojo.jboss.packaging.HarMojo
All Implemented Interfaces:
ContextEnabled, Mojo
Direct Known Subclasses:
HarExplodedMojo

public class HarMojo
extends AbstractPackagingMojo

Builds a deployable JBoss Hibernate Archive. Note that in versions of jboss prior to 4.0.3 the deployment descriptor for a HAR was "hibernate-service.xml". In 4.0.3 this changed to use "jboss-service.xml" similar to the SAR format. In JBoss 5 and above, the HAR deployment descriptor can be any file with a name that matches the pattern "*-hibernate.xml". If the parameter "deploymentDescriptorFile" is not set, this goal will first look for "jboss-service.xml", then "hibernate-service.xml" and if those are not found, it will search for a file ending with * "-hibernate.xml"

Is bound to the specified phase of the standard build lifecycle:
package
Requires the dependencies in this specified scope:
runtime
Is defined by the goal name:
har

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
HarMojo()
           
 
Method Summary
 String getArtifactType()
          Get the type of the artifact.
 File getDeploymentDescriptor()
          Get the deployment descriptor file.
 
Methods inherited from class org.codehaus.mojo.jboss.packaging.AbstractPackagingMojo
buildExplodedPackaging, buildExplodedPackaging, buildSpecificPackaging, execute, getArchiveName, getClassesDirectory, getDeploymentDescriptorDest, getDeploymentDescriptorDestName, getLibDirectory, getOutputDirectory, getPackagingDirectory, getProject, isExplodedOnly, packageClasses, packageLib, packageResources, performPackaging
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarMojo

public HarMojo()
Method Detail

getArtifactType

public String getArtifactType()
Get the type of the artifact.

Specified by:
getArtifactType in class AbstractPackagingMojo
Returns:
The type of the generated artifact.

getDeploymentDescriptor

public File getDeploymentDescriptor()
Description copied from class: AbstractPackagingMojo
Get the deployment descriptor file. Subclasses may override this method to provide a different name for their type of archive packaging.

Specified by:
getDeploymentDescriptor in class AbstractPackagingMojo
Returns:
deployment descriptor File


Copyright © 2006-2011 Codehaus. All Rights Reserved.