1

I am trying to generate java sources from a wsdl file to integrate with my project running on Java 17 /Spring Boot 3. I am using following maven plugin setup to achieve this:

            <plugin>
                <groupId>com.sun.xml.ws</groupId>
                <artifactId>jaxws-maven-plugin</artifactId>
                <version>4.0.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>wsimport</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <packageName>io.test.lib</packageName>
                    <wsdlDirectory>${project.basedir}/src/main/resources/</wsdlDirectory>
                    <wsdlFiles>
                        <wsdlFile>my_wsdl.wsdl</wsdlFile>
                    </wsdlFiles>
                    <wsdlLocation>/my_wsdl.wsdl</wsdlLocation>
<!--                    <xjcArgs>-->
<!--                        <xjcArg>-Xsetters</xjcArg>-->
<!--                    </xjcArgs>-->
                </configuration>
<!--                <dependencies>-->
<!--                    <dependency>-->
<!--                        <groupId>org.jvnet.jaxb2_commons</groupId>-->
<!--                        <artifactId>jaxb2-basics</artifactId>-->
<!--                        <version>1.11.1</version>-->
<!--                    </dependency>-->
<!--                </dependencies>-->
            </plugin>

This works all well except the generated java files does not contains setter methods for list/collection type parameters. I was previously using the commented out plugin with Spring boot 2 to achieve this, but this is no longer working. Any idea on how to achieve this?

Brian Clozel
  • 56,583
  • 15
  • 167
  • 176
Chamila Wijayarathna
  • 1,815
  • 5
  • 30
  • 54

0 Answers0