There was a mistake in my pom.xml <packaging>jar</packaging> instead of
<packaging>bundle</packaging>

Otherwise, I have been able to generate a jar file containing my spring
config files. The content of the MANIFEST file is the same as the one
generated when the spring.xml file is copied in the directory deploy



Adrian Trenaman-2 wrote:
> 
> Hi Charles,
> 
> Take a look at the smarts in the org.springframework.osgi/spring-osgi- 
> bundle-archetype/1.1.2 archetype: you should be able to work it out  
> from there.
> 
> Alternatively, you could just create a bundle in the normal way, and  
> then drop your spring configuration into the deploy directory of SMX4.
> 
> /Ade
> 
> On 12 Mar 2009, at 08:54, cmoulliard wrote:
> 
>>
>> Hi,
>>
>> I try to create using the maven-bundle-plugin (using bnd tool  
>> behind) a
>> bundle containing only spring.xml file in its META-INF/spring  
>> directory. So,
>> We don't have java classes in the maven project.
>>
>> When I run the command org.apache.felix:maven-bundle-plugin:bundle,  
>> the jar
>> file is created and contain the content of META-INF directory but the
>> MANIFEST file is not generated.
>>
>> Any idea how to tell the plugin to create the OSGI Manifest file ?
>>
>> Regards,
>>
>>
>>
>> -----
>> Charles Moulliard
>> SOA Architect
>>
>> My Blog :  http://cmoulliard.blogspot.com/
>> http://cmoulliard.blogspot.com/
>> -- 
>> View this message in context:
>> http://www.nabble.com/Create-OSGI-bundle-without-java-classes-but-only-spring.xml-file---tp22471446p22471446.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
> 
> ---
> Adrian Trenaman, Consultant Fellow, PS - Opensource Center of Competence
> Progress Software Corp
> Shelbourne Road, Dublin 4, Ireland
> ---
> +353-1-637-2659 (Office)
> +353-1-637-2882 (Fax)
> +353-86-6051026 (Mobile)
>   adrian.trenaman (Skype)
> ----
> Blog: http://trenaman.blogspot.com
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Create-OSGI-bundle-without-java-classes-but-only-spring.xml-file---tp22472264p22473024.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to