Created
September 23, 2013 13:41
-
-
Save alebianco/6670561 to your computer and use it in GitHub Desktop.
example build for AIR + Apache Flex + FlexUnit4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Flexmojos is a set of maven goals to allow maven users to compile, optimize and test Flex SWF, Flex SWC, Air SWF and Air SWC. | |
Copyright (C) 2008-2012 Marvin Froeder <marvin@flexmojos.net> | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. | |
You should have received a copy of the GNU General Public License | |
along with this program. If not, see <http://www.gnu.org/licenses/>. | |
--> | |
<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> | |
<groupId>eu.alebianco</groupId> | |
<artifactId>maventest</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>swc</packaging> | |
<name>maventest Flex</name> | |
<properties> | |
<flex.airVersion>3.8</flex.airVersion> | |
</properties> | |
<build> | |
<sourceDirectory>src/main/flex</sourceDirectory> | |
<testSourceDirectory>src/test/flex</testSourceDirectory> | |
<plugins> | |
<plugin> | |
<groupId>net.flexmojos.oss</groupId> | |
<artifactId>flexmojos-maven-plugin</artifactId> | |
<version>6.0.1</version> | |
<extensions>true</extensions> | |
<configuration> | |
<storepass /> | |
<targetPlayer>11.8</targetPlayer> | |
<swfVersion>21</swfVersion> | |
<debug>true</debug> | |
<!--<skipTests>true</skipTests> | |
<skipTest>true</skipTest>--> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>com.adobe.flex</groupId> | |
<artifactId>compiler</artifactId> | |
<version>4.10.0.20130801</version> | |
<type>pom</type> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>com.adobe.flex.framework.air</groupId> | |
<artifactId>air-framework</artifactId> | |
<version>4.10.0.20130801</version> | |
<type>pom</type> | |
</dependency> | |
<dependency> | |
<groupId>org.flexunit</groupId> | |
<artifactId>flexunit</artifactId> | |
<version>4.1.0</version> | |
<classifier>flex4</classifier> | |
<type>swc</type> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<!-- Repository and PluginRepository section for Flex SDK and compiler dependencies. | |
Note: instead of including this in every POM, you can append it to your user (~/.m2/settings.xml) or global | |
(M2_HOME/conf/settings.xml) settings file. | |
--> | |
<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> | |
<repository> | |
<id>flex-unit-repository</id> | |
<url>https://oss.sonatype.org/content/repositories/releases</url> | |
<releases> <enabled>true</enabled> </releases> | |
<snapshots> <enabled>false</enabled> </snapshots> | |
</repository> | |
</repositories> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>flex-mojos-plugin-repository</id> | |
<url>http://repository.sonatype.org/content/groups/flexgroup</url> | |
<releases> <enabled>true</enabled> </releases> | |
<snapshots> <enabled>false</enabled> </snapshots> | |
</pluginRepository> | |
<pluginRepository> | |
<id>flex-unit-repository</id> | |
<url>https://oss.sonatype.org/content/repositories/releases</url> | |
<releases> <enabled>true</enabled> </releases> | |
<snapshots> <enabled>false</enabled> </snapshots> | |
</pluginRepository> | |
</pluginRepositories> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment