Class XJCMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, DependencyResourceResolver
    Direct Known Subclasses:
    XJCTestMojo

    @Mojo(name="generate",
          defaultPhase=GENERATE_SOURCES,
          requiresDependencyResolution=COMPILE,
          requiresDependencyCollection=COMPILE,
          threadSafe=true)
    public class XJCMojo
    extends RawXJCMojo<com.sun.tools.xjc.Options>
    JAXB Mojo.
    Author:
    Aleksei Valikov (valikov@gmx.net)
    • Constructor Detail

      • XJCMojo

        public XJCMojo()
    • Method Detail

      • doExecute

        public void doExecute​(com.sun.tools.xjc.Options options)
                       throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        doExecute in class RawXJCMojo<com.sun.tools.xjc.Options>
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • loadModel

        protected com.sun.tools.xjc.model.Model loadModel​(com.sun.tools.xjc.Options options)
                                                   throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • generateCode

        protected com.sun.tools.xjc.outline.Outline generateCode​(com.sun.tools.xjc.model.Model model)
                                                          throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • writeCode

        protected void writeCode​(com.sun.tools.xjc.outline.Outline outline)
                          throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException