Hi Greg

On 2010-08-10 20:37, Greg Akins wrote:
> Can someone give me some help on using axistools-maven-plugin?
> 
> The wsdl2java goal generates java files into a target directory (can
> be changed, but that's the default).  Consequently, those files don't
> get compiles as part of 'mvn compile'

The generated files are included when Maven compiles your source files,
provided you add the proper <execution> that is shown on the simple
configuration page.

> Is it a better practice to change the output directory so they do get 
> compiled?
> 
> Also, the build I'm converting to Maven currently uses the ant
> axis-wsdl2java tasks.  It specifies a url of "schema/myspec.wsdl"  but
> the following example appears to utilize REAL url.. Can anyone give me
> a better idea of what the various attributes in the pom.xml plugin
> section should be? 

If you have a file in your project that is a wsdl file, you should use
the <wsdlFiles> parameter instead of <urls>, like this

<wsdlFiles>
  <wsdlFile>schema/myspec.wsdl</wsdlFile>
</wsdlFiles>

or if "schema" is the source directory of all your wsdl files, do it
like this:

<sourceDirectory>${basedir}/schema</sourceDirectory>
<wsdlFiles>
  <wsdlFile>myspec.wsdl</wsdlFile>
</wsdlFiles>

 Or are there some better resources that what is
> available at the plugin's website?
> 
> http://mojo.codehaus.org/axistools-maven-plugin/examples/simple.html

I've just deployed the new 1.4 version of this plugin. New in that
version is improved documentation. For every plugin parameter that has a
corresponding command line option in the WSDL2Java tool, there is a
description of which option it corresponds to. Have a look at

http://mojo.codehaus.org/axistools-maven-plugin/wsdl2java-mojo.html

-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to