On Thu, Sep 3, 2009 at 4:34 PM, Thilina Mahesh Buddhika
<[email protected]>wrote:

> Yes. I encountered places where dependencies are added to Rampart.
> +1 for changing those dependencies to
> use org.wso2.carbon.security.mgt.rampart and
> org.wso2.carbon.security.mgt.rahas and org.wso2.carbon.security.policy.
>

+1.

On a side note. Theoretically, a Carbon Component which can be in Carbon or
Carbon-component projects, cannot have dependencies to regular jar
files(excluding test scope dependencies). For an example consider the
following dependency on a carbon-component( say foo)

<dependency>
    <groupId>org.apache.rampart</groupId
    <artifactId>rampart-policy</artifactId>
    <version>1.4-wso2v2</version>
</dependency>

The above dependency is only available at compile time. At run time, these
rampart classes should come from a
bundle(org.wso2.carbon.security.mgt.policy). If we do not manage versions
correctly, these minor things can cause some hard to find issues.

 Ideally foo component should declare a dependency on
org.wso2.carbon.security.mgt.policy bundle rather than rampart-policy. Then
we only need to change the rampart version in the security.policy bundles.

Thanks
Sameera


Thanks.
> / thilina
> On Thu, Sep 3, 2009 at 3:48 PM, Sameera Jayasoma <[email protected]> wrote:
>
>> Seems like some Carbon components have declared direct dependencies to
>> rampart. This is wrong. Carbon components should depend only on
>> org.wso2.carbon.security.mgt.rampart bundle if they have a dependency of
>> org.apache.rampart packages. Otherwise, we have to changes so many places,
>> if a version is changed required.
>>
>> Thanks
>> Sameera
>>
>>
>> On Thu, Sep 3, 2009 at 1:34 PM, <[email protected]> wrote:
>>
>>> Author: thilinab
>>> Date: Thu Sep  3 01:04:02 2009
>>> New Revision: 44822
>>> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=44822
>>>
>>> Log:
>>> Changing the rampart version 1.4-wso2v2--> 1.4-wso2v3
>>>
>>> Modified:
>>>
>>> branches/carbon-platform/2.0.1/carbon-components/wsdl2code/org.wso2.carbon.modules.wsdl2code/src/main/java/org/wso2/carbon/wsdl2code/codegen-pom.xsl
>>>
>>> Modified:
>>> branches/carbon-platform/2.0.1/carbon-components/wsdl2code/org.wso2.carbon.modules.wsdl2code/src/main/java/org/wso2/carbon/wsdl2code/codegen-pom.xsl
>>> URL:
>>> http://wso2.org/svn/browse/wso2/branches/carbon-platform/2.0.1/carbon-components/wsdl2code/org.wso2.carbon.modules.wsdl2code/src/main/java/org/wso2/carbon/wsdl2code/codegen-pom.xsl?rev=44822&r1=44821&r2=44822&view=diff
>>>
>>> ==============================================================================
>>> ---
>>> branches/carbon-platform/2.0.1/carbon-components/wsdl2code/org.wso2.carbon.modules.wsdl2code/src/main/java/org/wso2/carbon/wsdl2code/codegen-pom.xsl
>>>        (original)
>>> +++
>>> branches/carbon-platform/2.0.1/carbon-components/wsdl2code/org.wso2.carbon.modules.wsdl2code/src/main/java/org/wso2/carbon/wsdl2code/codegen-pom.xsl
>>>        Thu Sep  3 01:04:02 2009
>>> @@ -317,7 +317,7 @@
>>>             <dependency>
>>>                 <groupId>org.apache.rampart</groupId>
>>>                 <artifactId>rampart-policy</artifactId>
>>> -                <version>1.4-wso2v2</version>
>>> +                <version>1.4-wso2v3</version>
>>>                 <exclusions>
>>>                     <exclusion>
>>>                         <groupId>org.apache.axis2</groupId>
>>> @@ -356,7 +356,7 @@
>>>             <dependency>
>>>                 <groupId>org.apache.rampart</groupId>
>>>                 <artifactId>rampart-trust</artifactId>
>>> -                <version>1.4-wso2v2</version>
>>> +                <version>1.4-wso2v3</version>
>>>                 <exclusions>
>>>                     <exclusion>
>>>                         <groupId>org.apache.axis2</groupId>
>>> @@ -395,7 +395,7 @@
>>>             <dependency>
>>>                 <groupId>org.apache.rampart</groupId>
>>>                 <artifactId>rampart-core</artifactId>
>>> -                <version>1.4-wso2v2</version>
>>> +                <version>1.4-wso2v3</version>
>>>                 <exclusions>
>>>                     <exclusion>
>>>                         <groupId>org.apache.axis2</groupId>
>>>
>>> _______________________________________________
>>> Carbon-commits mailing list
>>> [email protected]
>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-commits
>>>
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> / thilina
>
> Thilina Mahesh Buddhika
> WSO2 Inc. ; http://wso2.com
> [email protected]
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to