Creating the CXF-BC Service Unit
Wiki Markup |
---|
{scrollbar} |
On this page , we are going to
Excerpt |
---|
create the cxf-bc service unit. |
Using a Maven archetype to create the service unit project
...
From our tutorial project directory , where we already have the parent root pom.xml, we run this the following command to create a service unit project.
No Format |
---|
c:\home\Diplomka\_mySA\tutorial-wsdl-cxf-service>mvnmvn archetype:create -Darchetyp eGroupIdDarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=servicemix-cxf-bc-s erviceservice-unit -DgroupId=org.apache.servicemix.examples -DartifactId=my-cxf-bc-su |
Maven executes the archetype and reports BUILD SUCCESSFUL when it's done.
No Format |
---|
[INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] ------------------------------------------------------------------------ ... [INFO] OldArchetype created in dir: c:\home\Diplomka\_mySA\tutorial-wsdl-cxf-ser vice\my-cxf-bc-su [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7 seconds [INFO] Finished at: Tue Aug 05 07:56:59 CEST 2008 [INFO] Final Memory: 8M/14M [INFO] ------------------------------------------------------------------------ |
...
- a pom.xml file for building the service unit project
- a directory src/main/resources , where is with a xbean.xml file for configuring the service unit
- a directory src/main/resources , where is with a service.wsdl for description our servicewebservice.
Because we started Maven's archetype:create from the directory containing our parent pom.xml , Maven has also
added a module to the parent's pom.xml <modules> section.
No Format |
---|
<module>my-cxf-bc-su</module> |
Now, we will have to configure this service unit to provide the services we want.
Proceed to the next step
Wiki Markup |
---|
{scrollbar} |