<?xml version="1.0" encoding="UTF-8"?>

<!--Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file 
    distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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. -->

<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.airavata</groupId>
        <artifactId>airavata</artifactId>
        <version>0.4-incubating</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>airavata-xbaya-gui</artifactId>
    <packaging>jar</packaging>
    <name>Airavata XBaya</name>
    <url>http://incubator.apache.org/airavata/</url>

    <!-- Edit the following properties. -->
    <profiles>
        <profile>
            <id>standalone</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <trustedCertsLocation>${project.home}/certificates/
                </trustedCertsLocation>
                <ssl.trustedCertsFile>${trustedCertsLocation}</ssl.trustedCertsFile>
                <build.scope>provided</build.scope>
                <build.jsf>compile</build.jsf>

                <!-- JNLP Properties -->
                <!-- Deployment Information -->
                <jnlpURLPrefix>http://localhost/airavata-xbaya</jnlpURLPrefix>
                <jnlpFileName>xbaya.jnlp</jnlpFileName>

                <registryEPR>
                    http://localhost:8090/jackrabbit-webapp-2.4.0/rmi
                </registryEPR>
                <gfacEPR>
                    http://localhost:8080/axis2/services/GFacService
                </gfacEPR>
                <messagebrokerEPR>
                    http://localhost:8080/axis2/services/EventingService
                </messagebrokerEPR>
                <messageboxEPR>
                    http://localhost:8080/axis2/services/MsgBoxService
                </messageboxEPR>

            </properties>
        </profile>

        <profile>
            <id>collective</id>
            <activation>
                <file>
                    <exists>betacollective</exists>
                </file>
            </activation>
            <properties>
                <!-- Inherited from the parent in this collective build. -->
                <ssl.trustedCertsFile>${trustedCertsLocation}</ssl.trustedCertsFile>
                <build.scope>provided</build.scope>
                <build.jsf>compile</build.jsf>
            </properties>
        </profile>
    </profiles>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.6</version>
                <executions>
                    <execution>
                        <id>restore-persistence</id>
                        <phase>prepare-package</phase>
                        <configuration>
                            <tasks>
                                <copy file="${project.build.outputDirectory}/services.xml" tofile="${project.build.outputDirectory}/META-INF/services.xml" />
                                <copy file="src/main/resources/WorkflowInterpretor.wsdl" tofile="${project.build.outputDirectory}/META-INF/service.wsdl" />
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>${surefire.version}</version>
                <configuration>
                    <includes>
                        <include>**/*Suite.java</include>
                    </includes>
                    <excludes>
                        <exclude>**/*Test.java</exclude>
                        <exclude>**/*Tests.java</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/jnlp/lib</outputDirectory>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>true</overWriteSnapshots>
                            <excludeTransitive>false</excludeTransitive>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>webstart-maven-plugin</artifactId>
                <version>1.0-beta-3</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>jnlp</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <jnlp>
                        <inputTemplate>src/main/resources/xbaya-jnlp-template.vm</inputTemplate>
                        <outputFile>${jnlpFileName}</outputFile>
                        <mainClass>org.apache.airavata.xbaya.XBaya</mainClass>
                    </jnlp>
                    <libPath>lib</libPath>
                    <sign>
                        <keystore>${basedir}/target/keystore</keystore>
                        <keypass>xbaya-secret</keypass>
                        <storepass>xbaya-secret</storepass>
                        <alias>xbaya</alias>
                        <validity>365</validity>

                        <dnameCn>Airavata</dnameCn>
                        <dnameOu>Apache</dnameOu>
                        <dnameO>Apache Software Foundation</dnameO>

                        <keystoreConfig>
                            <delete>true</delete>
                            <gen>true</gen>
                        </keystoreConfig>
                    </sign>
                    <verifyjar>true</verifyjar>
                </configuration>
            </plugin>

        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>xpp3</groupId>
            <artifactId>xpp3_xpath</artifactId>
            <version>1.1.4c</version>
        </dependency>
        <dependency>
            <groupId>xpp3</groupId>
            <artifactId>xpp3</artifactId>
            <version>1.1.4c</version>
        </dependency>
        <dependency>
            <groupId>xpp5</groupId>
            <artifactId>xpp5</artifactId>
            <version>1.2.6</version>
        </dependency>
        <dependency>
            <groupId>xpp5</groupId>
            <artifactId>xpp5_xpath</artifactId>
            <version>1.2.6</version>
        </dependency>
        <dependency>
            <groupId>xsul5-ogce</groupId>
            <artifactId>xsul5-2007-02-27</artifactId>
            <version>1</version>
        </dependency>
        <dependency>
            <groupId>gpel</groupId>
            <artifactId>gpel_client</artifactId>
            <version>1.0.7-BETA</version>
        </dependency>
        <dependency>
            <groupId>atomixmiser</groupId>
            <artifactId>atomixmiser</artifactId>
            <version>0.9.4</version>
        </dependency>
        <dependency>
            <groupId>commons-httpclient</groupId>
            <artifactId>commons-httpclient</artifactId>
            <version>3.1</version>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.3</version>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
        </dependency>
        <dependency>
            <groupId>lead-security</groupId>
            <artifactId>cryptix32</artifactId>
            <version>versionless</version>
        </dependency>
        <dependency>
            <groupId>lead-security</groupId>
            <artifactId>cryptix-asn1</artifactId>
            <version>versionless</version>
        </dependency>
        <dependency>
            <groupId>lead-security</groupId>
            <artifactId>puretls</artifactId>
            <version>0.9b4-1</version>
        </dependency>
        <dependency>
            <groupId>xutil</groupId>
            <artifactId>xutil</artifactId>
            <version>0.2</version>
        </dependency>
        <dependency>
            <groupId>jython</groupId>
            <artifactId>jython</artifactId>
            <version>2.5.1</version>
        </dependency>
        <dependency>
            <groupId>cog-jglobus</groupId>
            <artifactId>cog-jglobus</artifactId>
            <version>1.8.0_1</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
        <dependency>
            <groupId>xsul</groupId>
            <artifactId>xsul</artifactId>
            <version>2.10.5_d</version>
        </dependency>
        <dependency>
            <groupId>xmlbeans</groupId>
            <artifactId>xbean</artifactId>
            <version>${xmlbeans.version}</version>
        </dependency>
        <dependency>
            <groupId>xbaya</groupId>
            <artifactId>pegasuswebservice</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-adb</artifactId>
            <version>${axis2.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-kernel</artifactId>
            <version>${axis2.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ws.commons.axiom</groupId>
            <artifactId>axiom-api</artifactId>
            <version>1.2.8</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ws.commons.axiom</groupId>
            <artifactId>axiom-impl</artifactId>
            <version>1.2.8</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ws.commons.axiom</groupId>
            <artifactId>axiom-dom</artifactId>
            <version>1.2.8</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ws.commons.schema</groupId>
            <artifactId>XmlSchema</artifactId>
            <version>1.4.2</version>
        </dependency>
        <dependency>
            <groupId>org.apache.neethi</groupId>
            <artifactId>neethi</artifactId>
            <version>2.0.4</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-transport-local</artifactId>
            <version>${axis2.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-transport-http</artifactId>
            <version>${axis2.version}</version>
        </dependency>

        <!-- AMAZON STUFFS -->
        <dependency>
            <groupId>com.amazonaws</groupId>
            <artifactId>aws-java-sdk</artifactId>
            <version>1.1.8</version>
        </dependency>
        <dependency>
            <groupId>amazon</groupId>
            <artifactId>MapReduce.Service.Client</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>net.java.dev.jets3t</groupId>
            <artifactId>jets3t</artifactId>
            <version>0.8.0</version>
        </dependency>

        <!-- AIRAVATA modules -->
        <dependency>
            <groupId>org.apache.airavata</groupId>
            <artifactId>airavata-workflow-model-core</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.airavata</groupId>
            <artifactId>airavata-message-broker</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.airavata</groupId>
            <artifactId>airavata-registry-api</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>org.apache.airavata</groupId>
            <artifactId>airavata-common-utils</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.airavata</groupId>
            <artifactId>airavata-workflow-tracking</artifactId>
            <version>${project.version}</version>
        </dependency>

        <!-- JCR Support -->
        <!-- TODO need clean up -->
        <dependency>
            <groupId>org.apache.airavata</groupId>
            <artifactId>airavata-gfac-schema-utils</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.airavata</groupId>
            <artifactId>airavata-gfac-core</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.airavata</groupId>
            <artifactId>airavata-registry-migrator</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
            <version>${org.slf4j.version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>${org.slf4j.version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>javax.jcr</groupId>
            <artifactId>jcr</artifactId>
            <version>${jcr.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>jackrabbit-core</artifactId>
            <version>${jackrabbit.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>jackrabbit-jcr-rmi</artifactId>
            <version>${jackrabbit.version}</version>
        </dependency>
        <dependency>
            <groupId>globus</groupId>
            <artifactId>transfer-api-client</artifactId>
            <version>0.10</version>
        </dependency>
        <dependency>
            <groupId>org.apache.airavata</groupId>
            <artifactId>airavata-workflow-execution-context</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.airavata</groupId>
            <artifactId>airavata-common-registry-api</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>
</project>
