cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-5772) CXF codegen plugin: Expose original wsdl through wsdlLocation generates a duplicate option exception
Date Wed, 05 Apr 2017 15:41:41 GMT

     [ https://issues.apache.org/jira/browse/CXF-5772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp updated CXF-5772:
-----------------------------
    Description: 
I'm trying to expose the original WSDL in a service generated by Maven cxf-codegen-plugin.

Even when I follow the documentation examples, I'm getting an org.apache.cxf.tools.common.toolspec.parser.BadUsageException:
Duplicated option: wsdlLocation

My CXF version is 2.7.11 and this is a copy of my Maven configuration:
{code:xml}
<plugin>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-codegen-plugin</artifactId>
    <version>2.7.11</version>
    <executions>
        <execution>
            <id>generate-sources</id>
            <phase>generate-sources</phase>
            <configuration>
            <wsdlRoot>${basedir}/src/main/wsdl</wsdlRoot>
            <includes>
                <include>*.wsdl</include>
            </includes>
            <excludes>
                <exclude>*MySpecialService.wsdl</exclude>
            </excludes>
            <wsdlOptions>
                <wsdlOption>
                    <wsdl>src/main/wsdl/MySpecialService.wsdl</wsdl>
                    <wsdlLocation>classpath:/wsdl/MySpecialService.wsdl</wsdlLocation>
                </wsdlOption>
            </wsdlOptions>
            </configuration>
            <goals>
                <goal>wsdl2java</goal>
            </goals>
        </execution>
    </executions>
</plugin>
{code}
I've tried by removing includes/excludes options (necessaries because there is just one WSDL
that I need to expose the original WSDL) with same exception result. Also, by putting wsdlLocation
as an extraarg. Always the "duplicated wsdlLocation" error.

  was:
I'm trying to expose the original WSDL in a service generated by Maven cxf-codegen-plugin.

Even when I follow the documentation examples, I'm getting an org.apache.cxf.tools.common.toolspec.parser.BadUsageException:
Duplicated option: wsdlLocation

My CXF version is 2.7.11 and this is a copy of my Maven configuration:

<plugin>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-codegen-plugin</artifactId>
    <version>2.7.11</version>
    <executions>
        <execution>
            <id>generate-sources</id>
            <phase>generate-sources</phase>
            <configuration>
            <wsdlRoot>${basedir}/src/main/wsdl</wsdlRoot>
            <includes>
                <include>*.wsdl</include>
            </includes>
            <excludes>
                <exclude>*MySpecialService.wsdl</exclude>
            </excludes>
            <wsdlOptions>
                <wsdlOption>
                    <wsdl>src/main/wsdl/MySpecialService.wsdl</wsdl>
                    <wsdlLocation>classpath:/wsdl/MySpecialService.wsdl</wsdlLocation>
                </wsdlOption>
            </wsdlOptions>
            </configuration>
            <goals>
                <goal>wsdl2java</goal>
            </goals>
        </execution>
    </executions>
</plugin>

I've tried by removing includes/excludes options (necessaries because there is just one WSDL
that I need to expose the original WSDL) with same exception result. Also, by putting wsdlLocation
as an extraarg. Always the "duplicated wsdlLocation" error.


> CXF codegen plugin: Expose original wsdl through wsdlLocation generates a duplicate option
exception
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CXF-5772
>                 URL: https://issues.apache.org/jira/browse/CXF-5772
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.7.11
>            Reporter: Ariel C
>              Labels: cxf-codegen-plugin, wsdllocation
>
> I'm trying to expose the original WSDL in a service generated by Maven cxf-codegen-plugin.
> Even when I follow the documentation examples, I'm getting an org.apache.cxf.tools.common.toolspec.parser.BadUsageException:
Duplicated option: wsdlLocation
> My CXF version is 2.7.11 and this is a copy of my Maven configuration:
> {code:xml}
> <plugin>
>     <groupId>org.apache.cxf</groupId>
>     <artifactId>cxf-codegen-plugin</artifactId>
>     <version>2.7.11</version>
>     <executions>
>         <execution>
>             <id>generate-sources</id>
>             <phase>generate-sources</phase>
>             <configuration>
>             <wsdlRoot>${basedir}/src/main/wsdl</wsdlRoot>
>             <includes>
>                 <include>*.wsdl</include>
>             </includes>
>             <excludes>
>                 <exclude>*MySpecialService.wsdl</exclude>
>             </excludes>
>             <wsdlOptions>
>                 <wsdlOption>
>                     <wsdl>src/main/wsdl/MySpecialService.wsdl</wsdl>
>                     <wsdlLocation>classpath:/wsdl/MySpecialService.wsdl</wsdlLocation>
>                 </wsdlOption>
>             </wsdlOptions>
>             </configuration>
>             <goals>
>                 <goal>wsdl2java</goal>
>             </goals>
>         </execution>
>     </executions>
> </plugin>
> {code}
> I've tried by removing includes/excludes options (necessaries because there is just one
WSDL that I need to expose the original WSDL) with same exception result. Also, by putting
wsdlLocation as an extraarg. Always the "duplicated wsdlLocation" error.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message