<?xml version="1.0" encoding="UTF-8"?>
<project>
	<!-- 
	 * Copyright 2006 ServeBox 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.
	-->
	<!-- 
	 * Base POM for Flex libraries/application projects.
	 * You should install Adobe(c) Flex 2.0.1 dependencies from SDK using install:install-file
	 * goals (-DgroupId=adobe-flex2 -Dpackaging=swc).
	-->

	<modelVersion>4.0.0</modelVersion>
	<groupId>servebox-template</groupId>
	<artifactId>flex-project</artifactId>
	<version>1.7</version>
	<packaging>pom</packaging>
	
	<parent>
		<artifactId>parent-project</artifactId>
		<groupId>servebox-template</groupId>
		<version>1.3</version>
	</parent>

	<pluginRepositories>
        <pluginRepository>
            <id>central</id>
            <name>Central Maven Repository</name>
            <url>http://repo1.maven.org/maven2</url>
        </pluginRepository>
        
        <pluginRepository>
            <id>maven-snapshots</id>
            <name>Maven Snapshots Repository</name>
            <url>http://snapshots.maven.codehaus.org/maven2</url>
        </pluginRepository>
        
        <pluginRepository>
            <id>servebox</id>
            <name>ServeBox Plugin Repository</name>
            <url>http://www.servebox.com/maven</url>
        </pluginRepository>
    </pluginRepositories>

	<build>
		<plugins>
			<plugin>
				<groupId>org.servebox.flex2</groupId>
				<artifactId>flex2-plugin</artifactId>
				<version>0.9.2</version>
				<extensions>true</extensions>
				<configuration>
					<sourceDirectory>/src/main/flex</sourceDirectory>
					<stopBuildOnFailure>true</stopBuildOnFailure>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<dependencies>
    	
    	<dependency>
    		<groupId>adobe-flex2</groupId>
    		<artifactId>charts</artifactId>
    		<version>2.0.1</version>
    		<type>swc</type>
    	</dependency>
    	<dependency>
    		<groupId>adobe-flex2</groupId>
    		<artifactId>flex</artifactId>
    		<version>2.0.1</version>
    		<type>swc</type>
    	</dependency>
    	<dependency>
    		<groupId>adobe-flex2</groupId>
    		<artifactId>framework</artifactId>
    		<version>2.0.1</version>
    		<type>swc</type>
    	</dependency>
    	<dependency>
    		<groupId>adobe-flex2</groupId>
    		<artifactId>rpc</artifactId>
    		<version>2.0.1</version>
    		<type>swc</type>
    	</dependency>
    	<dependency>
    		<groupId>adobe-flex2</groupId>
    		<artifactId>utilities</artifactId>
    		<version>2.0.1</version>
    		<type>swc</type>
    	</dependency>
    	
		<!-- SCOPE : PROVIDED AVOIDS THE TEST SWF FROM EMBEDDING PLAYERGLOBAL DEPENDENCY -->
		
		<dependency>
			<groupId>adobe-flex2</groupId>
			<artifactId>playerglobal</artifactId>
			<version>2.0.1</version>
			<type>swc</type>
			<scope>provided</scope>
		</dependency>
	</dependencies>
</project>
