<?xml version='1.0' encoding='UTF-8'?>
<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>org.apache.continuum</groupId>
    <artifactId>continuum-flex</artifactId>
    <version>1.2-SNAPSHOT</version>
  </parent>
  <artifactId>continuum-flex-common</artifactId>
  <packaging>swc</packaging>
  <name>Continuum Flex Common</name>

  <build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>info.rvin.mojo</groupId>
        <artifactId>flex-compiler-mojo</artifactId>
        <version>1.0</version>
        <extensions>true</extensions>
        <configuration>
		  <debug>true</debug>
          <locales>
            <param>en_US</param>
            <param>fr_FR</param>
          </locales>
          <!-- defines>
            <CONTINUUM::ContinuumBuildNumber>${buildNumber}</CONTINUUM::ContinuumBuildNumber>
            <CONTINUUM::Version>${project.version}</CONTINUUM::Version>
          </defines -->
          <headlessServer>true</headlessServer>
          <mergeResourceBundle>true</mergeResourceBundle>
          <resourceBundlePath>${basedir}/src/main/locales/{locale}</resourceBundlePath>
          <namespaces>
            <namespace>
              <uri>http://continuum.apache.org/flex</uri>
              <manifest>src/main/flex-manifest/SimpleManifest.xml</manifest>
            </namespace>
          </namespaces>
          <includeNamespaces>
            <param>http://continuum.apache.org/flex</param>
          </includeNamespaces>
          <keepAs3Metadatas>
            <param>Bindable</param>
            <param>Managed</param>
            <param>NotNull</param>
            <param>Case</param>
            <param>MaxChars</param>
            <param>Restrict</param>
          </keepAs3Metadatas>
          <targetPlayer>9.0.28</targetPlayer>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <properties>
    <flex.version>3.0.0.477</flex.version>
  </properties>

  <dependencies>
    <dependency>
      <groupId>com.adobe.flex.sdk</groupId>
      <artifactId>playerglobal</artifactId>
      <version>${flex.version}</version>
      <type>swc</type>
      <scope>external</scope>
    </dependency>
    <dependency>
      <groupId>com.adobe.flex.sdk</groupId>
      <artifactId>flex</artifactId>
      <version>${flex.version}</version>
      <type>swc</type>
    </dependency>
    <dependency>
      <groupId>com.adobe.flex.sdk</groupId>
      <artifactId>framework</artifactId>
      <version>${flex.version}</version>
      <type>swc</type>
    </dependency>
    <dependency>
      <groupId>com.adobe.flex.sdk</groupId>
      <artifactId>framework</artifactId>
      <version>${flex.version}</version>
      <type>resource-bundle</type>
      <classifier>en_US</classifier>
    </dependency>
    <dependency>
      <groupId>com.adobe.flex.sdk</groupId>
      <artifactId>rpc</artifactId>
      <version>${flex.version}</version>
      <type>swc</type>
    </dependency>
    <dependency>
      <groupId>com.adobe.flex.sdk</groupId>
      <artifactId>rpc</artifactId>
      <version>${flex.version}</version>
      <type>resource-bundle</type>
      <classifier>en_US</classifier>
    </dependency>
    <dependency>
      <groupId>com.adobe.flex.sdk</groupId>
      <artifactId>utilities</artifactId>
      <version>${flex.version}</version>
      <type>swc</type>
    </dependency>
  </dependencies>

  <repositories>
    <repository>
      <id>flex-mojos-repository</id>
      <url>http://svn.sonatype.org/flexmojos/repository/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>flex-mojos-repository</id>
      <url>http://svn.sonatype.org/flexmojos/repository/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>
</project>