Axis2 Maven plugin problem

I need to make pom.xml to generate Axis2 client based on WSDL file. Originally code was developed for client generated by Ant.

I used axistools-maven-plugin to do that. However Maven plugin generates different code.

I think the problem is plugin configuration. But i can't find enough documentation or examples to configure the plugin to generate in the same manner as Ant script.

Ant configuration:

<target name="generate.client">
        <delete dir="${}"/>
        <mkdir dir="${}"/>
        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" classpathref="axis2.classpath">
            <arg line="-uri ${wsdl.uri}"/>
            <arg line="-s"/>
            <arg line="-l java"/>
            <arg line="-ns2p ./src/main/wsdl/namespace2package.mapping"/>
            <arg line="-p com.reuters.search2"/>
            <arg line="-d xmlbeans"/>
            <arg line="-o ${}"/>


Maven plugin :


Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at