[
https://issues.apache.org/jira/browse/CXF-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Schneider resolved CXF-2275.
--------------------------------------
Resolution: Fixed
I just committed a fix for this issue that should solve it completely. It added
the following features:
- You can now specifiy wsdl depencencies directly in the dependencies section
of the pom:
<dependency>
<groupId>org.apache.cxf.examples</groupId>
<artifactId>MyService</artifactId>
<version>1.0.0</version>
<type>wsdl</type>
</dependency>
By default all dependencies with type "wsdl" will be processed. By using
disableDependencyScan "true" you can switch this off.
- Binding files with wsdlLocation="" will be processed so wsdlLocation contains
the url to the given wsdl. This allows to specify default binding files that
are then used for all wsdls.
- The plugin now searches for a default binding file
src/main/resources/defaultBinding.xml. This file is automatically added to the
binding files of the defaultOptions.
So using all these options you can keep the configuration part of the codegen
plugin completely empty and still have wsdls processed from the maven repo and
have a default binding file that for example replaces XMLGregorianCalendar by
Date.
The following systest "systests/wsdl_maven/codegen" shows this.
I would be happy about some feedback if this is how you wanted this solution to
look like or if you have any further suggestions.
> Maven plugins: Support reading WSDLs from Maven repository
> ----------------------------------------------------------
>
> Key: CXF-2275
> URL: https://issues.apache.org/jira/browse/CXF-2275
> Project: CXF
> Issue Type: New Feature
> Components: Tooling
> Affects Versions: 2.2.2
> Reporter: Trygve Laugstøl
> Assignee: Christian Schneider
> Fix For: 2.3
>
>
> The Maven plugins should support reading WSDL files directly from a Maven
> repository to make it easier to consume WSDLs in a repository. Currently it
> is required to use the dependency plugin or similar to copy the WSDL from the
> repository to target/ to process it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.