org.codehaus.mojo.xmlbeans
public class CompileXmlBeansMojo extends AbstractXmlBeansPlugin
A Maven 2 plugin which parses xsd files and produces a corresponding object model based on the Apache XML Beans parser.
The plugin produces two sets of output files referred to as generated sources
and generated classes. The former is then compiled to the build
outputDirectory
. The latter is generated in this directory.
Note that the descriptions for the goal's parameters have been blatently copied from http://xmlbeans.apache.org/docs/2.0.0/guide/antXmlbean.html for convenience.
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
classGenerationDirectory
Set a location to generate CLASS files into.
|
protected java.io.File |
defaultXmlConfigDir
Default xmlConfigs directory.
|
protected java.io.File |
schemaDirectory
The directory where .xsd files are to be found.
|
protected java.io.File |
sourceGenerationDirectory
Set a location to generate JAVA files into.
|
protected java.io.File |
staleFile
The location of the flag file used to determine if the output is stale.
|
catalogLocation, project
Constructor and Description |
---|
CompileXmlBeansMojo()
Empty constructor for the XML Beans plugin.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getBaseDir()
Returns the directory where the schemas are located.
|
java.io.File |
getDefaultXmlConfigDir() |
java.io.File |
getGeneratedClassesDirectory()
Returns the class directory of the project.
|
protected java.io.File |
getGeneratedSchemaDirectory() |
java.io.File |
getGeneratedSourceDirectory()
Returns the directory for saving generated source files.
|
java.io.File |
getSchemaDirectory()
Returns the directory where the schemas are located.
|
java.io.File |
getStaleFile() |
protected java.util.List |
getXsdJars()
Returns the list of xsd jars.
|
protected void |
updateProject(org.apache.maven.project.MavenProject project,
org.apache.xmlbeans.impl.tool.SchemaCompiler.Parameters compilerParams,
boolean stale) |
execute, getCatalogFile, getClasspath, getCompiler, getConfigFiles, getEntityResolver, getErrorListeners, getExtensions, getJavaFiles, getJavaSource, getMdefNamespaces, getMemoryInitialSize, getMemoryMaximumSize, getName, getOutputJar, getRepackage, getWsdlFiles, getXsdFiles, hasCatalogFile, isDebug, isDownload, isJaxb, isNoAnn, isNoJavac, isNoPvr, isNoUpa, isNoVDoc, isQuiet, isVerbose, validate
protected java.io.File schemaDirectory
protected java.io.File classGenerationDirectory
protected java.io.File sourceGenerationDirectory
protected java.io.File staleFile
protected java.io.File defaultXmlConfigDir
public CompileXmlBeansMojo()
protected void updateProject(org.apache.maven.project.MavenProject project, org.apache.xmlbeans.impl.tool.SchemaCompiler.Parameters compilerParams, boolean stale) throws org.apache.maven.artifact.DependencyResolutionRequiredException, XmlBeansException
updateProject
in class AbstractXmlBeansPlugin
org.apache.maven.artifact.DependencyResolutionRequiredException
XmlBeansException
public java.io.File getBaseDir()
getBaseDir
in class AbstractXmlBeansPlugin
public final java.io.File getGeneratedClassesDirectory()
public final java.io.File getGeneratedSourceDirectory()
public java.io.File getStaleFile()
getStaleFile
in class AbstractXmlBeansPlugin
public java.io.File getDefaultXmlConfigDir()
getDefaultXmlConfigDir
in class AbstractXmlBeansPlugin
public java.io.File getSchemaDirectory()
getSchemaDirectory
in class AbstractXmlBeansPlugin
protected java.util.List getXsdJars()
getXsdJars
in class AbstractXmlBeansPlugin
protected java.io.File getGeneratedSchemaDirectory()
getGeneratedSchemaDirectory
in class AbstractXmlBeansPlugin
Copyright © 2005-2014. All Rights Reserved.