tested few options to generate setters on collections from wsdl2java with CXF.
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
<id>generate-jaxb</id>
<phase>generate-sources</phase>
<configuration>
<additionalJvmArgs>-Dfile.encoding=UTF8</additionalJvmArgs>
<sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdl/ScAssetMgmtDalet_inbound.wsdl</wsdl>
<extraargs>
<extraarg>-b</extraarg>
<extraarg>${basedir}/src/main/resources/wsdl/jaxws-bindings.xml</extraarg>
<extraarg>-exsh</extraarg>
<extraarg>true</extraarg>
<extraarg>-Xfluent-api-ext</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>2.2.4-1</version>
</plugin>
<plugin>
<groupId>net.java.dev.vcc.thirdparty</groupId>
<artifactId>collection-setter-injector</artifactId>
<version>0.5.0-1</version>
</plugin>
<plugin>
<groupId>redmosquito</groupId>
<artifactId>jaxb-fluent-api-ext</artifactId>
<version>0.0.1</version>
</plugin>
</plugins>
</configuration>
</execution>
Also tried with
<extraarg>-xjc-Xsetters</extraarg>
or
<extraarg>-xjc-Xcollection-setter-injector</extraarg>
without more luck. keep failing with BadUsageException ( jaxb-fluent-api-ext ) or BadCommandException ( jaxb XJC )
How did you guys managed to have your collections' setters properly generated?
Thanks!