<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2008 Marvin Herman Froeder 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. -->

<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>
	<parent>
		<groupId>com.sample</groupId>
		<artifactId>sample</artifactId>
		<version>${project.version}</version>
	</parent>
	
	<artifactId>sample-flex</artifactId>
	<packaging>swf</packaging>
	<version>${project.version}</version>
	<name>sample-[flex]</name>

	<properties>
		<flex.framework.version>4.6.0.23201</flex.framework.version>
		<flex.sdk.version>4.6</flex.sdk.version>
		<flex.sdk.textLayout.version>1.1.0.604</flex.sdk.textLayout.version>
	</properties>

	<dependencies>
		<dependency>
			<scope>internal</scope>
			<groupId>org.graniteds</groupId>
			<artifactId>granite-essentials-swc</artifactId>
			<version>${graniteds.version}</version>
			<type>swc</type>
			<exclusions>
				<!-- These version are not used any more -->
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>parsley-flex4</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>spicelib-flex</artifactId>
				</exclusion>
				<!-- These version are not used any more -->
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.graniteds</groupId>
			<artifactId>granite-swc</artifactId>
			<version>${graniteds.version}</version>
			<type>swc</type>
			<exclusions>
				<!-- These version are not used any more -->
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>parsley-flex4</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>spicelib-flex</artifactId>
				</exclusion>
				<!-- These version are not used any more -->
			</exclusions>
		</dependency>
		
		<dependency>
			<groupId>com.sample</groupId>
			<artifactId>sample-entities</artifactId>
			<version>${project.version}</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>com.sample</groupId>
			<artifactId>sample-entities</artifactId>
			<version>${project.version}</version>
			<type>jar</type>
		</dependency>

		<dependency>
			<groupId>com.adobe.cairngorm</groupId>
			<artifactId>libraries</artifactId>
			<version>3.0.19</version>
			<type>pom</type>
			<exclusions>
				<exclusion>
					<artifactId>framework</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>flash-integration</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>spark</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>sparkskins</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>playerglobal</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>

				<!-- These version are not used any more -->
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>parsley-flex4</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>spicelib-flex</artifactId>
				</exclusion>
				<!-- These version are not used any more -->

			</exclusions>
		</dependency>

		<dependency>
			<groupId>com.adobe.cairngorm</groupId>
			<artifactId>observerParsley</artifactId>
			<version>1.13</version>
			<type>swc</type>
			<exclusions>
				<!-- These version are not used any more -->
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>parsley-flex4</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>spicelib-flex</artifactId>
				</exclusion>
				<!-- These version are not used any more -->
			</exclusions>
		</dependency>
		<dependency>
			<groupId>com.adobe.cairngorm</groupId>
			<artifactId>integrationParsley</artifactId>
			<version>0.17</version>
			<type>swc</type>
			<exclusions>
				<!-- These version are not used any more -->
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>parsley-flex4</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>spicelib-flex</artifactId>
				</exclusion>
				<!-- These version are not used any more -->
			</exclusions>
		</dependency>
		<dependency>
			<groupId>com.adobe.cairngorm</groupId>
			<artifactId>navigationParsley</artifactId>
			<version>1.7</version>
			<type>swc</type>
			<exclusions>
				<!-- These version are not used any more -->
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>parsley-flex4</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>spicelib-flex</artifactId>
				</exclusion>
				<!-- These version are not used any more -->
			</exclusions>
		</dependency>
		<dependency>
			<groupId>com.adobe.cairngorm</groupId>
			<artifactId>popupParsley</artifactId>
			<version>1.9</version>
			<type>swc</type>
			<exclusions>
				<exclusion>
					<artifactId>framework</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>playerglobal</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<!-- <exclusion> <artifactId>spark</artifactId> <groupId>com.adobe.flex.framework</groupId> 
					</exclusion> <exclusion> <artifactId>sparkskins</artifactId> <groupId>com.adobe.flex.framework</groupId> 
					</exclusion> -->

				<!-- These version are not used any more -->
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>parsley-flex4</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>spicelib-flex</artifactId>
				</exclusion>
				<!-- These version are not used any more -->
			</exclusions>
		</dependency>

		<dependency>
			<groupId>com.adobe.cairngorm</groupId>
			<artifactId>popup</artifactId>
			<version>1.15</version>
			<type>swc</type>
			<exclusions>
				<exclusion>
					<artifactId>playerglobal</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>spark</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>playerglobal</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>framework</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>sparkskins</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>

				<!-- These version are not used any more -->
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>parsley-flex4</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>spicelib-flex</artifactId>
				</exclusion>
				<!-- These version are not used any more -->
			</exclusions>
		</dependency>

		<dependency>
			<groupId>com.adobe.cairngorm</groupId>
			<artifactId>navigation</artifactId>
			<version>1.3</version>
			<type>swc</type>
			<exclusions>
				<exclusion>
					<artifactId>spark</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>sparkskins</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>playerglobal</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>

				<!-- These version are not used any more -->
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>parsley-flex4</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>spicelib-flex</artifactId>
				</exclusion>
				<!-- These version are not used any more -->
			</exclusions>
		</dependency>

		<dependency>
			<groupId>com.adobe.cairngorm</groupId>
			<artifactId>module</artifactId>
			<type>swc</type>
			<version>0.17</version>
			<exclusions>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>parsley-flex4</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.spicefactory</groupId>
					<artifactId>spicelib-flex</artifactId>
				</exclusion>
				<exclusion>
					<artifactId>spark</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>sparkskins</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>asmock</groupId>
			<artifactId>asmock</artifactId>
			<type>swc</type>
			<version>1.0</version>
		</dependency>

		<dependency>
			<groupId>org.spicefactory</groupId>
			<artifactId>parsley-flex4</artifactId>
			<version>2.4.1</version>
			<type>swc</type>
		</dependency>


		<!-- Replace with updated dependencies -->
		<!-- <dependency> <groupId>org.spicefactory</groupId> <artifactId>spicelib-flex</artifactId> 
			<version>2.4.0</version> <type>swc</type> </dependency> -->
		<!-- Replace with updated dependencies -->
		<!-- BEGIN Updated Dependencies -->
		<dependency>
			<groupId>org.spicefactory</groupId>
			<artifactId>legacy-spicelib-util</artifactId>
			<version>2.5.0</version>
			<type>swc</type>
		</dependency>
		<dependency>
			<groupId>org.spicefactory</groupId>
			<artifactId>spicelib-reflect</artifactId>
			<version>3.0.0</version>
			<type>swc</type>
		</dependency>
		<dependency>
			<groupId>org.spicefactory</groupId>
			<artifactId>spicelib-util</artifactId>
			<version>3.0.0</version>
			<type>swc</type>
		</dependency>
		<!-- END Updated Dependencies -->

		<dependency>
			<groupId>org.spicefactory</groupId>
			<artifactId>cinnamon</artifactId>
			<version>1.1.0</version>
			<type>swc</type>
		</dependency>





		<!-- BEGIN Dynamically load the Adobe signed RSL framework instead of merging 
			into SWF. -->

		<dependency>
			<groupId>com.adobe.flex.framework</groupId>
			<artifactId>framework</artifactId>
			<version>${flex.framework.version}</version>
			<type>swc</type>
			<scope>caching</scope>
		</dependency>
		<dependency>
			<groupId>com.adobe.flex.framework</groupId>
			<artifactId>textLayout</artifactId>
			<!-- <version>${flex.sdk.textLayout.version}</version> -->
			<version>${flex.framework.version}</version>
			<type>swc</type>
			<scope>caching</scope>
		</dependency>



		<dependency>
			<groupId>com.adobe.flex.framework</groupId>
			<artifactId>rpc</artifactId>
			<version>${flex.framework.version}</version>
			<type>swc</type>
			<scope>caching</scope>
		</dependency>
		<dependency>
			<groupId>com.adobe.flex.framework</groupId>
			<artifactId>osmf</artifactId>
			<version>${flex.framework.version}</version>
			<type>swc</type>
			<scope>caching</scope>
		</dependency>
		<dependency>
			<groupId>com.adobe.flex.framework</groupId>
			<artifactId>spark</artifactId>
			<version>${flex.framework.version}</version>
			<type>swc</type>
			<scope>caching</scope>
		</dependency>
		<!-- [ERROR] You can use 'iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForSto 
			pWorking' to disable this check. Please refer to Flexmojos maven doc. -->
		<dependency>
			<artifactId>sparkskins</artifactId>
			<groupId>com.adobe.flex.framework</groupId>
			<version>${flex.framework.version}</version>
			<type>swc</type>
			<scope>caching</scope>
		</dependency>
		<dependency>
			<groupId>com.adobe.flex.framework</groupId>
			<artifactId>mx</artifactId>
			<version>${flex.framework.version}</version>
			<!-- <version>${flex.sdk.version}</version> -->
			<type>swc</type>
			<scope>caching</scope>
		</dependency>

		<!-- <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>halo</artifactId> 
			<version>${flex.framework.version}</version> <type>swc</type> </dependency> -->

		<dependency>
			<groupId>com.adobe.flex.framework</groupId>
			<artifactId>spark</artifactId>
			<version>${flex.framework.version}</version>
			<classifier>theme</classifier>
			<type>css</type>
			<scope>theme</scope>
		</dependency>
		
		<dependency>
			<groupId>com.hurlant</groupId>
			<artifactId>as3crypto</artifactId>
			<version>1.3</version>
			<type>swc</type>
		</dependency>
		
		<dependency>
			<groupId>com.adobe.flex</groupId>
			<artifactId>as3corelib</artifactId>
			<version>1.0.0</version>
			<type>swc</type>
		</dependency>
		
		<dependency>
			<groupId>com.google</groupId>
			<artifactId>gaforflash</artifactId>
			<version>1.0.1</version>
			<type>swc</type>
		</dependency>
		<!--<dependency>
			<groupId>com.google</groupId>
			<artifactId>analytics_flash</artifactId>
			<version>1.0.1.319</version>
			<type>swc</type>
		</dependency> -->
		
		
		
		

		<!-- <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>halo</artifactId> 
			<version>${flex.framework.version}</version> <classifier>theme</classifier> 
			<type>swc</type> <scope>theme</scope> </dependency> -->

		<dependency>
			<groupId>com.adobe.flex.framework</groupId>
			<artifactId>flex-framework</artifactId>
			<version>${flex.framework.version}</version>
			<type>pom</type>
			<exclusions>
				<exclusion>
					<artifactId>spark</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
				<exclusion>
					<artifactId>sparkskins</artifactId>
					<groupId>com.adobe.flex.framework</groupId>
				</exclusion>
			</exclusions>
		</dependency>


		<!-- <dependency> <groupId>com.adobe.flex.themes</groupId> <artifactId>halo</artifactId> 
			<version>${flex.framework.version}</version> <type>swc</type> </dependency> -->


		<!-- <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>halo</artifactId> 
			<version>${flex.framework.version}</version> <classifier>theme</classifier> 
			<type>swc</type> <scope>theme</scope> </dependency> -->


		<!-- END Dynamically load the Adobe signed RSL framework instead of merging 
			into SWF. -->
	</dependencies>

	<build>
		<finalName>Sample</finalName>
		<sourceDirectory>src</sourceDirectory>
		<testSourceDirectory>src</testSourceDirectory>

		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.sonatype.flexmojos</groupId>
					<artifactId>flexmojos-maven-plugin</artifactId>
					<version>${flexmojos.version}</version>
				</plugin>
			</plugins>
		</pluginManagement>

		<plugins>
			<plugin>
				<groupId>org.sonatype.flexmojos</groupId>
				<artifactId>flexmojos-maven-plugin</artifactId>
				<version>${flexmojos.version}</version>
				<extensions>true</extensions>
				<executions>
					<execution>
						<goals>
							<goal>generate</goal>
						</goals>
						<configuration>
							<!--<generatorToUse>graniteds21</generatorToUse> -->
							<baseOutputDirectory>${project.build.directory}/../generated-sources/base</baseOutputDirectory>
							<outputDirectory>${project.build.directory}/../generated-sources/extended</outputDirectory>
							<extraOptions>
								<tide>false</tide>
								<uid>uid</uid>
								<entityFactory>org.granite.generator.as3.BVEntityFactory</entityFactory>
								<outputEnumToBaseOutputDirectory>false</outputEnumToBaseOutputDirectory>
							</extraOptions>
							<includeJavaClasses>
								<include>com.edvr.sample.entities.*</include>
								<include>com.edvr.sample.common.entities.*</include>
							</includeJavaClasses>
						</configuration>
					</execution>
					<execution>
						<id>Wrapper</id>
						<goals>
							<goal>wrapper</goal>
						</goals>
						<configuration>
							<templateURI>folder:/html-template</templateURI>
							<parameters>
								<swf>Sample</swf>
								<title>Sample</title>
								<width>100%</width>
								<height>100%</height>
							</parameters>
							<htmlName>Sample</htmlName>
						</configuration>
					</execution>
				</executions>
				<dependencies>
					<dependency>
						<groupId>javax.persistence</groupId>
						<artifactId>persistence-api</artifactId>
						<version>${jpa.version}</version>
					</dependency>
					<dependency>
						<groupId>javax.validation</groupId>
						<artifactId>validation-api</artifactId>
						<version>1.0.0.GA</version>
					</dependency>
					<dependency>
						<groupId>javax.jdo</groupId>
						<artifactId>jdo2-api</artifactId>
						<version>2.3-eb</version>
					</dependency>
					<dependency>
						<groupId>org.codehaus.groovy</groupId>
						<artifactId>groovy</artifactId>
						<version>1.6.0</version>
					</dependency>
					<dependency>
						<groupId>antlr</groupId>
						<artifactId>antlr</artifactId>
						<version>2.7.7</version>
					</dependency>
					<dependency>
						<groupId>asm</groupId>
						<artifactId>asm</artifactId>
						<version>2.2.3</version>
					</dependency>
					<dependency>
						<groupId>com.thoughtworks.xstream</groupId>
						<artifactId>xstream</artifactId>
						<version>1.2.2</version>
					</dependency>
					<dependency>
						<groupId>org.graniteds</groupId>
						<artifactId>granite-core</artifactId>
						<version>${graniteds.version}</version>
					</dependency>
					<dependency>
						<groupId>org.graniteds</groupId>
						<artifactId>granite-generator-share</artifactId>
						<version>${graniteds.version}</version>
					</dependency>
					<dependency>
						<groupId>org.graniteds</groupId>
						<artifactId>granite-generator</artifactId>
						<version>${graniteds.version}</version>
					</dependency>
				</dependencies>
			</plugin>

			<plugin>
				<groupId>org.sonatype.flexmojos</groupId>
				<artifactId>flexmojos-maven-plugin</artifactId>
				<version>${flexmojos.version}</version>
				<extensions>true</extensions>
				<dependencies>
					<dependency>
						<groupId>com.adobe.flex</groupId>
						<artifactId>compiler</artifactId>
						<version>${flex.framework.version}</version>
						<type>pom</type>
					</dependency>
					<dependency>
						<groupId>com.adobe.flex.compiler</groupId>
						<artifactId>asdoc</artifactId>
						<version>${flex.framework.version}</version>
						<classifier>template</classifier>
						<type>zip</type>
					</dependency>
				</dependencies>
				<configuration>
					<keepAllTypeSelectors>true</keepAllTypeSelectors>
					<!--<contextRoot>/sample-flex-services</contextRoot> -->
					<!--<outputDirectory>${project.build.directory}/target</outputDirectory>-->
					<showWarnings>false</showWarnings>
					<sourceFile>Sample.mxml</sourceFile>
					<!-- <localesSourcePath>${basedir}/src/locale/{locale}</localesSourcePath> -->
					<localesSourcePath>${basedir}/src/locale/{locale}</localesSourcePath>
					<localesCompiled>
						<locale>en_US</locale>
					</localesCompiled>
					<incremental>true</incremental>
					<includeStylesheets>
						<stylesheet>
							<name>SSDefaultStyle.css</name>
							<!--  <path>assets</path> -->
							<path>assets</path>
						</stylesheet>
					</includeStylesheets>
					<modules>
						<module>
							<!-- <sourceFile>modules/attribute/AttributeHome.mxml</sourceFile> -->
							<sourceFile>com/presentation/components/module/view/HomeView.mxml</sourceFile>
							<optimize>false</optimize>
							<finalName>HomeView</finalName>
							<destinationPath>com/presentation/components/module/view</destinationPath>
						</module>
					</modules>
					<keepAs3Metadatas>
						<keepAs3Metadata>Bindable</keepAs3Metadata>
						<keepAs3Metadata>Managed</keepAs3Metadata>
						<keepAs3Metadata>ChangeEvent</keepAs3Metadata>
						<keepAs3Metadata>NonCommittingChangeEvent</keepAs3Metadata>
						<keepAs3Metadata>Transient</keepAs3Metadata>
						<keepAs3Metadata>Id</keepAs3Metadata>
						<keepAs3Metadata>Version</keepAs3Metadata>
						<keepAs3Metadata>Name</keepAs3Metadata>
						<keepAs3Metadata>In</keepAs3Metadata>
						<keepAs3Metadata>Out</keepAs3Metadata>
						<keepAs3Metadata>Inject</keepAs3Metadata>
						<keepAs3Metadata>Produces</keepAs3Metadata>
						<keepAs3Metadata>PostConstruct</keepAs3Metadata>
						<keepAs3Metadata>Destroy</keepAs3Metadata>
						<keepAs3Metadata>Observer</keepAs3Metadata>
						<keepAs3Metadata>ManagedEvent</keepAs3Metadata>
					</keepAs3Metadatas>
				</configuration>
			</plugin>	
		</plugins>
	</build>
	<pluginRepositories>
		<pluginRepository>
			<id>flexmojos-repository</id>
			<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
		</pluginRepository>
	</pluginRepositories>
</project>