Package org.apache.cxf.maven_plugin
Class AbstractXSDToJavaMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.cxf.maven_plugin.AbstractXSDToJavaMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
TestXSDToJavaMojo,XSDToJavaMojo
public abstract class AbstractXSDToJavaMojo
extends org.apache.maven.plugin.AbstractMojo
CXF XSD To Java Tool
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringSets the JVM arguments (i.e.private org.sonatype.plexus.build.incremental.BuildContextprivate StringThe extension artifacts that will be retrieved and added to the classpath.private booleanAllows running in a separate process.private StringSets the Java executable to use when fork parameter istrue.(package private) FileDirectory in which the "DONE" markers are saved thatprivate List<org.apache.maven.artifact.Artifact> The plugin dependencies, needed for the fork mode.protected org.apache.maven.project.MavenProjectprivate List<org.eclipse.aether.repository.RemoteRepository> The project's remote repositories to use for the resolution of plugins and their dependencies.private org.eclipse.aether.RepositorySystemSessionThe current repository/network configuration of Maven.private org.eclipse.aether.RepositorySystem(package private) XsdOption[]Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanvoidexecute()private String[]getArguments(XsdOption option, String outputDir) private File(package private) abstract Stringprivate String[]getXsdFiles(String xsdDir, String xsd) protected booleanprivate booleanprivate URIprivate voidremoveMessages(String file) private intprivate intMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Component protected org.apache.maven.project.MavenProject project -
xsdOptions
-
markerDirectory
@Parameter(defaultValue="${project.build.directory}/cxf-xsd-plugin-markers", property="cxf.markerDirectory") File markerDirectoryDirectory in which the "DONE" markers are saved that -
extensions
The extension artifacts that will be retrieved and added to the classpath. -
buildContext
@Component private org.sonatype.plexus.build.incremental.BuildContext buildContext -
repository
@Component private org.eclipse.aether.RepositorySystem repository -
repoSession
@Parameter(defaultValue="${repositorySystemSession}", readonly=true) private org.eclipse.aether.RepositorySystemSession repoSessionThe current repository/network configuration of Maven. -
remoteRepos
@Parameter(defaultValue="${project.remotePluginRepositories}", readonly=true) private List<org.eclipse.aether.repository.RemoteRepository> remoteReposThe project's remote repositories to use for the resolution of plugins and their dependencies. -
fork
@Parameter(defaultValue="false") private boolean forkAllows running in a separate process. -
encoding
-
javaExecutable
Sets the Java executable to use when fork parameter istrue. -
additionalJvmArgs
Sets the JVM arguments (i.e.-Xms128m -Xmx128m) if fork is set totrue. -
pluginArtifacts
@Parameter(property="plugin.artifacts", readonly=true, required=true) private List<org.apache.maven.artifact.Artifact> pluginArtifactsThe plugin dependencies, needed for the fork mode.
-
-
Constructor Details
-
AbstractXSDToJavaMojo
public AbstractXSDToJavaMojo()
-
-
Method Details
-
getOutputDir
-
mapLocation
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getXsdFiles
private String[] getXsdFiles(String xsdDir, String xsd) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
resolve
private Set<File> resolve(String artifactDescriptor) throws org.apache.maven.plugin.MojoExecutionException, org.eclipse.aether.RepositoryException - Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.eclipse.aether.RepositoryException
-
getClasspathElements
protected List<String> getClasspathElements() throws org.apache.maven.artifact.DependencyResolutionRequiredException- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
-
isJava9Compatible
protected boolean isJava9Compatible() -
run
- Throws:
Exception
-
removeMessages
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getArguments
private String[] getArguments(XsdOption option, String outputDir) throws org.apache.maven.plugin.MojoExecutionException, MalformedURLException - Throws:
org.apache.maven.plugin.MojoExecutionExceptionMalformedURLException
-
deleteDir
-
getJavaExecutable
- Throws:
IOException
-
isWindows
private boolean isWindows() -
runForked
- Throws:
Exception
-