MAVEN flex

<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.skycloud</groupId>
    <artifactId>FlexI18nTest</artifactId>
    <version>0.0.1</version>
    <name>FlexI18nTest</name>
    <packaging>swf</packaging>
    <properties>
        <flex.sdk.version>4.5.1.21328</flex.sdk.version>
        <flex.tlf.version>2.0.0.232</flex.tlf.version>
        <flex.osmf.version>1.0.0.16316</flex.osmf.version>
        <flexmojos.version>4.0-RC2</flexmojos.version>
    </properties>
    <repositories>
        <repository>
            <id>flex-mojos-repository</id>
            <url>http://repository.sonatype.org/content/groups/flexgroup</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>flex-mojos-repository</id>
            <url>http://repository.sonatype.org/content/groups/flexgroup</url>
        </pluginRepository>
    </pluginRepositories>
    <build>
        <finalName>FlexI18nTest</finalName>
        <sourceDirectory>src</sourceDirectory>
        <outputDirectory>./out</outputDirectory>
        <plugins>
            <plugin>
                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <version>${flexmojos.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <sourceFile>FlexI18nTest.mxml</sourceFile>
                    <outputDirectory>./out</outputDirectory>
                    <localesSourcePath>
                        ${basedir}/locale/{locale}
                    </localesSourcePath>
                      <localesCompiled>
                          <locale>en_US</locale>
                          <locale>zh_CN</locale>
                      </localesCompiled>
                    <policyFileUrls>
                        <!--- cross domain policy for each RSL entry -->
                        <url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url>
                        <url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url>
                        <url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url>
                    </policyFileUrls>

                    <rslUrls>
                        <url>
                            http://fpdownload.adobe.com/pub/{extension}/flex/${flex.sdk.version}/{artifactId}_{version}.{extension}
                        </url>

                        <url>
                            http://fpdownload.adobe.com/pub/{extension}/tlf/${flex.tlf.version}/{artifactId}_${flex.tlf.version}.{extension}
                        </url>

                        <url>
                            http://fpdownload.adobe.com/pub/{extension}/flex/${flex.sdk.version}/{artifactId}_${flex.osmf.version}.{extension}
                        </url>
                    </rslUrls>
                    <debug>true</debug>
                    <swfVersion>11</swfVersion>
                    <targetPlayer>10.2</targetPlayer>
                    <storepass/>
                    <optimize>true</optimize>
                    <showWarnings>true</showWarnings>
                    <allowSourcePathOverlap>true</allowSourcePathOverlap>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>com.adobe</groupId>
            <artifactId>as3corelib</artifactId>
            <version>0.92</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>flex-framework</artifactId>
            <version>${flex.sdk.version}</version>
            <type>pom</type>
        </dependency>
    </dependencies>
</project>

 

posted @ 2013-07-04 12:11  羊皮稿  阅读(341)  评论(0编辑  收藏  举报