<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.wso2.carbon</groupId>
    <artifactId>carbon-component</artifactId>
    <packaging>pom</packaging>
    <version>1.5</version>
    <name>carbon-component</name>
    <url>http://wso2.org</url>


    <modules>
        <module>service-mgt</module>
        <module>operation-mgt</module>
        <module>logging</module>
        <module>codegen</module>
        <module>cluster-mgt</module>
        <module>throttling</module>
        <module>reliable-messaging</module>
        <module>security</module>
        <module>soap-tracer</module>
        <module>caching</module>
        <module>sequence-editor</module>
        <module>mediators</module>
        <module>endpoint</module>
        <module>localentry</module>
        <module>system-statistics</module>
        <module>java2wsdl</module>
        <module>wsdl2code</module>
        <module>tryit</module>
        <module>server-admin</module>
        <module>transport-mgt</module>
        <module>module-mgt</module>
        <module>axis2-artifact-validator</module>
        <module>jaxws</module>
        <module>view-flows</module>
        <module>policy-editor</module>
        <module>axis1-services</module>
        <module>ejb-services</module>
        <module>spring</module>
        <module>proxy-admin</module>
        <module>pojo-services</module>
        <module>sts</module>
        <module>wsdlconverter</module>
        <module>user-mgt</module>
        <module>xkms</module>
        <module>scheduled-tasks</module>
        <module>startup</module>
        <module>aar-services</module>
        <module>data-services</module>
        <module>mediation-statistics</module>
        <module>mediation-tracer</module>
        <module>eventing</module>
	<module>xfer</module>
	<module>mex</module>
        <module>synapse-config-admin</module>
        <module>data-sources</module>
        <module>bpel</module>
        <module>registry</module>
        <module>synapse-registries</module>       
    </modules>
    
    
    <distributionManagement>
	    <repository>
		    <id>wso2-maven2-repository</id>
		    <name>WSO2 Maven2 Repository</name>
		    <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/</url>
	    </repository>
	    <snapshotRepository>
		    <id>wso2-maven2-snapshot-repository</id>
		    <name>WSO2 Maven2 Repository</name>
		    <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/</url>
	    </snapshotRepository>
    </distributionManagement>

    <pluginRepositories>
        <pluginRepository>
            <id>wso2-maven2-repository</id>
            <url>http://dist.wso2.org/maven2</url>
        </pluginRepository>
    </pluginRepositories>
    
    <profiles>
	    <profile>
		    <activation>
			    <property>
				    <name>sign</name>
			    </property>
		    </activation>
		    <build>
			    <plugins>
				    <plugin>
					    <groupId>org.apache.maven.plugins</groupId>
					    <artifactId>maven-gpg-plugin</artifactId>
					    <version>1.0-alpha-3</version>
					    <executions>
						    <execution>
							    <id>sign-artifacts</id>
							    <phase>verify</phase>
							    <goals>
								    <goal>sign</goal>
							    </goals>
						    </execution>
					    </executions>
				    </plugin>
			    </plugins>
		    </build>
	    </profile>
    </profiles>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.0.4-wso2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>            
        </plugins>
    </build>     
</project>
