Hi Glenn,
The way to use the archetype to build your OSGi compliant Maven project is
either using Eclipse with an m2-eclipse plugin or at the command line in the
following way
cmd> mvn archetype:create
-DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-osgi-camel-archetype
-DarchetypeVersion=4.0.0.2-fuse -DgroupId=com.yourcompany
-DartifactId=camel-router
-DremoteRepositories=http://repo.fusesource.com/maven2/
This should create your osgi-bundle-aware skeletal project and also add a
default camel route which you can modify as needed and deploy into
Servicemix 4.
Cheers,
Ashwin...
Glenn Macgregor-3 wrote:
>
> Ashwin,
>
> Thanks for the info, but I am a maven newbie...I assume I have to add that
> repo somewhere so maven can download the archetype, what and where do I
> add to make that happen?
>
> Thanks
>
> Glenn
>
> -----Original Message-----
> From: Ashwin Karpe [mailto:[email protected]]
> Sent: 29 March 2009 14:43
> To: [email protected]
> Subject: Re: Maven archetypes for SMX4
>
>
> Hi Greg,
>
> I little while back I submitted 3 OSGi archetypes for Servicemix 4 related
> to creating artifacts for Camel, CXF code first and CXF WSDL first
> development.
>
> You might consider using them to build out your apllications and bundles.
>
> They are
> servicemix-osgi-camel-archetype
> servicemix-osgi-cxf-code-first-archetype
> servicemix-osgi-cxf-wsdl-first-archetype
>
> They are available at the repository
> http://people.apache.org/repo/m2-snapshot-repository under
> org/apache/servicemix/tooling/
>
> Cheers,
>
> Ashwin...
>
>
> Glenn Macgregor-3 wrote:
>>
>> Hi all,
>>
>> I have been through the fuse and apache docs for ServiceMix4, I am
>> getting
>> the idea of it and am looking forward to understanding it better.
>>
>> As of now I am looking to stick with OSGi, not using JBI at all since I
>> am
>> new and want to start with SMX4, is this a valid statement, does it make
>> sense?
>>
>> Also, I am looking to create a proof of concept that simply builds an
>> OSGi
>> bundle which contains a simple xml configuration for reading a file from
>> a
>> location, putting that file on an activemq queue and having another
>> component read the queue and write the file to a different location on
>> disk.
>>
>> After reading all the documentation, I am now trying to make that
>> happen...but stuck on the first step. How do I run maven to create the
>> right bundle template?
>>
>> Once I get this going I am sure I will have more questions through out
>> this process.
>>
>> Thanks
>>
>> Glenn
>>
>>
>
>
> -----
> ---
> Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence
> Progress Software Corporation
> 14 Oak Park Drive
> Bedford, MA 01730
> ---
> +1-972-304-9084 (Office)
> +1-972-971-1700 (Mobile)
> ----
> Blog: http://opensourceknowledge.blogspot.com/
>
>
> --
> View this message in context:
> http://www.nabble.com/Maven-archetypes-for-SMX4-tp22745883p22767754.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
>
-----
---
Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence
Progress Software Corporation
14 Oak Park Drive
Bedford, MA 01730
---
+1-972-304-9084 (Office)
+1-972-971-1700 (Mobile)
----
Blog: http://opensourceknowledge.blogspot.com/
--
View this message in context:
http://www.nabble.com/Maven-archetypes-for-SMX4-tp22745883p22787459.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.