On this page, we are going to configure the my-cxf-se-su to provide our service .
Configuring pom.xml
Changing the project name
In order to make the build output a little bit more comprehensible, we first change the project name in the generated pom.xml file.
<project> ... <name>CXF WSDL Tutorial :: CXF SE SU</name> ... </project>
Adding org.apache.cxf plugin
We add this plugin to the generated pom.xml file to element plugins.
<plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxf-version}</version> <executions> <execution> <phase>generate-sources</phase> <configuration> <sourceRoot>${basedir}/target/jaxws</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/resources/hello.wsdl</wsdl> <extraargs> <extraarg>-verbose</extraarg> </extraargs> </wsdlOption> </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> </plugin>
Where hello.wsdl is WSDL file, which we make later.
Next, we are going to create our second SU in this project.
Things to remember
- You specify the plugin for a SU in Maven's pom.xml file
- In ServiceMix, most service units will be configured by a file named xbean.xml