2

我希望将 WSDL 1.1 版转换为 WSDL 2.0 格式,作为我们 maven 构建过程的一部分。

遇到了 Woden Converter 实用程序,它使用 XSL 进行此转换,并希望使用它。但是,似乎没有关于如何配置或使用相关 maven 插件的文档或示例(我可以找到):woden-converter-maven-plugin

有没有人有这方面的经验,他们可以分享 maven 插件配置详细信息吗?

理由(对于那些需要它的人):我们有一个合同优先的 Web 服务,并且最近要求将 2.0 格式的 WSDL 公开给一个特定的客户端。为了节省维护两个相同的 WSDL,我们希望维护 1.1 wsdl 并让构建过程自动生成 2.0 版本。

4

1 回答 1

1

这是插件的来源。你可以设置的不多。检查字段。您可以在<configuration/>插件的部分中进行设置。

考虑一下:

    <plugin>
        <groupId>org.apache.woden</groupId>
        <artifactId>woden-converter-maven-plugin</artifactId>
        <version>1.0M9</version>
        <executions>
            <execution>
                <id>convert</id>
                <goals>
                    <goal>convert</goal>
                </goals>
                <configuration>
                    <wsdl><!-- File or URL of wsdl1.1 document.Also multiple
                         WSDL files can be specified as a comma separated
                         list. -->
                    </wsdl>
                    <targetNS>
                         <!-- New target namespace for WSDL2.0 document. -->
                    </targetNS>
                    <targetDir>
                         <!-- Target directory for output, default 
                              location is project build directory. -->
                    </targetDir>
                    <sourceDir><!-- Source directory for output. --></sourceDir>
                    <verbose><!-- Verbose mode --></verbose>
                    <overwrite><!-- Overwrite existing files. --></overwrite>
                </configuration>
            </execution>
        </executions>
    </plugin>
于 2013-03-05T11:51:28.503 回答