<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.wso2.dataservice</groupId>
        <artifactId>dataservice-solution-parent</artifactId>
        <version>2.3</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>wso2dssolution</artifactId>
    <packaging>pom</packaging>
    <name>WSO2 Data Service Distribution</name>
    <url>http://wso2.org/projects/solutions/data-services/java</url>
    <description>WSO2 Data Services Distribution</description>

    <dependencies>
        <!--
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>wso2carbon</artifactId>
            <version>SNAPSHOT</version>
            <type>zip</type>
        </dependency>
        -->
        <dependency>
            <groupId>org.wso2.dataservice</groupId>
            <artifactId>org.wso2.ws.dataservice</artifactId>
            <version>${pom.version}</version>
        </dependency>
        
        <!-- commented to remove carbon dependency from wsas2.3 release -->
        <!--
        <dependency>
            <groupId>org.wso2.dataservice</groupId>
            <artifactId>org.wso2.solutions.ds.ui</artifactId>
            <version>${pom.version}</version>
        </dependency>
        -->

    </dependencies>

    <build>
        <plugins>
            <!-- commented to remove carbon dependency from wsas2.3 release -->
            <!--
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.0-alpha-4</version>
                <inherited>false</inherited>
                <executions>
                    <execution>
                        <id>unpack-wso2carbon</id>
                        <phase>package</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.wso2.carbon</groupId>
                                    <artifactId>wso2carbon</artifactId>
                                    <version>SNAPSHOT</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>target</outputDirectory>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2-beta-2</version>
                <executions>
                    <execution>
                        <id>dist</id>
                        <phase>package</phase>
                        <goals>
                            <goal>attached</goal>
                        </goals>
                        <configuration>
                            <descriptors>
                                <descriptor>bin.xml</descriptor>
                            </descriptors>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
