Maven管理ServiceMix工程
1. 添加fusersource respository至settings.xml文件
??? <settings>
???????? ...
???????? <profiles>
???????????? <profile>
??? ???????????? <id>my-profile</id>
??? ???????????? <activation>
??? ??? ??????????? <activeByDefault>true</activeByDefault>
??? ???????????? </activation>
??? ???????????? <repositories>
??? ??? ????????????? <repository>
??? ??? ??? ????????????? <id>fusesource</id>
??? ??? ??? ????????????? <url>http://repo.fusesource.com/maven2</url>
??? ??? ??? ????????????? <snapshots>
??? ??? ??? ??? ????????????? <enabled>false</enabled>
??? ??? ??? ????????????? </snapshots>
??? ??? ??? ????????????? <releases>
??? ??? ??? ??? ????????????? <enabled>true</enabled>
??? ??? ??? ????????????? </releases>
??? ??? ?????????????? </repository>
??? ??? ?????????????? <repository>
??? ??? ??? ???????????????? <id>fusesource.snapshot</id>
??? ??? ??? ???????????????? <url>http://repo.fusesource.com/maven2-snapshot</url>
??? ??? ??? ???????????????? <snapshots>
??? ??? ??? ??? ???????????????? <enabled>true</enabled>
??? ??? ??? ???????????????? </snapshots>
??? ??? ??? ???????????????? <releases>
??? ??? ??? ??? ???????????????? <enabled>false</enabled>
??? ??? ??? ???????????????? </releases>
??? ??? ??????????????? </repository>
??? ??? ??????????????? <repository>
??? ??? ??? ???????????????? <id>apache-public</id>
??? ??? ??? ???????????????? <url>https://repository.apache.org/content/groups/public/</url>
??? ??? ??? ???????????????? <snapshots>
??? ??? ??? ??? ?????????????????? <enabled>true</enabled>
??? ??? ??? ???????????????? </snapshots>
??? ??? ??? ???????????????? <releases>
??? ??? ??? ??? ?????????????????? <enabled>true</enabled>
??? ??? ??? ???????????????? </releases>
??? ??? ??????????????? </repository>
??? ?????????? </repositories>
?? ? ??? </profile>
???????? ...
??? </settings>
2. Code-first archetype
??? mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling???
??? -DarchetypeArtifactId=servicemix-cxf-code-first-osgi-bundle
??? -DarchetypeVersion=2011.02.1-fuse-02-20
??? -DgroupId=org.fuse.example
??? -DartifactId=CodeFirst
??? -Dversion=1.0.0
??? 备注:上述命令必须必须放在一行,此处分开只是为了方便阅读。生成的工程将附件:CodeFirst.rar.
3. WSDL-first archetype
??? mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
??? -DarchetypeArtifactId=servicemix-cxf-wsdl-first-osgi-bundle
??? -DarchetypeVersion=2011.02.1-fuse-02-20
??? -DgroupId=org.fuse.example
??? -DartifactId=WSDLFirst
??? -Dversion=1.0.0
??? 备注:上述命令必须必须放在一行,此处分开只是为了方便阅读。生成的工程将附件:WSDLFirst.rar.
4. Fuse Mediation Router archetype
??? mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
??? -DarchetypeArtifactId=servicemix-camel-osgi-bundle
??? -DarchetypeVersion=2011.02.1-fuse-02-20
??? -DgroupId=org.fuse.example
??? -DartifactId=FMRExample
??? -Dversion=1.0.0
??? 备注:上述命令必须必须放在一行,此处分开只是为了方便阅读。生成的工程将附件:FMRExample.rar.
5. Fuse Archetype
??? http://repo.fusesource.com/nexus/content/groups/public/org/apache/servicemix/archetypes/