|
Page Edited :
SM :
Maven archetypes
Maven archetypes has been edited by Gert Vanthienen (Jan 21, 2008). Content:ServiceMix provides a set of Maven archetypes UsageStandard Maven syntaxYou can utilize an archetype by issueing the following command: mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-archetype-name \
-DgroupId=org.apache.servicemix.samples.embedded \
-DartifactId=servicemix-embedded-example
You need to replace servicemix-archetype-name by the name of the archetype you want to utilize. This will use the latest released version of the archetype available in the repository. Optionally, you can also specify a specific version to use with the -DarchetypeVersion=VERSION parameter.
smx-archServiceMix also ships with smx-arch (or smx-arch.bat for Windows), available in the bin directory of the distribution. It provides a more convenient way for using the archetypes: Usage: smx-arch command [su-type] [args]
commands:
sl Creates a new Shared Library"
se Creates a new Service Engine"
bc Creates a new Binding Component"
sa Creates a new Service Assembly"
su Creates a generic Service Unit"
su [type] Creates a SU of the specified type"
SU types:
http-consumer, http-provider,"
jms-consumer, jms-provider,"
ftp-poller, ftp-sender,"
jsr181-annotated, jsr181-wsdl-first,"
saxon-xquery, saxon-xslt,"
eip, lwcontainer, bean, ode"
Optional arguments:
-DgroupId=xxxx"
-DartifactId=xxxx"
List of archetypesHere is a list of the ServiceMix archetypes that are available. You can also take a look at the current list of available archetypes at http://people.apache.org/maven-snapshot-repository/org/apache/servicemix/tooling/ Basic JBI artifact archetypesThere is a specific archetype available for generating every type of JBI artifact. They are named servicemix-binding-component, servicemix-service-assembly, servicemix-service-engine, servicemix-service-unit and servicemix-shared-library. Service unitsMost of the ServiceMix archetypes can be used to create service unit projects. The list above already mentions servicemix-service-unit, which creates a generic SU project. You still have to add a <dependency/> to the pom.xml yourself for the JBI component you want to target. These other archetypes already generate a SU targeted at a specific component. They also provide an xbean.xml file and sometimes some additional sample files.
|
Unsubscribe or edit your notifications preferences
