[
https://issues.apache.org/jira/browse/CXF-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749861#action_12749861
]
Trygve Laugstøl edited comment on CXF-2275 at 9/1/09 4:21 AM:
--------------------------------------------------------------
I think an easy and compatible way to was to add support for "<wsdlArtifact>"
where you have "<wsdl>" today in [1]. Note that the user would have to add a
dependency on the WSDL with <type> wsdl and the plugin should look up the
artifact based on the id given in wsdlArtifact. So something like this:
{noformat}
<dependencies>
...
<dependency>
<groupId>com.acme</groupId>
<artifactId>my-wsdl</artifactId>
<type>wsdl</type>
</dependency>
</dependencies>
..
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdlArtifact>com.acme:my-wsdl</wsdlArtifact>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
{noformat}
Note that it would be nice to support <classifiers> on the dependencies too so
the possible wsdl artifact id might be <groupId>:<artifactid>[:<classifier>].
[1]: http://cxf.apache.org/docs/maven-integration-and-plugin.html
was (Author: trygvis):
I think an easy and compatible way to was to add support for
"<wsdlArtifact>" where you have "<wsdl>" today in [1]. Note that the user would
have to add a dependency on the WSDL with <type> wsdl and the plugin should
look up the artifact based on the id given in wsdlArtifact. So something like
this:
{code}
<dependencies>
...
<dependency>
<groupId>com.acme</groupId>
<artifactId>my-wsdl</artifactId>
<type>wsdl</type>
</dependency>
</dependencies>
..
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdlArtifact>com.acme:my-wsdl</wsdlArtifact>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
{code}
Note that it would be nice to support <classifiers> on the dependencies too so
the possible wsdl artifact id might be <groupId>:<artifactid>[:<classifier>].
[1]: http://cxf.apache.org/docs/maven-integration-and-plugin.html
> 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
>
> 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.