cxf-codegen-plugin processes all wsdl file in directory even though only one
wsdl is specified in pom
-----------------------------------------------------------------------------------------------------
Key: CXF-2977
URL: https://issues.apache.org/jira/browse/CXF-2977
Project: CXF
Issue Type: Bug
Components: Configuration, Tooling
Affects Versions: 2.2.10
Reporter: Knut-Erik Johnsen
Priority: Minor
If a user has two or more wsdl files in a directory, all are processed even
though only one is specified as a wsdl option in the pom. Given the specified
pom, all wsdl files in the src/main/resources/wsdl directory will be processed.
<configuration>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdl/mywsdl.wsdl</wsdl>
</wsdlOption>
</wsdlOptions>
</configuration>
This is due to line 337 to 340 in WSDL2JavaMojo.java, where it sets up a
default include of *.wsdl if no includes are specified. The behavior can
therefor be avoided by adding the following under the configuration element
above, but this is annoying and pollutes the pom:
<includes>
<include></include>
</includes>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.