2 Replies Latest reply on Aug 13, 2012 12:53 AM by Mario Wündsch

    continuous integration of flex mobile app not working

    Mario Wündsch

      Hello,

       

      we are using Adobe® Flash® Builder™ 4.6 Premium to develope Mobile Apps. Now we need a continious integration (linke Jenkins/Hudson) base on a maven (or ant ) build to run tests and packing the apps automatically.

      But a lot of time was spent to create a working pom.xml, but it's working.

       

      Can anyone help us, with a working example?

       

      thx.

      Mario

        • 1. Re: continuous integration of flex mobile app not working
          BBlommers Level 2

          I do not have a working example at hand atm, but:

           

          Could you post the pom.xml?

          Also, please clarify what exactly is not working.

          • 2. Re: continuous integration of flex mobile app not working
            Mario Wündsch Level 1

            hi,

             

            there are a lot of strange things and questions with my maven build. I have spend a lot of time of reading homepages and manuals. Here are some of them:

             

            1. Where I get the 4.6. flex sdk dependencies?
            2. Is there a correct way to add deps which are not in den openSource sdk like "fiber"?
            3. How to build release apps for iOS and android?
            4. How can a add some images?
            5. For my generated Services (extendsHTTPServiceWrapper) I must add the fiber dep. But now maven says: "ERROR] Unable to resolve resource bundle "fiber" for locale "en_US"."

             

            thx for the help

             

            Now my current pom.xml is a mixture of a lot of repositories, deps and plugins. Here is it:

            <?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>

             

                      <groupId>com.mwd-systems</groupId>

            <artifactId>rga</artifactId>

            <version>1.0-SNAPSHOT</version>

            <packaging>swf</packaging>

             

                      <name>test Flex</name>

            <properties>

              <flexmojos.version>4.1-beta</flexmojos.version>

              <!-- <flexmojos.version>4.0-RC2</flexmojos.version> -->

              <!-- <flexmojos.version>4.0-beta3</flexmojos.version> -->

              <!-- <flexmojos.version>3.1.0</flexmojos.version> -->

              <!-- <flex.sdk.version>4.5.0.20967</flex.sdk.version> -->

              <flex.sdk.version>4.5.1.21328</flex.sdk.version>

              <!-- <flex.sdk.version>4.5.0.17855</flex.sdk.version> -->

              <!-- <flex.sdk.version>4.6.0.23201</flex.sdk.version> -->

            </properties>

            <build>

              <sourceDirectory>src</sourceDirectory>

              <testSourceDirectory>test</testSourceDirectory>

              <resources>

              <resource>

              <directory>resources</directory>

              </resource>

              </resources>

              <plugins>

              <plugin>

                                                    <groupId>org.sonatype.flexmojos</groupId>

                                                    <artifactId>flexmojos-maven-plugin</artifactId>

                                                    <version>${flexmojos.version}</version>

              <extensions>true</extensions>

              <configuration>

              <sourceFile>rga.mxml</sourceFile>

              <compilerWarnings>

              <warn-no-constructor>false</warn-no-constructor>

              </compilerWarnings>

              <debug>true</debug>

              <coverage>true</coverage>

              <coverageProvider>cobertura</coverageProvider>

              <coverageReportFormat>html</coverageReportFormat>

              </configuration>

              </plugin>

              <plugin>

             

                                                    <groupId>com.yelbota.plugins</groupId>

                                                    <artifactId>adt-maven-plugin</artifactId>

              <version>1.0.3</version>

             

              <executions>

              <execution>

                                                                        <goals>

                                                                                  <goal>package</goal>

                                                                        </goals>

              </execution>

              </executions>

             

              <configuration>

             

              <sdkVersion>3.3</sdkVersion>

             

                                                              <target>ipa-ad-hoc</target>

                                                              <keystore>data/ipa-certificate.p12</keystore>

                                                              <storepass>!!!THISISSECRET!!!</storepass>

             

              <!-- Required for ipa* targets -->

              <provisioningProfile>data/RGA_Profile.mobileprovision</provisioningProfile>

             

              <!-- Optional. Application descriptor. By default is src/main/resources/application-descriptor.xml -->

                                                              <descriptor>src/rga-app.xml</descriptor>

             

              <!-- Optional. Replaces versionNumber in application descriptor. Useful

                                                                        for CI. 0.0.0 by default. -->

              <versionNumber>${build.number}</versionNumber>

             

              <!-- Optional. Replaces versionLabel in application descriptor. ${project.version}

                                                                        by default. -->

              <versionLabel>${project.version}</versionLabel>

             

              <!-- By default includes lookedup in target/classes directory. Usualy

                                                                        maven-resources-plugin copy here content of src/main/resources. You can change

                                                                        this behaviour by setting <includesRoot> property. -->

              <includes>

              <!-- <include>icons</include> -->

              <include>images</include>

              </includes>

             

              </configuration>

              </plugin>

              </plugins>

            </build>

             

            <dependencies>

              <dependency>

                                          <groupId>com.adobe.flex.framework</groupId>

              <artifactId>framework</artifactId>

                                          <version>${flex.sdk.version}</version>

              <type>swc</type>

                                          <scope>caching</scope>

              </dependency>

             

              <dependency>

                                          <groupId>com.adobe.flex.framework</groupId>

              <artifactId>flex-framework</artifactId>

                                          <version>${flex.sdk.version}</version>

              <type>pom</type>

              </dependency>

              <dependency>

                                          <groupId>com.adobe.flex.framework</groupId>

              <artifactId>mobilecomponents</artifactId>

                                          <version>${flex.sdk.version}</version>

              <type>swc</type>

              </dependency>

              <dependency>

                                          <groupId>com.adobe.flex</groupId>

              <artifactId>fiber</artifactId>

                                          <version>4.5.0.308971</version>

              <type>swc</type>

              </dependency>

             

              <dependency>

                                          <groupId>com.adobe.flex</groupId>

              <artifactId>serializers</artifactId>

                                          <version>4.5.0.308971</version>

              <type>swc</type>

              </dependency>

            </dependencies>

             

             

            <pluginRepositories>

              <pluginRepository>

                                          <id>flex-mojos-repository-sites</id>

                                          <url>https://repository.sonatype.org/content/sites/flexmojos-site/</url>

              <releases>

              <enabled>true</enabled>

              </releases>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              </pluginRepository>

              <pluginRepository>

                                          <id>flex-mojos-repository</id>

                                          <url>http://repository.sonatype.org/content/groups/flexgroup/</url>

              <releases>

              <enabled>true</enabled>

              </releases>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              </pluginRepository>

              <pluginRepository>

                                          <id>yelbota-dropbox-repo</id>

                                          <url>http://dl.dropbox.com/u/36020926/maven/</url>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              <releases>

              <enabled>true</enabled>

              </releases>

              </pluginRepository>

              <pluginRepository>

                                          <id>sinusgear</id>

                                          <url>http://maven.sinusgear.com/maven_repo/</url>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              <releases>

              <enabled>true</enabled>

              </releases>

              </pluginRepository>

            </pluginRepositories>

             

            <repositories>

              <repository>

                                          <id>flex-mojos-repository-sites</id>

                                          <url>https://repository.sonatype.org/content/sites/flexmojos-site/</url>

              <releases>

              <enabled>true</enabled>

              </releases>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              </repository>

              <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>yelbota-dropbox-repo</id>

                                          <url>http://dl.dropbox.com/u/36020926/maven/</url>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              <releases>

              <enabled>true</enabled>

              </releases>

              </repository>

              <repository>

                                          <id>sinusgear</id>

                                          <url>http://maven.sinusgear.com/maven_repo/</url>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              <releases>

              <enabled>true</enabled>

              </releases>

              </repository>

            </repositories>

            </project>