cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David J. M. Karlsen (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-4004) 2.5.1 regression: Duplicate code generation with fluent plugin
Date Mon, 02 Jan 2012 15:04:30 GMT
2.5.1 regression: Duplicate code generation with fluent plugin
--------------------------------------------------------------

                 Key: CXF-4004
                 URL: https://issues.apache.org/jira/browse/CXF-4004
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.5.1
         Environment: maven 3.0.3, cxf 2.5.1
            Reporter: David J. M. Karlsen


With CXF 2.5.1 and:

{noformat}
<plugin>
                                <groupId>org.apache.cxf</groupId>
                                <artifactId>cxf-codegen-plugin</artifactId>
                                <version>${cxf.version}</version>
                                <dependencies>
                                        <dependency>
                                                <groupId>org.apache.cxf.xjcplugins</groupId>
                                                <artifactId>cxf-xjc-ts</artifactId>
                                                <version>2.4.0</version>
                                        </dependency>
                                        <dependency>
                                                <groupId>net.java.dev.jaxb2-commons</groupId>
                                                <artifactId>jaxb-fluent-api</artifactId>
                                                <version>2.1.8</version>
                                        </dependency>
                                </dependencies>
                                <configuration>
                                        <defaultOptions>
                                                <packagenames>
                                                        <packagename>http://edb.com/ws/WSCommon_v21=com.edb.finance.common.cxf.utils.generated</packagename>
                                                        <packagename>http://ping.monapp.finance.edb.com=com.edb.finance.common.cxf.utils.generated.monapp.ping</packagename>
                                                        <packagename>http://ping.ws.monapp.finance.edb.com=com.edb.finance.common.cxf.utils.generated.monapp.ws.ping</packagename>
                                                </packagenames>
                                                <validateWsdl>true</validateWsdl>
                                                <extraargs>
                                                        <extraarg>-xjc-Xfluent-api</extraarg>
                                                </extraargs>
                                                <bindingFiles>
                                                        <bindingFile>${basedir}/src/main/resources/wsdl/jaxbbindings.xml</bindingFile>
                                                </bindingFiles>
                                        </defaultOptions>
                                </configuration>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>wsdl2java</goal>
                                                </goals>
                                        </execution>
                                </executions>
{noformat}

duplicate code is generated for the fluent methods - this did not happen with 2.5.0.

error from compiler:
{noformat}
[ERROR] /home/et2448/projects/common/finance/cxf-utils/target/generated-sources/cxf/com/edb/finance/common/cxf/utils/generated/ItemType.java:[95,20]
withKey(java.lang.String) is already defined in com.edb.finance.common.cxf.utils.generated.ItemType

{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message