I am not building an air application, however we have a basic pom.xml which
we use for all our libraries that I can share with you. This pom is just a
basic one. We then have later poms which use the parent and override some
properties or add new ones. I've attached them in this email.
The base pom is stored in our artifactory repo, and then
some_library_pom.xml is stored in the project of the library.
For an air application you will need to remove the exclusion from the
compiler I believe and change the package type.
Hope this helps.
brought to you by the letters A, V, and I
and the number 47
On Thu, Jan 30, 2014 at 10:34 AM, Christofer Dutz <christofer.d...@c-ware.de
> wrote:
> Well let me post some Links:
>
> - the latest source is at GitHub: https://github.com/chrisdutz/flexmojos
> - the bug & issue tracker is at Atlassian:
> https://flexmojos.atlassian.net/secure/Dashboard.jspa
> - same as the confluence System:
> https://flexmojos.atlassian.net/wiki/display/FLEXMOJOS/Home
> - A Good entry Point should be:
> https://flexmojos.atlassian.net/wiki/pages/viewpage.action?pageId=622636
>
> I know it's a Little confusing, but when Velo (the original creator and
> maintainer of Flexmojos) left sonatype and passed on Flexmojos to me, I
> started Setting up the Atlassian site and move the Content there, but Velo
> never made Sonatype delete the old Content :-( Unfortunately I have no
> means of making Sonatype remove the old Content.
>
> I also deploy Flexmojos Releases to the sonatype oss repo, which usually
> has the artifacts synced to Maven central within a few days.
> The most recent release Version is 6.0.1 and the current development
> Version is 7.0.0-SNAPSHOT which is available on Sonatypes OSS snapshot
> repository.
>
> You have to Keep in mind that with FM 6 and 7 you Need to convert your FDK
> to a mavenized form using our Mavenizer tool:
> https://cwiki.apache.org/confluence/display/FLEX/Apache+Flex+SDK+Mavenizer
>
> I would recommend to have a look at the tutorials on the Flexmojos
> confluence System.
>
> If you have any Problems, don't hesitate to post questions here. There are
> quite a lot of very skilled people here that will deffinitely be able to
> help you.
>
> Chris
>
> ________________________________________
> Von: Daniel Tiefenauer <daniel.tiefena...@crealogix.com>
> Gesendet: Donnerstag, 30. Januar 2014 09:17
> An: dev@flex.apache.org
> Betreff: AW: Flex CI integration
>
> Avi,
> I already tried to make this work, but without success. I don't know where
> to get the most current Mojos. Seems the ones at sonatype.org are all
> outdated. Are you building a Mobile Project with Maven? Do you think it
> would be possible if you sent me your pom.xml for reference?
>
> Many thanks in advance
> Daniel
>
> -----Ursprüngliche Nachricht-----
> Von: Avi Kessner [mailto:akess...@gmail.com]
> Gesendet: Mittwoch, 29. Januar 2014 12:49
> An: dev@flex.apache.org
> Betreff: Re: Flex CI integration
>
> We use Maven for our Teamcity integration. I wouldn't recommend any other
> solution :)
>
> brought to you by the letters A, V, and I and the number 47
>
>
> On Wed, Jan 29, 2014 at 1:30 PM, Christofer Dutz
> <christofer.d...@c-ware.de>wrote:
>
> > Hi Daniel,
> >
> > Well If you are not stuck to Ant, but would think about using Maven,
> > Flexmojos already offers the following out of the box:
> > - Unit-Testing and logging the results
> > - Running ASDoc Generation
> > - Executing Integration tests
> >
> > Chris
> >
> > ________________________________________
> > Von: Daniel Tiefenauer <daniel.tiefena...@crealogix.com>
> > Gesendet: Mittwoch, 29. Januar 2014 11:53
> > An: dev@flex.apache.org
> > Betreff: Flex CI integration
> >
> > Hello there
> > I'm desperately trying to build a Flex mobile project in Jenkins. I
> > managed to write ANT-Tasks to compile and package the Code.
> > What I have been trying to do during the past days is :
> >
> > - Execute my FlexUnit4 Tests and write the results in a log
> >
> > - Generate ASDOC for my sources
> >
> > But this seems to be insanely difficult. I have studied all the
> > information I could find on the ASDOC tool and also stumbled upon the
> > Wiki at
> > https://cwiki.apache.org/confluence/display/FLEX/FlexUnit+Digging+Deep
> > er. However, I can't clone the FlexUnitSample CI Project from the
> Repository ( https://git-wip-us.apache.org/repos/asf?p=flex-flexunit.git).
> >
> > My goal is something like the job found on
> > https://builds.apache.org/job/flex-sdk_release/. Does ANYBODY have a
> > guide or documentation about the steps needed to achieve this??
> >
> > Any help would be greatly appreciated
> >
> >
> > Daniel
> >
> >
>
<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>com.my.company</groupId>
<artifactId>base-parent</artifactId>
<name>base-parent</name>
<version>2.0.0</version>
<packaging>pom</packaging>
<properties>
<flexmojos.version>6.0.1</flexmojos.version>
<flex.version>4.6.0.23201</flex.version>
<flashplayer.version>11.1</flashplayer.version>
</properties>
<!--
In each parents defined profiles release|debug
By default activated release version. For debug compile you should use: mvn compile -P debug
-->
<profiles>
<profile>
<id>release</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<compile.debug>false</compile.debug>
</properties>
</profile>
<profile>
<id>debug</id>
<activation>
<property>
<name>debug</name>
</property>
</activation>
<properties>
<compile.debug>true</compile.debug>
</properties>
</profile>
</profiles>
<dependencies>
<!-- Specify player version -->
<dependency>
<groupId>com.adobe.flash.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>${flashplayer.version}</version>
<type>swc</type>
</dependency>
<!-- add theme manually to avoid warnings -->
<dependency>
<groupId>com.adobe.flex.framework.themes</groupId>
<artifactId>spark</artifactId>
<type>swc</type>
<scope>theme</scope>
<version>${flex.version}</version>
</dependency>
<!-- Scope TEST -->
<!-- Unittests support -->
<dependency>
<groupId>net.flexmojos.oss</groupId>
<artifactId>flexmojos-unittest-flexunit4</artifactId>
<version>${flexmojos.version}</version>
<type>swc</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.adobe.flex.framework.air</groupId>
<artifactId>airframework</artifactId>
</exclusion>
<exclusion>
<groupId>com.adobe.flex.framework.air</groupId>
<artifactId>air-framework</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- FlexSdk needed for unittests support -->
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>${flex.version}</version>
<type>pom</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.adobe.flash.framework</groupId>
<artifactId>playerglobal</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Flexunit is external for flexunit-support-->
<dependency>
<groupId>org.flexunit</groupId>
<artifactId>flexunit</artifactId>
<version>4.1.0</version>
<type>swc</type>
<classifier>as3</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-as3</artifactId>
<version>1.1</version>
<type>swc</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockolate</groupId>
<artifactId>mockolate</artifactId>
<version>0.12.4</version>
<classifier>as3</classifier>
<type>swc</type>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>framework</artifactId>
<version>${flex.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<!-- Default name of artifact will be <name>???</name>, which defined in top -->
<finalName>${project.name}</finalName>
<!-- default source folder -->
<sourceDirectory>src</sourceDirectory>
<!-- default test source folder -->
<testSourceDirectory>test</testSourceDirectory>
<plugins>
<plugin>
<groupId>net.flexmojos.oss</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos.version}</version>
<extensions>true</extensions>
<configuration>
<as3>true</as3>
<storepass/>
<targetPlayer>${flashplayer.version}</targetPlayer>
<debug>${compile.debug}</debug>
<!-- There is defined two compiler directives which you can use in your code -->
<defines>
<property>
<name>CONFIG::debug</name>
<value>${compile.debug}</value>
</property>
<property>
<name>CONFIG::versionNumber</name>
<value>'${project.version}'</value>
</property>
</defines>
<compilerWarnings>
<warn-no-constructor>false</warn-no-constructor>
</compilerWarnings>
</configuration>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.version}</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>flex-mojos-repository</id>
<name>flex-mojos-repository</name>
<url>https://oss.sonatype.org/content/repositories/releases</url>
</repository>
<repository>
<id>artifactory-ext</id>
<name>artifactory-ext-release</name>
<url>http://artifactory.corp/artifactory/ext-release-local/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>flex-mojos-plugin-repository</id>
<url> https://oss.sonatype.org/content/repositories/releases</url>
</pluginRepository>
<pluginRepository>
<id>artifactory-ext</id>
<url>[YOUR ARTIFACTORY]artifactory/ext-release-local/</url>
</pluginRepository>
</pluginRepositories>
<distributionManagement>
<repository>
<id>artifactory</id>
<name>artifactory-releases</name>
<url>[YOUR ARTIFACTORY]artifactory/libs-release-local</url>
</repository>
<snapshotRepository>
<id>artifactory</id>
<name>artifactory-snapshots</name>
<url>[YOUR ARTIFACTORY]/artifactory/libs-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
</project>
<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>
<!-- Identify our artifact -->
<artifactId>some_library</artifactId>
<version>master-SNAPSHOT</version>
<name>some_library</name>
<packaging>swc</packaging>
<!-- Define parent -->
<parent>
<groupId>com.playtika.client</groupId>
<artifactId>plc-parent</artifactId>
<version>2.0.0</version>
</parent>
<!-- Override flashplayer version -->
<properties>
<flashplayer.version>10.1</flashplayer.version>
</properties>
<!-- Define dependencies list -->
<dependencies>
<dependency>
<groupId>org.casalib</groupId>
<artifactId>casalib</artifactId>
<version>1.3.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>gaforflash</groupId>
<artifactId>google.analytics</artifactId>
<version>1.0.1</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe</groupId>
<artifactId>com.adobe</artifactId>
<version>1.0.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe</groupId>
<artifactId>fl</artifactId>
<type>swc</type>
<version>1.0</version>
</dependency>
<dependency>
<groupId>by.blooddy.crypto</groupId>
<artifactId>blooddy-crypto</artifactId>
<version>0.3.5</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe</groupId>
<artifactId>MD5</artifactId>
<version>1.0.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe</groupId>
<artifactId>json</artifactId>
<version>1.0.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.facebook.graph</groupId>
<artifactId>GraphAPI_Web_1_8_1</artifactId>
<version>1.8.1</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe</groupId>
<artifactId>componentsFlashIDE</artifactId>
<type>swc</type>
<version>0.0.1</version>
</dependency>
</dependencies>
<!-- And define repos list. Should be setted up at least one repo with the parent. -->
<repositories>
<repository>
<id>artifactory-libs</id>
<name>artifactory-libs-release</name>
<url>[YOUR ARTIFACTORY]artifactory/libs-release-local</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>artifactory-snapshots</id>
<name>artifactory-libs-snapshots</name>
<url>[YOUR ARTIFACTORY]artifactory/libs-snapshot-local</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</project>