Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Creating the CXF-BC Service Unit

...

On this page , we are going to INLINE

Excerpt create the cxf-bc service unit.

...

Using a Maven archetype to create the service unit project

ServiceMix provides several Maven archetypes to help you create your projects more rapidly and reliably. We start off by using the servicemix-cxf-bc-service-unit archetype, which is used for creating a servicemix-cxf-bc 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.

...

Maven executes the archetype and reports BUILD SUCCESSFUL when it's done.

...

What is being generated?

First of all, the archetype creates the project directory my-cxf-bc-su, containing:

  • 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.

...

Now, we will have to configure this service unit to provide the services we want.

...

Proceed to the next step



...