Author: nandana
Date: Thu Jan 10 06:39:48 2008
New Revision: 610804

URL: http://svn.apache.org/viewvc?rev=610804&view=rev
Log:
test module to add headers

Added:
    webservices/rampart/scratch/java/test-module/READ_ME.txt
    webservices/rampart/scratch/java/test-module/modules/
    webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/
    webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/pom.xml  
 (with props)
    webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/
    webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/Chamanthi.java
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/ChamanthiConstants.java
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/Receiver.java
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/Sender.java
    webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/
    
webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/module.xml
    webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/pom.xml  
 (with props)
    webservices/rampart/scratch/java/test-module/pom.xml

Added: webservices/rampart/scratch/java/test-module/READ_ME.txt
URL: 
http://svn.apache.org/viewvc/webservices/rampart/scratch/java/test-module/READ_ME.txt?rev=610804&view=auto
==============================================================================
--- webservices/rampart/scratch/java/test-module/READ_ME.txt (added)
+++ webservices/rampart/scratch/java/test-module/READ_ME.txt Thu Jan 10 
06:39:48 2008
@@ -0,0 +1,11 @@
+Chamanthi module
+
+This module will add some custom headers  to the soap envelope which can be 
used
+to test the signing and encrypting headers with Apache Rampart.
+
+Sender :
+Will add three custom headers to the outgoing soap message with 
"http://chamanthi.org";
+namespace.
+
+Render :
+Will log the incoming soap headers with the namespace "http://chamanthi.org";.
\ No newline at end of file

Added: 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/pom.xml
URL: 
http://svn.apache.org/viewvc/webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/pom.xml?rev=610804&view=auto
==============================================================================
--- webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/pom.xml 
(added)
+++ webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/pom.xml 
Thu Jan 10 06:39:48 2008
@@ -0,0 +1,37 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+
+    <parent>
+        <groupId>org.apache.rampart</groupId>
+        <artifactId>chamanthi-module</artifactId>
+        <version>SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>chamanthi-jar</artifactId>
+    <packaging>jar</packaging>
+    <version>SNAPSHOT</version>
+    <name>Apache Chamanthi JAR</name>
+
+    <build>
+        <sourceDirectory>src/main/java</sourceDirectory>
+        <testSourceDirectory>src/main/java</testSourceDirectory>
+        <resources>
+            <resource>
+                <directory>src/main/java</directory>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.4</source>
+                    <target>1.4</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    
+</project>

Propchange: 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/Chamanthi.java
URL: 
http://svn.apache.org/viewvc/webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/Chamanthi.java?rev=610804&view=auto
==============================================================================
--- 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/Chamanthi.java
 (added)
+++ 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/Chamanthi.java
 Thu Jan 10 06:39:48 2008
@@ -0,0 +1,32 @@
+package org.apache.rampart.chamanthi;
+    
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.description.AxisDescription;
+import org.apache.axis2.description.AxisModule;
+import org.apache.axis2.modules.Module;
+import org.apache.neethi.Assertion;
+import org.apache.neethi.Policy;
+
+public class Chamanthi implements Module  {
+
+    public void init(ConfigurationContext configContext, AxisModule module)
+            throws AxisFault {
+    }
+
+    public void engageNotify(AxisDescription axisDescription) throws AxisFault 
{
+        // at the moment, nothing needs to be done ..
+    }
+
+    public void shutdown(ConfigurationContext configurationContext) throws 
AxisFault {
+        // at the moment, nothing needs to be done ..
+    }
+    
+    public void applyPolicy(Policy policy, AxisDescription axisDescription) 
throws AxisFault {
+        //Do not do anything
+    }
+    
+    public boolean canSupportAssertion(Assertion assertion) {
+        return true;
+    }
+}

Added: 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/ChamanthiConstants.java
URL: 
http://svn.apache.org/viewvc/webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/ChamanthiConstants.java?rev=610804&view=auto
==============================================================================
--- 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/ChamanthiConstants.java
 (added)
+++ 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/ChamanthiConstants.java
 Thu Jan 10 06:39:48 2008
@@ -0,0 +1,12 @@
+package org.apache.rampart.chamanthi;
+
+import javax.xml.namespace.QName;
+
+public class ChamanthiConstants {
+    
+    public final static String CHAMANTHI_MODULE_NAME = "chamanthi";
+    public final static String CHAMANTHI_NS = "http://chamanthi.org";;
+    public final static String CHAMANTHI_NS_PREFIX = "chmrk";
+    
+
+}

Added: 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/Receiver.java
URL: 
http://svn.apache.org/viewvc/webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/Receiver.java?rev=610804&view=auto
==============================================================================
--- 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/Receiver.java
 (added)
+++ 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/Receiver.java
 Thu Jan 10 06:39:48 2008
@@ -0,0 +1,95 @@
+package org.apache.rampart.chamanthi.handler;
+
+import java.util.Iterator;
+
+import org.apache.axiom.soap.SOAPEnvelope;
+import org.apache.axiom.soap.SOAPHeader;
+import org.apache.axiom.soap.SOAPHeaderBlock;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.description.HandlerDescription;
+import org.apache.axis2.description.Parameter;
+import org.apache.axis2.engine.Handler;
+import org.apache.axis2.engine.Handler.InvocationResponse;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.rampart.chamanthi.ChamanthiConstants;
+
+
+/**
+ * Chamanthi inflow handler.
+ * This logs the custom SOAP headers added by Chamanthi sender
+ */
+public class Receiver implements Handler{
+    
+    private static Log log = LogFactory.getLog(Receiver.class);
+    
+    private static HandlerDescription EMPTY_HANDLER_METADATA =
+        new HandlerDescription("default Handler");
+
+    private HandlerDescription handlerDesc;
+    
+    public Receiver() {
+        this.handlerDesc = EMPTY_HANDLER_METADATA;
+    }
+    
+    public void cleanup() {        
+    }
+
+    public void init(HandlerDescription handlerdesc) {
+        this.handlerDesc = handlerdesc;
+    }
+
+    public InvocationResponse invoke(MessageContext msgContext) throws 
AxisFault {
+        
+        if (!msgContext.isEngaged(ChamanthiConstants.CHAMANTHI_MODULE_NAME)) {
+          return InvocationResponse.CONTINUE;        
+        }        
+
+        try {
+            SOAPEnvelope soapEnvelope = msgContext.getEnvelope();         
+            SOAPHeader soapHeader = soapEnvelope.getHeader();
+            
+            if (soapHeader == null) {
+
+            }
+            
+            Iterator headers = soapHeader.getChildElements();
+
+            while (headers.hasNext()) { 
+                SOAPHeaderBlock headerBlock = (SOAPHeaderBlock) headers.next();
+                if 
(headerBlock.getNamespace().getNamespaceURI().equals(ChamanthiConstants.CHAMANTHI_NS))
 {
+                    log.info("Header :" + headerBlock.toString());
+                    System.out.println("Header :" + headerBlock.toString());
+                    
+                    if (headerBlock.getMustUnderstand()) {
+                        headerBlock.setProcessed();
+                    }
+                }
+            }
+             
+            
+        } catch (Exception e) {
+            throw new AxisFault(e.getMessage(), e);
+        } 
+        
+        return InvocationResponse.CONTINUE;        
+    }
+
+    public void flowComplete(MessageContext msgContext)
+    {
+    }
+    
+    public HandlerDescription getHandlerDesc() {
+        return this.handlerDesc;
+    }
+
+    public String getName() {
+        return "Apache Chamanthi inflow handler";
+    }
+
+    public Parameter getParameter(String name) {
+        return this.handlerDesc.getParameter(name);
+    }
+
+}

Added: 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/Sender.java
URL: 
http://svn.apache.org/viewvc/webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/Sender.java?rev=610804&view=auto
==============================================================================
--- 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/Sender.java
 (added)
+++ 
webservices/rampart/scratch/java/test-module/modules/chamanthi-jar/src/main/java/org/apache/rampart/chamanthi/handler/Sender.java
 Thu Jan 10 06:39:48 2008
@@ -0,0 +1,120 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.rampart.chamanthi.handler;
+
+import org.apache.axiom.om.OMNamespace;
+import org.apache.axiom.soap.SOAPEnvelope;
+import org.apache.axiom.soap.SOAPFactory;
+import org.apache.axiom.soap.SOAPHeader;
+import org.apache.axiom.soap.SOAPHeaderBlock;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.description.HandlerDescription;
+import org.apache.axis2.description.Parameter;
+import org.apache.axis2.engine.Handler;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.rampart.chamanthi.ChamanthiConstants;
+
+/**
+ * Chamanthi outflow handler.
+ * This adds the set of headers to SOAP header of SOAP envelope
+ */
+public class Sender implements Handler {
+        
+    private static Log mlog = LogFactory.getLog(Sender.class);
+        
+    private static HandlerDescription EMPTY_HANDLER_METADATA =
+        new HandlerDescription("default Handler");
+
+    private HandlerDescription handlerDesc;
+    
+    public Sender() {
+        this.handlerDesc = EMPTY_HANDLER_METADATA;
+    }
+    
+    public void cleanup() {        
+    }
+
+    public void init(HandlerDescription handlerdesc) {
+        this.handlerDesc = handlerdesc;
+    }
+
+    public InvocationResponse invoke(MessageContext msgContext) throws 
AxisFault {
+        
+        if (!msgContext.isEngaged(ChamanthiConstants.CHAMANTHI_MODULE_NAME)) {
+          return InvocationResponse.CONTINUE;        
+        } 
+        
+        SOAPFactory soapFactory;
+        SOAPEnvelope soapEnvelope;
+        SOAPHeader soapHeader;
+
+        try {
+            soapEnvelope = msgContext.getEnvelope();
+            soapFactory = (SOAPFactory) soapEnvelope.getOMFactory();
+            
+            soapHeader = soapEnvelope.getHeader();
+            
+            if (soapHeader == null) {
+                soapHeader = soapFactory.createSOAPHeader();
+                soapEnvelope.setFirstChild(soapHeader);
+            }
+            
+            OMNamespace chmrkNS = 
soapFactory.createOMNamespace(ChamanthiConstants.CHAMANTHI_NS,
+                                                                        
ChamanthiConstants.CHAMANTHI_NS_PREFIX);
+            SOAPHeaderBlock header01 = 
soapFactory.createSOAPHeaderBlock("Chamanthi01",chmrkNS);
+            header01.addAttribute("name01", "value01", chmrkNS); 
+            header01.addAttribute("name02", "value02", chmrkNS);
+            
+            SOAPHeaderBlock header02 = 
soapFactory.createSOAPHeaderBlock("Chamanthi02",chmrkNS);
+            header02.addAttribute("name01", "value01", 
soapEnvelope.getNamespace()); 
+            header02.addAttribute("name02", "value02", 
soapEnvelope.getNamespace());
+            
+            SOAPHeaderBlock header03 = 
soapFactory.createSOAPHeaderBlock("Chamanthi03",chmrkNS);
+            header03.addAttribute("name01", "value01", 
soapEnvelope.getNamespace()); 
+            header03.addAttribute("name02", "value02", chmrkNS);
+            header03.setMustUnderstand(true);
+            
+            soapHeader.addChild(header01);
+            soapHeader.addChild(header02);
+            soapHeader.addChild(header03);
+
+        } catch (Exception e) {
+            throw new AxisFault(e.getMessage(), e);
+        } 
+        
+        return InvocationResponse.CONTINUE;        
+    }
+
+    public void flowComplete(MessageContext msgContext)
+    {
+    }
+    
+    public HandlerDescription getHandlerDesc() {
+        return this.handlerDesc;
+    }
+
+    public String getName() {
+        return "Apache Chamanthi outflow handler";
+    }
+
+    public Parameter getParameter(String name) {
+        return this.handlerDesc.getParameter(name);
+    }
+
+}

Added: 
webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/module.xml
URL: 
http://svn.apache.org/viewvc/webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/module.xml?rev=610804&view=auto
==============================================================================
--- 
webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/module.xml 
(added)
+++ 
webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/module.xml 
Thu Jan 10 06:39:48 2008
@@ -0,0 +1,18 @@
+<module name="chamanthi" class="org.apache.rampart.chamanthi.Chamanthi">
+
+    <Description>This modules addes a set of headers to SOAP message for 
testing purposes
+       </Description>
+           
+    <InFlow>
+        <handler name="PolicyBasedSecurityInHandler" 
class="org.apache.rampart.chamanthi.handler.Receiver">
+            <order phase="OperationInPhase"/>
+        </handler>
+    </InFlow>
+
+    <OutFlow>
+        <handler name="SecurityOutHandler" 
class="org.apache.rampart.chamanthi.handler.Sender">
+            <order phase="OperationOutPhase"/>
+        </handler>
+    </OutFlow>
+    
+</module>

Added: 
webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/pom.xml
URL: 
http://svn.apache.org/viewvc/webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/pom.xml?rev=610804&view=auto
==============================================================================
--- webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/pom.xml 
(added)
+++ webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/pom.xml 
Thu Jan 10 06:39:48 2008
@@ -0,0 +1,89 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+    <parent>
+        <groupId>org.apache.rampart</groupId>
+        <artifactId>chamanthi-module</artifactId>
+        <version>SNAPSHOT</version>
+    </parent>
+    
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.rampart</groupId>
+    <artifactId>chamanthi</artifactId>
+    <packaging>mar</packaging>
+    <version>SNAPSHOT</version>
+    <name>Apache Chamanthi MAR</name>
+
+    <build>
+        <sourceDirectory>src/main/java</sourceDirectory>
+        <testSourceDirectory>src/main/java</testSourceDirectory>
+        <resources>
+            <resource>
+                <directory>src/main/java</directory>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.4</source>
+                    <target>1.4</target>
+                </configuration>
+            </plugin>
+           <plugin>
+               <groupId>org.apache.axis2</groupId>
+               <artifactId>axis2-mar-maven-plugin</artifactId>
+               <version>1.2</version>
+               <extensions>true</extensions>
+               <configuration>
+                               <includeDependencies>false</includeDependencies>
+                       <moduleXmlFile>module.xml</moduleXmlFile>
+               </configuration>
+            </plugin> 
+           </plugins>
+    </build>
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>apache-m2</id>
+            <name>Apache M2 Repository</name>
+            
<url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>false</enabled>
+                <updatePolicy>daily</updatePolicy>
+                <checksumPolicy>ignore</checksumPolicy>
+            </snapshots>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+        </pluginRepository>
+        <pluginRepository>
+            <id>apache-snapshots</id>
+            <name>Apache Snapshots Repository</name>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>true</enabled>
+                <updatePolicy>daily</updatePolicy>
+                <checksumPolicy>ignore</checksumPolicy>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </pluginRepository>
+    </pluginRepositories>
+       <distributionManagement>
+        <repository>
+            <id>apache-repo</id>
+            <name>Maven Central Repository</name>
+            
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
+        </repository>
+        <snapshotRepository>
+            <id>apache-snapshots</id>
+            <name>Apache Development Repository</name>
+            
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url>
+        </snapshotRepository>
+    </distributionManagement>
+</project>

Propchange: 
webservices/rampart/scratch/java/test-module/modules/chamanthi-mar/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/rampart/scratch/java/test-module/pom.xml
URL: 
http://svn.apache.org/viewvc/webservices/rampart/scratch/java/test-module/pom.xml?rev=610804&view=auto
==============================================================================
--- webservices/rampart/scratch/java/test-module/pom.xml (added)
+++ webservices/rampart/scratch/java/test-module/pom.xml Thu Jan 10 06:39:48 
2008
@@ -0,0 +1,208 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.rampart</groupId>
+    <artifactId>chamanthi-module</artifactId>
+    <packaging>pom</packaging>
+    <description>Module which adds set of headers for to SOAP message for 
testing purposes</description>
+    <version>SNAPSHOT</version>
+    <name>Chamanthi Module</name>
+    <url>http://ws.apache.org/rampart/</url>
+
+    <licenses>
+        <license>
+            <name>Apache License Version 2.0</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+        </license>
+    </licenses>
+
+    <organization>
+        <name>Apache Software Foundation</name>
+        <url>http://www.apache.org</url>
+    </organization>
+
+    <issueManagement>
+        <system>JIRA</system>
+        <url>http://issues.apache.org/jira/browse/RAMPART</url>
+    </issueManagement>
+    <mailingLists>
+        <mailingList>
+            <name>Rampart Developers</name>
+            <subscribe>[EMAIL PROTECTED]</subscribe>
+            <unsubscribe>[EMAIL PROTECTED]</unsubscribe>
+            <post>[email protected]</post>
+            
<archive>http://mail-archives.apache.org/mod_mbox/rampart-dev/</archive>
+        </mailingList>
+    </mailingLists>
+
+    <inceptionYear>2008</inceptionYear>
+
+    <developers>
+        <developer>
+            <name>Nandana Mihindukulasooriya</name>
+            <id>nandana</id>
+            <email>nandana AT apache.org</email>
+            <organization>WSO2</organization>
+        </developer>
+    </developers>
+
+
+    <repositories>
+        <repository>
+            <releases>
+                <enabled>false</enabled>
+                <updatePolicy>always</updatePolicy>
+                <checksumPolicy>warn</checksumPolicy>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+                <updatePolicy>never</updatePolicy>
+                <checksumPolicy>fail</checksumPolicy>
+            </snapshots>
+            <id>apache-snapshots</id>
+            <name>Apache Maven2 SNAPSHOTS</name>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <layout>default</layout>
+        </repository>
+        <repository>
+            <releases>
+                <enabled>true</enabled>
+                <updatePolicy>always</updatePolicy>
+                <checksumPolicy>warn</checksumPolicy>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+                <updatePolicy>never</updatePolicy>
+                <checksumPolicy>warn</checksumPolicy>
+            </snapshots>
+            <id>apache-ws-snapshots2</id>
+            <name>Apache ws.zones - 2</name>
+            <url>http://ws.zones.apache.org/repository2</url>
+        </repository>
+    </repositories>
+
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>snapshot-apache</id>
+            <name>Apache Snapshot repository</name>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </pluginRepository>
+
+        <pluginRepository>
+            <id>snapshot</id>
+            <name>Snapshot repository</name>
+            <url>http://snapshots.maven.codehaus.org/maven2</url>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </pluginRepository>
+
+    </pluginRepositories>
+
+    <build>
+        <plugins>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>2.0</version>
+                <configuration>
+                    <source>1.4</source>
+                    <target>1.4</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-kernel</artifactId>
+            <version>${axis2.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-codegen</artifactId>
+            <version>${axis2.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-xmlbeans</artifactId>
+            <version>${axis2.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-adb-codegen</artifactId>
+            <version>${axis2.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ws.commons.axiom</groupId>
+            <artifactId>axiom-impl</artifactId>
+            <version>${axiom.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ws.commons.axiom</groupId>
+            <artifactId>axiom-api</artifactId>
+            <version>${axiom.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ws.commons.axiom</groupId>
+            <artifactId>axiom-dom</artifactId>
+            <version>${axiom.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+            <version>${commons.logging.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.neethi</groupId>
+            <artifactId>neethi</artifactId>
+            <version>${neethi.version}</version>
+        </dependency>
+    </dependencies>
+
+
+    <modules>
+        <module>modules/chamanthi-jar</module>
+        <module>modules/chamanthi-mar</module>
+    </modules>
+
+    <properties>
+               <axis2.version>SNAPSHOT</axis2.version>
+        <axiom.version>SNAPSHOT</axiom.version>
+        <neethi.version>SNAPSHOT</neethi.version>
+        <commons.logging.version>1.1</commons.logging.version>
+    </properties>
+    
+    <distributionManagement>
+        <repository>
+            <id>apache-repo</id>
+            <name>Maven Central Repository</name>
+            <url>
+                
scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
+        </repository>
+        <snapshotRepository>
+            <id>apache-snapshots</id>
+            <name>Apache Development Repository</name>
+            
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url>
+        </snapshotRepository>
+        <site>
+            <id>website</id>
+            <url>scpexe://people.apache.org/www/ws.apache.org/rampart</url>
+        </site>
+    </distributionManagement>
+</project>


Reply via email to