public abstract class RawXJC2Mojo<O> extends AbstractXJC2Mojo<O>
catalogResolver, plugins| Constructor and Description |
|---|
RawXJC2Mojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.xml.resolver.tools.CatalogResolver |
createCatalogResolver()
Creates an instance of catalog resolver.
|
protected ClassLoader |
createClassLoader(ClassLoader parent) |
OptionsConfiguration |
createOptionsConfiguration() |
protected void |
doExecute() |
abstract void |
doExecute(O options) |
void |
execute()
Execute the maven2 mojo to invoke the xjc2 compiler based on any
configuration settings.
|
protected List<String> |
getArguments()
Returns array of command line arguments for XJC.
|
List<File> |
getBindingFiles() |
protected List<URL> |
getBindingUrls()
*************************************************************************
*
|
List<File> |
getDependsFiles() |
Collection<org.apache.maven.artifact.Artifact> |
getEpisodeArtifacts() |
Collection<File> |
getEpisodeFiles() |
List<File> |
getProducesFiles() |
List<File> |
getSchemaFiles() |
protected List<URL> |
getSchemaUrls() |
Collection<org.apache.maven.artifact.Artifact> |
getXjcPluginArtifacts() |
Collection<File> |
getXjcPluginFiles() |
List<URL> |
getXjcPluginURLs() |
protected void |
injectDependencyDefaults()
*************************************************************************
*
|
protected void |
injectDependencyDefaults(org.apache.maven.model.Dependency[] dependencies) |
protected boolean |
isUpToDate() |
protected void |
logConfiguration()
Log the configuration settings.
|
protected void |
resolveArtifacts() |
protected void |
resolveEpisodeArtifacts() |
protected void |
resolveXJCPluginArtifacts() |
protected void |
setupBindingFiles() |
protected void |
setupDependsFiles() |
protected void |
setupDirectories() |
protected void |
setupFiles() |
protected void |
setupLogging()
Initializes logging.
|
protected void |
setupMavenPaths()
Augments Maven paths with generated resources.
|
protected void |
setupProducesFiles() |
protected void |
setupSchemaFiles() |
cleanPackageDirectory, createResourceEntryUrls, getAddCompileSourceRoot, getAddTestCompileSourceRoot, getArgs, getArtifactFactory, getArtifactMetadataSource, getArtifactResolver, getBindingDirectory, getBindingExcludes, getBindingIncludes, getBindings, getBuildContext, getCatalog, getCatalogResolver, getCatalogs, getCatalogUrls, getClasspathElements, getCleanPackageDirectories, getDebug, getDisableDefaultExcludes, getEncoding, getEpisode, getEpisodeFile, getEpisodes, getExtension, getForceRegenerate, getGenerateDirectory, getGeneratePackage, getLocalRepository, getMavenProjectBuilder, getOptionsFactory, getOtherDepends, getPluginArtifacts, getPlugins, getProduces, getProject, getReadOnly, getRemoveOldOutput, getSchemaDirectory, getSchemaExcludes, getSchemaIncludes, getSchemaLanguage, getSchemas, getSpecVersion, getStrict, getUseDependenciesAsEpisodes, getVerbose, getWriteCode, logApiConfiguration, resolveDependencyResource, setAddCompileSourceRoot, setAddTestCompileSourceRoot, setArgs, setArtifactFactory, setArtifactMetadataSource, setArtifactResolver, setBindingDirectory, setBindingExcludes, setBindingIncludes, setBindings, setBuildContext, setCatalog, setCatalogResolver, setCatalogs, setClasspathElements, setCleanPackageDirectories, setDebug, setDisableDefaultExcludes, setEncoding, setEpisode, setEpisodeFile, setEpisodes, setExtension, setForceRegenerate, setGenerateDirectory, setGeneratePackage, setLocalRepository, setMavenProjectBuilder, setOtherDepends, setPluginArtifacts, setPlugins, setProduces, setProject, setReadOnly, setRemoveOldOutput, setSchemaDirectory, setSchemaExcludes, setSchemaIncludes, setSchemaLanguage, setSchemas, setSpecVersion, setStrict, setUseDependenciesAsEpisodes, setVerbose, setWriteCodepublic Collection<org.apache.maven.artifact.Artifact> getXjcPluginArtifacts()
public Collection<File> getXjcPluginFiles()
public Collection<org.apache.maven.artifact.Artifact> getEpisodeArtifacts()
public Collection<File> getEpisodeFiles()
protected List<URL> getSchemaUrls() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void injectDependencyDefaults()
protected void injectDependencyDefaults(org.apache.maven.model.Dependency[] dependencies)
protected void resolveArtifacts()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void resolveXJCPluginArtifacts()
throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
org.apache.maven.artifact.resolver.ArtifactNotFoundException,
org.apache.maven.project.artifact.InvalidDependencyVersionException
org.apache.maven.artifact.resolver.ArtifactResolutionExceptionorg.apache.maven.artifact.resolver.ArtifactNotFoundExceptionorg.apache.maven.project.artifact.InvalidDependencyVersionExceptionprotected void resolveEpisodeArtifacts()
throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
org.apache.maven.artifact.resolver.ArtifactNotFoundException,
org.apache.maven.project.artifact.InvalidDependencyVersionException
org.apache.maven.artifact.resolver.ArtifactResolutionExceptionorg.apache.maven.artifact.resolver.ArtifactNotFoundExceptionorg.apache.maven.project.artifact.InvalidDependencyVersionExceptionprotected ClassLoader createClassLoader(ClassLoader parent) throws org.apache.maven.plugin.MojoExecutionException
parent - the returned classLoader will be a descendant of this one.org.apache.maven.plugin.MojoExecutionExceptionprotected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic abstract void doExecute(O options) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void setupLogging()
com.sun.tools.xjc.Options.findServices system property on to
enable debuggin of XJC plugins.protected void setupMavenPaths()
protected void setupDirectories()
protected void setupFiles()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void setupSchemaFiles()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void setupBindingFiles()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void setupDependsFiles()
protected void setupProducesFiles()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void logConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
logConfiguration in class AbstractXJC2Mojo<O>org.apache.maven.plugin.MojoExecutionExceptionprotected List<URL> getBindingUrls() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.xml.resolver.tools.CatalogResolver createCatalogResolver()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected boolean isUpToDate()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected List<String> getArguments() throws org.apache.maven.plugin.MojoExecutionException
AbstractXJC2Mojo.getArgs()) but also
include episode arguments.org.apache.maven.plugin.MojoExecutionExceptionpublic OptionsConfiguration createOptionsConfiguration() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2006-2012. All Rights Reserved.