Hello,

We are creating a new directory in the data-services carbon component,
which represents a new version as described by the new branching
strategy. The new component's version is selected as "2.0.3", and it's
parents pom has a reference to the carbon-core parents pom with the
given version "2.0.2".

So by this we are expecting the carbon 2.0.2 libraries to be used by
the new component. But in carbon-core, the versions are stated there
as "pom.version", which is expected to pick the version of its pom
(which is 2.0.2). But when we reference it from our component - which
has the version 2.0.3 - carbon-core parent treats its "pom.version" as
"2.0.3". So I'm suggesting to change the carbon-core parent pom to not
to use the property "pom.version", but to keep a single property
"wso2carbon.version" with the value "2.0.2" and use it in all the
places where the version is needed. Here I've attached a diff with the
changes I suggested. Hope for some feedback.

Thanks,
Anjana.
Index: pom.xml
===================================================================
--- pom.xml     (revision 48895)
+++ pom.xml     (working copy)
@@ -6,7 +6,7 @@
     <groupId>org.wso2.carbon</groupId>
     <artifactId>carbon-parent</artifactId>
     <packaging>pom</packaging>
-    <version>2.0.2</version>
+    <version>${wso2carbon.version}</version>
     <name>WSO2 Carbon - Parent Maven Module</name>
     <description>carbon-parent</description>
     <url>http://wso2.org</url>
@@ -188,13 +188,13 @@
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.i18n</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.ui.menu.general</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
@@ -424,91 +424,91 @@
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.bndmgt</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.bridge</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.http.bridge</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.ui</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.utils</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.mediation.utils</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.core</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.registry.core</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.sso.consumer</artifactId>
-                <version>${pom.version}</version>                
+                <version>${wso2carbon.version}</version>                
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.logging</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.jsp.jstl.example</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.user.core</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.user.mgt</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.user.mgt.ui</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
                 <groupId>org.wso2.carbon</groupId>
                 <artifactId>org.wso2.carbon.securevault</artifactId>
-                <version>${pom.version}</version>
+                <version>${wso2carbon.version}</version>
             </dependency>
 
             <dependency>
@@ -1027,9 +1027,9 @@
     </modules>
 
     <properties>
-        <wso2carbon.version>${pom.version}</wso2carbon.version>
+        <wso2carbon.version>2.0.2</wso2carbon.version>
         <server.name>WSO2Carbon</server.name>
-        <server.version>${pom.version}</server.version>        
+        <server.version>${wso2carbon.version}</server.version>        
         <axis2.transport.version>1.0.0.wso2v2</axis2.transport.version>
         <axiom.version>1.2.7</axiom.version>
         <tomcat.version>6.0.16</tomcat.version>
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to