Class MainWsImportMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jvnet.jax_ws_commons.jaxws.MainWsImportMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="wsimport", defaultPhase=GENERATE_SOURCES, requiresDependencyResolution=RUNTIME) public class MainWsImportMojo extends org.apache.maven.plugin.AbstractMojo
Parses wsdl and binding files and generates Java code needed to access it.
Author:
Kohsuke Kawaguchi
  • Field Details

    • wsdlFiles

      @Parameter protected List<String> wsdlFiles
      List of files to use for WSDLs. If not specified, all .wsdl files in the wsdlDirectory will be used.
    • bindingDirectory

      @Parameter(defaultValue="${basedir}/src/jaxws") protected File bindingDirectory
      Directory containing binding files.
    • bindingFiles

      @Parameter protected List<String> bindingFiles
      List of files to use for bindings. If not specified, all .xml files in the bindingDirectory will be used.
    • xauthFile

      @Parameter protected File xauthFile
      Specify the location of authorization file.
    • project

      @Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project
      The Maven Project Object.
    • verbose

      @Parameter(defaultValue="false") protected boolean verbose
      Output messages about what the tool is doing.
    • keep

      @Parameter(defaultValue="true") protected boolean keep
      Keep generated files.
    • encoding

      @Parameter(property="project.build.sourceEncoding") protected String encoding
      Specify character encoding used by source files.
    • pluginDescriptor

      @Parameter(defaultValue="${plugin}", readonly=true) protected org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor
    • buildContext

      @Component protected org.sonatype.plexus.build.incremental.BuildContext buildContext
  • Constructor Details

    • MainWsImportMojo

      public MainWsImportMojo()
  • Method Details

    • getDestDir

      protected File getDestDir()
      Either ${build.outputDirectory} or ${build.testOutputDirectory}.
    • getSourceDestDir

      protected File getSourceDestDir()
    • getDefaultSrcOut

      protected File getDefaultSrcOut()
    • getImplDestDir

      protected File getImplDestDir()
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getMain

      protected String getMain()
    • getXnocompile

      protected boolean getXnocompile()
    • getBindingFiles

      public final File[] getBindingFiles()
      Returns a file array of xml files to translate to object models.
      Returns:
      An array of schema files to be parsed by the schema compiler.
    • addSourceRoot

      protected void addSourceRoot(String sourceDir)
    • getExtraClasspath

      protected String getExtraClasspath()
    • isExtensionOn

      protected boolean isExtensionOn()
    • getCommonArgs

      protected List<String> getCommonArgs() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • isArgSupported

      protected boolean isArgSupported(String arg) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • exec

      protected void exec(List<String> args) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • maybeUnsupportedOption

      protected void maybeUnsupportedOption(String option, String value, List<String> args)
    • getExtraDependencies

      protected String[] getExtraDependencies()
    • getExtraArtifactIDs

      protected String[] getExtraArtifactIDs()