I am having trouble using the wsdl2code maven plugin to generate code for more 
than one wsdl file.

I am using axis-wsdlcode-maven-plugin 1.5.2 with maven 3.0.

Examples on apache.org show that a pom file with the xml similar to this should 
work:

<plugin>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
    <version>1.5.2</version>
    <executions>
        <execution>
                <id>ID1</id>
                <goals>
                        <goal>wsdl2code</goal>
                </goals>
                <configuration>        
                    <wsdlFile>src/main/resources/wsdl/file1.wsdll</wsdlFile>
                    <!-- other configuration -->
                </configuration>
        </execution>

        <execution>
                <id>ID2</id>
                <goals>
                        <goal>wsdl2code</goal>
                </goals>
                <configuration>
                    <wsdlFile>./src/main/resources/wsdl/file2.wsdl</wsdlFile>
                    <!-- other configuration -->
                </configuration>
        </execution>
    </executions>
</plugin>


However, when I include a <configuration> block inside of <execution> or 
<executions> the config values are not recognized.  For example, with the above 
xml, I would get an error that src/main/axis2/services.wsdl cannot be found as 
my wsdls are not in the default location.  

If I move my <configuration> block outside of <executions> it works fine for 
one wsdl.  But I have not found a way to specify multiple wsdls with the 
<configuration> in that location.  Multiple <wsdlFile> lines only recognize the 
last one.  Multiple <configration> blocks cause xml exceptions.

Any suggestions would be appreciated.  Thank you.

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

Reply via email to