org.codehaus.mojo.jaxb2
Class XjcMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.jaxb2.AbstractXjcMojo
          extended by org.codehaus.mojo.jaxb2.XjcMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class XjcMojo
extends AbstractXjcMojo

Generates Java sources from XML Schema(s) and binding file(s) using the JAXB Binding Compiler (XJC).

Version:
$Id: XjcMojo.java 14434 2011-08-11 21:06:11Z afloom $
Author:
jgenender@apache.org, jgenender
Is bound to the specified phase of the standard build lifecycle:
generate-sources
Requires the dependencies in this specified scope:
NOT DEFINED
Is defined by the goal name:
xjc

Field Summary
 
Fields inherited from class org.codehaus.mojo.jaxb2.AbstractXjcMojo
arguments, bindingFiles, catalog, clearOutputDir, dtd, explicitAnnotation, extension, failOnNoSchemas, generatedResourcesDirectory, httpproxy, includeSchemasOutputPath, npa, nv, packageName, quiet, readOnly, relaxng, relaxngCompact, schemaFiles, schemaListFileName, target, verbose, wsdl, xmlschema
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
XjcMojo()
           
 
Method Summary
protected  void addCompileSourceRoot(MavenProject project)
           
protected  void addResource(MavenProject project, Resource resource)
           
protected  File getBindingDirectory()
           
protected  List getClasspathElements(MavenProject project)
           
protected  File getOutputDirectory()
           
protected  File getSchemaDirectory()
           
protected  File getStaleFile()
           
 
Methods inherited from class org.codehaus.mojo.jaxb2.AbstractXjcMojo
copyXSDs, execute, getBindingFiles, getSchemasFromFileListing, getXSDFiles
 
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

XjcMojo

public XjcMojo()
Method Detail

getOutputDirectory

protected File getOutputDirectory()
Specified by:
getOutputDirectory in class AbstractXjcMojo

getStaleFile

protected File getStaleFile()
Specified by:
getStaleFile in class AbstractXjcMojo

getClasspathElements

protected List getClasspathElements(MavenProject project)
                             throws DependencyResolutionRequiredException
Specified by:
getClasspathElements in class AbstractXjcMojo
Throws:
DependencyResolutionRequiredException

addCompileSourceRoot

protected void addCompileSourceRoot(MavenProject project)
Specified by:
addCompileSourceRoot in class AbstractXjcMojo

addResource

protected void addResource(MavenProject project,
                           Resource resource)
Specified by:
addResource in class AbstractXjcMojo

getSchemaDirectory

protected File getSchemaDirectory()
Specified by:
getSchemaDirectory in class AbstractXjcMojo

getBindingDirectory

protected File getBindingDirectory()
Specified by:
getBindingDirectory in class AbstractXjcMojo


Copyright © 2005-2012 Codehaus. All Rights Reserved.