On this page, we are going to create a Maven project which will contain our SU and SA projects .
Creating the Maven project
We go to the directory, where we would like to have our project. Then we run this command:
C:\home>mvn archetype:create -DarchetypeGroupId=org.apache.servic emix.tooling -DarchetypeArtifactId=servicemix-project-root -DgroupId=org.apache. servicemix.tutorial -DartifactId=tutorial-wsdl-cxf-service
This command generates us projects root directory, which contents pom.xml - file to configure our project.
Checking the pom.xml
The easiest way to check the pom.xml, is by running Maven from the project directory:
mvn install
If the pom.xml is valid, Maven will copy it to your local repository and report a succesfull build.
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building ServiceMix :: CXF WSDL Tutorial [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing c:\home\Diplomka\_mySA\tutorial-wsdl-cxf-service\pom.xml to C: \Documents and Settings\vkrejcirik\.m2\repository\org\apache\servicemix\tutorial \parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 seconds [INFO] Finished at: Tue Jul 29 07:53:33 CEST 2008 [INFO] Final Memory: 6M/12M [INFO] ------------------------------------------------------------------------
Next, we are going to create cxf-bc service unit.