<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>org.wso2.carbon.bam.jasper</artifactId>
    <packaging>war</packaging>
    <version>4.2.0</version>
    <name>org.wso2.carbon.bam.jasper Maven Webapp</name>
    <url>http://wso2.org</url>

    <parent>
        <groupId>org.wso2.carbon</groupId>
        <artifactId>bam2</artifactId>
        <version>4.2.0</version>
	<relativePath>../../pom.xml</relativePath>
    </parent>

    <dependencies>
        <dependency>
            <groupId>net.sf.jasperreports</groupId>
            <artifactId>jasperreports</artifactId>
            <version>4.6.0</version>
        </dependency>
        <!--        <dependency>
            <groupId>jasperreports.wso2</groupId>
            <artifactId>jasperreports</artifactId>
            <version>4.5.0.wso2v1</version>
            &lt;!&ndash; <version>${jasperreports.wso2.bam.version}</version>&ndash;&gt;
        </dependency>-->
        <dependency>
            <groupId>org.eclipse.equinox</groupId>
            <artifactId>javax.servlet</artifactId>
            <version>${version.javax.servlet}</version>
            <scope>provided</scope>
            <!-- <version>${jasperreports.wso2.bam.version}</version>-->
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.bam.toolbox.deployer</artifactId>
            <scope>provided</scope>
            <version>${wso2carbon.version}</version>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.ndatasource.core</artifactId>
            <scope>provided</scope>
            <version>${wso2carbon.version}</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <warName>dashboard</warName>
                </configuration>
            </plugin>
            <!--           <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.5</version>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        &lt;!&ndash; here the phase you need &ndash;&gt;
                        <phase>validate</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/../../../features/bam2/org.wso2.carbon.bam.ui.feature/resources/app</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${basedir}/target</directory>
                                    <filtering>true</filtering>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>-->
            <!--<plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>install-jar</id>
                        <phase>install</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.wso2.carbon</groupId>
                                    <artifactId>org.wso2.carbon.bam.jasper</artifactId>
                                    <version>${wso2carbon.version}</version>
                                    <type>war</type>
                                    <destFileName>dashboard.war</destFileName>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>
                                        ${basedir}/../../../features/bam2/org.wso2.carbon.bam.dashboard.ui.feature/resources/app
                                    </outputDirectory>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>-->

        </plugins>
    </build>

</project>
