...
On this page, we are going to
Excerpt |
---|
create our first SU module in our project |
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 cxf-se archetype, which is used for creating a servicemix-cxf-se service unit project.
...
No Format |
---|
c:\java\apache-servicemix-3.2.1\bin>smx-arch su cxf-se [INFO] Scanning for projects... ... [INFO] OldArchetype created in dir: c:\java\apache-servicemix-3.2.1\bin\my-cxf-s e-su [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jul 30 08:52:24 CEST 2008 [INFO] Final Memory: 8M/14M [INFO] ------------------------------------------------------------------------ |
Add this SU project to directory of our project
We copy directory my-cxf-se-su to directory of our project.(where is parent's pom.xml)
Then we add this to parent's pom.xml to element project.
...
No Format |
---|
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.apache.servicemix</groupId> <artifactId>myExamples</artifactId> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <name>ServiceMix :: CXF WSDL example</name> <url>http://servicemix.org</url> <modules> <module>my-cxf-se-su</module> </modules> </project> |
What is being generated?
First of all, the archetype creates the project directory my-cxf-se-su, containing:
...