[ 
https://issues.apache.org/jira/browse/AXIS2-2467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502242
 ] 

Oskar Carlstedt commented on AXIS2-2467:
----------------------------------------

Hello!

I had to add the following dependencies to make the plugin to work. Btw, I used 
xml beans as data binding.

<plugin>
<groupId>org.apache.axis2.maven2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<executions>
        <execution>
                <configuration>
                        <wsdlFile>
                                src/main/resources/META-INF/....wsdl
                        </wsdlFile>
                        <databindingName>xmlbeans</databindingName>

                        <!--
                                Use namespaceToPackages. The namespaceToUrl map 
doesn't work
                        -->
                        <namespaceToPackages>
                                ... must be set, otherwise the goal will fail
                        </namespaceToPackages>
                        <generateServerSide>
                                true
                        </generateServerSide>
                        <generateServerSideInterface>
                                true
                        </generateServerSideInterface>
                        <generateServicesXml>
                                false
                        </generateServicesXml>
                        <packageName>
                                ...
                        </packageName>
                </configuration>
                <goals>
                        <goal>wsdl2code</goal>
                </goals>
        </execution>
</executions>
<dependencies>
        <!--
                Axis
        -->
        <dependency>
                <groupId>org.apache.axis2</groupId>
                <artifactId>axis2</artifactId>
                <version>1.1.1</version>
        </dependency>
        <dependency>
                <groupId>org.apache.axis2</groupId>
                <artifactId>axis2-xmlbeans</artifactId>
                <version>1.1</version>
        </dependency>

        <!--
                WS commons
        -->
        <dependency>
                <groupId>org.apache.ws.commons.neethi</groupId>
                <artifactId>neethi</artifactId>
                <version>2.0</version>
        </dependency>
        <dependency>
                <groupId>org.apache.ws.commons.axiom</groupId>
                <artifactId>axiom</artifactId>
                <version>1.2.2</version>
        </dependency>

        <!--
                Saxon
        -->
        <dependency>
                <groupId>net.sf.saxon</groupId>
                <artifactId>saxon-dom</artifactId>
                <version>8.7</version>
        </dependency>
        <dependency>
                <groupId>net.sf.saxon</groupId>
                <artifactId>saxon</artifactId>
                <version>8.7</version>
        </dependency>

        <!--
                wsdl4j
        -->
        <dependency>
                <groupId>wsdl4j</groupId>
                <artifactId>wsdl4j</artifactId>
                <version>1.6.1</version>
        </dependency>

        <!--
                xmlbeans
        -->
        <dependency>
                <groupId>xmlbeans</groupId>
                <artifactId>xmlbeans-jsr173-api</artifactId>
                <version>2.0-dev</version>
        </dependency>
        <dependency>
                <groupId>xml-resolver</groupId>
                <artifactId>xml-resolver</artifactId>
                <version>1.2</version>
        </dependency>
        <dependency>
                <groupId>xmlbeans</groupId>
                <artifactId>xbean</artifactId>
                <version>2.2.0</version>
        </dependency>
        <dependency>
                <groupId>xmlbeans</groupId>
                <artifactId>xbean_xpath</artifactId>
                <version>2.2.0</version>
        </dependency>
        <dependency>
                <groupId>xmlbeans</groupId>
                <artifactId>xmlpublic</artifactId>
                <version>2.2.0</version>
        </dependency>
</dependencies>
</plugin>

Kind regards
Oskar

> Update of Maven2 WSDL2Code Plug-in (and Guide)
> ----------------------------------------------
>
>                 Key: AXIS2-2467
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2467
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>         Environment: maven2
>            Reporter: Oskar Carlstedt
>            Assignee: Jochen Wiedmann
>
> When using the WSDL2Code maven2 plug-in a lot of dependencies must be added 
> to the project. It would be nice if these dependencies where controlled by 
> the maven plug-in instead of manual work as of today.
> I report this as a bug because the maven2 plug-in is not deployed in a 
> correct way.
> Best Regards
> Oskar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to