Hi!
I am using cxf-codegen plugin v3.2.10 and noticed that it writes
absolute file links into Service files that it generates. For example
if a wsdl file is contained within
${project.basedir}/src/main/resources/Service.wsdl, the codegen plugin
writes absolute file path starting with the drive that the project is
contained in.
How come? Is this intended behavior or misconfiguration on my part?
Currently I have the following configuration:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<dependencies>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>${jvnet.jaxb2_basics.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<configuration>
<defaultOptions>
<bindingFiles>
<bindingFile>${project.build.directory}/dependency/jaxb/jaxwsbindings.xml</bindingFile>
</bindingFiles>
<noAddressBinding>true</noAddressBinding>
<extraargs>
<extraarg>-xjc-XtoString</extraarg>
<extraarg>-xjc-XsimpleHashCode</extraarg>
<extraarg>-xjc-XsimpleEquals</extraarg>
<extraarg>-xjc-b,${project.build.directory}/dependency/jaxb/bindingsDateTimeSimpleType.xjb</extraarg>
</extraargs>
</defaultOptions>
<wsdlRoot>${basedir}/src/main/resources/wsdl/${project.parent.artifactId}/</wsdlRoot>
<includes>*.wsdl</includes>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
I know that I can use <wsdlLocation> option, but writing it for, say,
20 files, might be unwieldy. Is there an equivalent for <includes>
variant?