You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Robert Leland (Jira)" <ji...@apache.org> on 2021/05/18 03:24:00 UTC

[jira] [Commented] (CXF-8293) While compiling many WSDLs it overwrites ObjectFactory

    [ https://issues.apache.org/jira/browse/CXF-8293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17346555#comment-17346555 ] 

Robert Leland commented on CXF-8293:
------------------------------------

This doesn't sound like a bug to me.

With any schema say Niem each service can customize the types in the schema by deleting unused types.

So the niem-core of one service is _different_ than the niem-core of another service. The safest approach is to ALWAYS create a binding file so each service classees are in a separate and different package.

> While compiling many WSDLs it overwrites ObjectFactory
> ------------------------------------------------------
>
>                 Key: CXF-8293
>                 URL: https://issues.apache.org/jira/browse/CXF-8293
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.2.8
>         Environment: Not working environment : 
>  mvn -version
> *Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)*
> Maven home: /Users/omar/Downloads/apache-maven-3.6.3
> Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.15.3", arch: "x86_64", family: "mac"
>            Reporter: Omar Atia
>            Priority: Blocker
>
> Dears ,
> While compiling WSDL using maven code-gen plugin the below pom.xml , it overwrites ObjectFactory with last wsdl and not merge all of WSDLs inside ObjectFactory , in Windows it is working fine on JDK1.8 and maven 3.6.3 but in Mac and some Unbuntu version it overwrites the ObjectFactory .
> We used on Mac the same JDK and same maven used on Working windows but that also doesn't work , it keeps overwriting the ObjectFactory with last wsdl.
> Pom.xml :
>  
>  
> {code:java}
> <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>
> <wsdlRoot>${basedir}/src/main/resources/wsdl</wsdlRoot>
> <includes>
> <include>*.wsdl</include>
> </includes>
> </configuration>
>  
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)