Hi Cristiano,

It has not been added because nobody needs it up to now ;)

However, it's a good addition, agree.

I'm adding it in the Karaf Spring features (see KARAF-2649).

Regards
JB

On 12/23/2013 12:47 AM, Cristiano Costantini wrote:
Hi All,
I wonder why a feature for spring-security does not exists in ServiceMix or
Karaf.

I just finished playing around with it on ServiceMix 4.5.3, and I got it
working, even if fore a basic example.

In my test I used the following feature for installing spring security
dependencies
<feature name="springsec-test" version="${project.version}">
     <feature>spring-dm-web</feature>

     <bundle
start-level="50">mvn:org.springframework.security/spring-security-core/${spring-security.version}</bundle>
     <bundle
start-level="50">mvn:org.springframework.security/spring-security-config/${spring-security.version}</bundle>
     <bundle
start-level="50">mvn:org.springframework.security/spring-security-web/${spring-security.version}</bundle>


<bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}/war</bundle>

</feature>

(with ${spring-security.version} = 3.1.4.RELEASE, which is the one bound to
Spring 3.0.7.RELEASE that is the version available in Servicemix 4.5.3)


The fact that it does not exists scary me as I see it really
straightforward to have a feature like "spring-security" that would allow
to rewrite the code above as:

<feature name="springsec-test" version="${project.version}">
     <feature>spring-dm-web</feature>
     <feature>spring-security</feature>

<bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}/war</bundle>

</feature>

why nobody has yet added such feature to karaf/servicemix?


Thank you
(and merry holidays to everybody!)

Cristiano


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to