Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.6
-
None
-
None
Description
CXF-2275 introduced a new feature to allow reading WSDLs from maven repository by cxf-codegen-plugin. By default all dependencies with type "wsdl" will be processed. And this behaviour can be switched off by setting "disableDependencyScan" config parameter to "true".
However, it does not expose this config parameter properly.
Here is source code snippet from
http://svn.apache.org/repos/asf/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
/** * By default all maven dependencies of type "wsdl" are added to the effective wsdlOptions. Setting this * parameter to true disables this functionality * */ boolean disableDependencyScan;
It should use @parameter annotation to define it as a mojo parameter like:
/** * By default all maven dependencies of type "wsdl" are added to the effective wsdlOptions. Setting this * parameter to true disables this functionality * * @parameter expression="${cxf.disableDependencyScan}" default-value="false" */ boolean disableDependencyScan;
in order to expose it as a config variable.