You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Dmitry Timoshenko <wo...@gmail.com> on 2013/10/28 17:02:10 UTC

Using flexmojos maven plugin to build AIR mobile application

I have dial with AIR mobile application based on
's:ViewNavigatorApplication'. I use Apache Flex SDK 4.10 and Flexmojos
plugin 6.0.1 and JetBrains IDEA 12.1.4

I made 'pom.xml', added 'air-framework' dependencies. The IDE imported
it successfully and made the project configuration. The dependencies
are shown under the 'Extranl Libraries' node, I can see it. But I
don't see ViewNavigatorApplication class, I only see
WindowedApplication. The 'pom.xml' loads 'airmobile-config.xml'. When
I try to compile it, I get the error 'Error: Could not resolve
's:ViewNavigatorApplication' to a component implementation'. I will
soon tear my hair out from my head.

Here is the pom.xml I use.

<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>
  <name>Mobile Catalog</name>
  <parent>
    <groupId>com.uni.versal</groupId>
    <artifactId>versal</artifactId>
    <version>2.0-SNAPSHOT</version>
  </parent>
  <artifactId>mobile-catalog</artifactId>
  <packaging>air</packaging>

  <properties>
    <!--the application name which must match the main mxml file-->
    <!--and application descriptor file names -->
    <application.name>MobileCatalog</application.name>
  </properties>

  <build>
    <directory>${project.basedir}/target</directory>
    <finalName>${project.artifactId}</finalName>
    <sourceDirectory>src/main/flex</sourceDirectory>

    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <extensions>true</extensions>

        <dependencies>
          <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>${flex.version}</version>
            <type>pom</type>
          </dependency>
          <dependency>
            <groupId>com.adobe.air</groupId>
            <artifactId>compiler</artifactId>
            <version>${air.version}</version>
            <type>pom</type>
          </dependency>
        </dependencies>

        <configuration>
          <!--<targetPlayer>11</targetPlayer>-->
          <swfVersion>13</swfVersion>
          <flexBuilderCompatibility>true</flexBuilderCompatibility>
          <loadConfig>${settings.localRepository}/com/adobe/flex/framework/framework/${flex.version}/configs_zip/airmobile-config.xml</loadConfig>
          <sourceFile>${application.name}.mxml</sourceFile>
          <descriptorTemplate>${basedir}/src/main/flex/${application.name}-app.xml</descriptorTemplate>
          <!--<configurationReport>true</configurationReport>-->

          <keystore>${project.basedir}/mobile_catalog.p12</keystore>
          <storepass>asdf</storepass>

          <!--optionally include files in the AIR package -->
          <includeFileSets>
            <fileSet>
              <directory>src/main/resources</directory>
              <includes>
                <include>*.*</include>
              </includes>
            </fileSet>
          </includeFileSets>

          <storepass></storepass>
          <contextRoot>versal</contextRoot>
          <!--<localesCompiled>-->
            <!--<locale>en_US</locale>-->
            <!--<locale>ru_RU</locale>-->
          <!--</localesCompiled>-->
          <localesSourcePath>src/main/locales/{locale}</localesSourcePath>

          <defines>
            <property>
              <name>CONFIG::debug</name>
              <value>true</value>
            </property>
            <property>
              <name>CONFIG::release</name>
              <value>false</value>
            </property>
          </defines>

          <debug>true</debug>
          <optimize>false</optimize>
        </configuration>

        <executions>
          <execution>
            <goals>
              <goal>sign-air</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>com.adobe.flex.framework.air</groupId>
      <artifactId>air-framework</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>
  </dependencies>
</project>

AW: AW: AW: Using flexmojos maven plugin to build AIR mobile application

Posted by "christofer.dutz@c-ware.de" <ch...@c-ware.de>.
Hi,

glad you got a Little further :-)
Well I usually specify themes using a dependency with scope=theme.

<dependency>

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

    <artifactId>mobile</artifactId>

    <version>4.11.0.20131017</version>

    <type>swc</type>

   <scope>theme</scope>

</dependency>


And leave away the "themes" section in the plugin configuration.

Chris

________________________________________
Von: whityfenix [workingfenix@gmail.com]
Gesendet: Dienstag, 5. November 2013 15:16
An: users@flex.apache.org
Betreff: Re: AW: AW: Using flexmojos maven plugin to build AIR mobile application

Thank you, Chris,

It seems everything works except one moment.
Can you please tell me one more thing. How do I properly add theme?

Now I have the error:

Error: The style 'showPromptWhenFocused' is only supported by type
'spark.components.TextInput' with the theme(s) 'mobile'.

I tried adding the dependency like this

    <dependency>
      <groupId>com.adobe.flex.framework.themes</groupId>
      <artifactId>mobile</artifactId>
      <version>${flex.version}</version>
      <type>swc</type>
    </dependency>

And then I added this

<themes>
<theme>${settings.localRepository}/com/adobe/flex/framework/themes/mobile/${flex.version}/mobile-${flex.version}.swc</theme>
</themes>

Is it right?



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Using-flexmojos-maven-plugin-to-build-AIR-mobile-application-tp3357p3534.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: Using flexmojos maven plugin to build AIR mobile application

Posted by whityfenix <wo...@gmail.com>.
Thank you, Chris,

It seems everything works except one moment. 
Can you please tell me one more thing. How do I properly add theme?

Now I have the error:  

Error: The style 'showPromptWhenFocused' is only supported by type
'spark.components.TextInput' with the theme(s) 'mobile'.

I tried adding the dependency like this

    <dependency>
      <groupId>com.adobe.flex.framework.themes</groupId>
      <artifactId>mobile</artifactId>
      <version>${flex.version}</version>
      <type>swc</type>
    </dependency>

And then I added this

<themes>
<theme>${settings.localRepository}/com/adobe/flex/framework/themes/mobile/${flex.version}/mobile-${flex.version}.swc</theme>
</themes>

Is it right?



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Using-flexmojos-maven-plugin-to-build-AIR-mobile-application-tp3357p3534.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

AW: AW: Using flexmojos maven plugin to build AIR mobile application

Posted by "christofer.dutz@c-ware.de" <ch...@c-ware.de>.
Hi,

<dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>mobile</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
</dependency>

is only used for dependencyManagement ... in your case this is completely useless.
You Need to Change your other dependency to:

<dependency>
      <groupId>com.adobe.flex.framework.mobile</groupId>
      <artifactId>mobilecomponents</artifactId>
      <version>${flex.version}</version>
      <type>swc</type>
    </dependency>


in order do actually get the artifact you are looking for.


Chris


________________________________________
Von: whityfenix [workingfenix@gmail.com]
Gesendet: Dienstag, 5. November 2013 14:14
An: users@flex.apache.org
Betreff: Re: AW: Using flexmojos maven plugin to build AIR mobile application

Thanx, it made me little bit closer to resolving the issue.
I added

    <dependency>
      <groupId>com.adobe.flex.framework.mobile</groupId>
      <artifactId>mobilecomponents</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>

It's found but really SWC is not downloaded from the repository...
when I download mobilecomponents.swc manually and designate <type>swc</type>
the dependency attached. But I think It should be made automatically.

I tried to add (it has referencies to above pom)

    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>mobile</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>

but this also doesn't work. It seems I do something wrong...

${flex.version} = 4.10.0.20130801

For example, for right specified dependencies (air-framework) I can expand
pom node (in Maven Projects window, IDEA) until .swc leafs, but for those I
see pom node not having children nodes.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Using-flexmojos-maven-plugin-to-build-AIR-mobile-application-tp3357p3532.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: Using flexmojos maven plugin to build AIR mobile application

Posted by whityfenix <wo...@gmail.com>.
Thanx, it made me little bit closer to resolving the issue. 
I added

    <dependency>
      <groupId>com.adobe.flex.framework.mobile</groupId>
      <artifactId>mobilecomponents</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>

It's found but really SWC is not downloaded from the repository...
when I download mobilecomponents.swc manually and designate <type>swc</type> 
the dependency attached. But I think It should be made automatically.

I tried to add (it has referencies to above pom)

    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>mobile</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>

but this also doesn't work. It seems I do something wrong...

${flex.version} = 4.10.0.20130801

For example, for right specified dependencies (air-framework) I can expand
pom node (in Maven Projects window, IDEA) until .swc leafs, but for those I
see pom node not having children nodes.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Using-flexmojos-maven-plugin-to-build-AIR-mobile-application-tp3357p3532.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

AW: Using flexmojos maven plugin to build AIR mobile application

Posted by "christofer.dutz@c-ware.de" <ch...@c-ware.de>.
Hi Maurice,

just had another look. It seems that you are missing a dependency to the mobile-components.

    <groupId>com.adobe.flex.framework.mobile</groupId>
    <artifactId>mobilecomponents</artifactId>
    <version>4.11.0.20131017</version>

Try adding that to your project, eventually this should get you a little further.

Chris

-----Ursprüngliche Nachricht-----
Von: Maurice Amsellem [mailto:maurice.amsellem@systar.com] 
Gesendet: Montag, 28. Oktober 2013 17:22
An: users@flex.apache.org
Betreff: RE: Using flexmojos maven plugin to build AIR mobile application

I am not familiar with FM, but usually, when I have these kind of errors,  I add a -dump-config to the compiler options.
You could also have a look at the temp config.xml that is automatically generated by IDEA when you compile a module.
It's located in C:\Users\<user>\AppData\Local\Temp\IntelliJ_IDEA

BTW, are you a relative of Ioulia Timochenko ?

Maurice 

-----Message d'origine-----
De : Dmitry Timoshenko [mailto:workingfenix@gmail.com] Envoyé : lundi 28 octobre 2013 17:02 À : users@flex.apache.org Objet : Using flexmojos maven plugin to build AIR mobile application

I have dial with AIR mobile application based on 's:ViewNavigatorApplication'. I use Apache Flex SDK 4.10 and Flexmojos plugin 6.0.1 and JetBrains IDEA 12.1.4

I made 'pom.xml', added 'air-framework' dependencies. The IDE imported it successfully and made the project configuration. The dependencies are shown under the 'Extranl Libraries' node, I can see it. But I don't see ViewNavigatorApplication class, I only see WindowedApplication. The 'pom.xml' loads 'airmobile-config.xml'. When I try to compile it, I get the error 'Error: Could not resolve 's:ViewNavigatorApplication' to a component implementation'. I will soon tear my hair out from my head.

Here is the pom.xml I use.

<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>
  <name>Mobile Catalog</name>
  <parent>
    <groupId>com.uni.versal</groupId>
    <artifactId>versal</artifactId>
    <version>2.0-SNAPSHOT</version>
  </parent>
  <artifactId>mobile-catalog</artifactId>
  <packaging>air</packaging>

  <properties>
    <!--the application name which must match the main mxml file-->
    <!--and application descriptor file names -->
    <application.name>MobileCatalog</application.name>
  </properties>

  <build>
    <directory>${project.basedir}/target</directory>
    <finalName>${project.artifactId}</finalName>
    <sourceDirectory>src/main/flex</sourceDirectory>

    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <extensions>true</extensions>

        <dependencies>
          <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>${flex.version}</version>
            <type>pom</type>
          </dependency>
          <dependency>
            <groupId>com.adobe.air</groupId>
            <artifactId>compiler</artifactId>
            <version>${air.version}</version>
            <type>pom</type>
          </dependency>
        </dependencies>

        <configuration>
          <!--<targetPlayer>11</targetPlayer>-->
          <swfVersion>13</swfVersion>
          <flexBuilderCompatibility>true</flexBuilderCompatibility>
          <loadConfig>${settings.localRepository}/com/adobe/flex/framework/framework/${flex.version}/configs_zip/airmobile-config.xml</loadConfig>
          <sourceFile>${application.name}.mxml</sourceFile>
          <descriptorTemplate>${basedir}/src/main/flex/${application.name}-app.xml</descriptorTemplate>
          <!--<configurationReport>true</configurationReport>-->

          <keystore>${project.basedir}/mobile_catalog.p12</keystore>
          <storepass>asdf</storepass>

          <!--optionally include files in the AIR package -->
          <includeFileSets>
            <fileSet>
              <directory>src/main/resources</directory>
              <includes>
                <include>*.*</include>
              </includes>
            </fileSet>
          </includeFileSets>

          <storepass></storepass>
          <contextRoot>versal</contextRoot>
          <!--<localesCompiled>-->
            <!--<locale>en_US</locale>-->
            <!--<locale>ru_RU</locale>-->
          <!--</localesCompiled>-->
          <localesSourcePath>src/main/locales/{locale}</localesSourcePath>

          <defines>
            <property>
              <name>CONFIG::debug</name>
              <value>true</value>
            </property>
            <property>
              <name>CONFIG::release</name>
              <value>false</value>
            </property>
          </defines>

          <debug>true</debug>
          <optimize>false</optimize>
        </configuration>

        <executions>
          <execution>
            <goals>
              <goal>sign-air</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>com.adobe.flex.framework.air</groupId>
      <artifactId>air-framework</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>
  </dependencies>
</project>

Re: Using flexmojos maven plugin to build AIR mobile application

Posted by Dmitry Timoshenko <wo...@gmail.com>.
I searched 'c:\users' for '*config*.xml' and didn't  find any valueable stuff.
I have 'mobile-catalog-configs.xml' in the ./target/ subdirectory of
the project's folder.
I have no idea how to use the information in this file in order to
find out what exactly occurs.
I see the <flex-config> tag, everything inside it looks fine,
references to the 4.10 flex sdk libraries,
references to the 3.8 air sdk. Another compiler options also looks as
I think they should.

For instance it make to load
<theme>
         <filename>C:\Users\yury\.m2\repository\com\adobe\flex\framework\themes\spark\4.10.0.20130801\spark-4.10.0.20130801.swc</filename>
</theme>
It also sets up the target runtime as
      <mobile>true</mobile>

In the 'pom.xml' I added
<dumpConfigAttach>true</dumpConfigAttach>
into <configuration> section of the FM plugin, nothing changed... I
have the same configuration dump as before.

---
2everybody: Sorry for offtopic:

May be I would like to say yes, but really no, however people are
brothers and sisters to each other Jesus said. ;)
I don't know who she really is, I heard how she speaks and she is
prisoned now... seems somebody afraid her

Thanx.

2013/10/28 Maurice Amsellem <ma...@systar.com>:
> I am not familiar with FM, but usually, when I have these kind of errors,  I add a -dump-config to the compiler options.
> You could also have a look at the temp config.xml that is automatically generated by IDEA when you compile a module.
> It's located in C:\Users\<user>\AppData\Local\Temp\IntelliJ_IDEA
>
> BTW, are you a relative of Ioulia Timochenko ?
>
> Maurice
>
> -----Message d'origine-----
> De : Dmitry Timoshenko [mailto:workingfenix@gmail.com]
> Envoyé : lundi 28 octobre 2013 17:02
> À : users@flex.apache.org
> Objet : Using flexmojos maven plugin to build AIR mobile application
>
> I have dial with AIR mobile application based on 's:ViewNavigatorApplication'. I use Apache Flex SDK 4.10 and Flexmojos plugin 6.0.1 and JetBrains IDEA 12.1.4
>
> I made 'pom.xml', added 'air-framework' dependencies. The IDE imported it successfully and made the project configuration. The dependencies are shown under the 'Extranl Libraries' node, I can see it. But I don't see ViewNavigatorApplication class, I only see WindowedApplication. The 'pom.xml' loads 'airmobile-config.xml'. When I try to compile it, I get the error 'Error: Could not resolve 's:ViewNavigatorApplication' to a component implementation'. I will soon tear my hair out from my head.
>
> Here is the pom.xml I use.
>
> <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>
>   <name>Mobile Catalog</name>
>   <parent>
>     <groupId>com.uni.versal</groupId>
>     <artifactId>versal</artifactId>
>     <version>2.0-SNAPSHOT</version>
>   </parent>
>   <artifactId>mobile-catalog</artifactId>
>   <packaging>air</packaging>
>
>   <properties>
>     <!--the application name which must match the main mxml file-->
>     <!--and application descriptor file names -->
>     <application.name>MobileCatalog</application.name>
>   </properties>
>
>   <build>
>     <directory>${project.basedir}/target</directory>
>     <finalName>${project.artifactId}</finalName>
>     <sourceDirectory>src/main/flex</sourceDirectory>
>
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>       </resource>
>     </resources>
>
>     <plugins>
>       <plugin>
>         <groupId>net.flexmojos.oss</groupId>
>         <artifactId>flexmojos-maven-plugin</artifactId>
>         <extensions>true</extensions>
>
>         <dependencies>
>           <dependency>
>             <groupId>com.adobe.flex</groupId>
>             <artifactId>compiler</artifactId>
>             <version>${flex.version}</version>
>             <type>pom</type>
>           </dependency>
>           <dependency>
>             <groupId>com.adobe.air</groupId>
>             <artifactId>compiler</artifactId>
>             <version>${air.version}</version>
>             <type>pom</type>
>           </dependency>
>         </dependencies>
>
>         <configuration>
>           <!--<targetPlayer>11</targetPlayer>-->
>           <swfVersion>13</swfVersion>
>           <flexBuilderCompatibility>true</flexBuilderCompatibility>
>           <loadConfig>${settings.localRepository}/com/adobe/flex/framework/framework/${flex.version}/configs_zip/airmobile-config.xml</loadConfig>
>           <sourceFile>${application.name}.mxml</sourceFile>
>           <descriptorTemplate>${basedir}/src/main/flex/${application.name}-app.xml</descriptorTemplate>
>           <!--<configurationReport>true</configurationReport>-->
>
>           <keystore>${project.basedir}/mobile_catalog.p12</keystore>
>           <storepass>asdf</storepass>
>
>           <!--optionally include files in the AIR package -->
>           <includeFileSets>
>             <fileSet>
>               <directory>src/main/resources</directory>
>               <includes>
>                 <include>*.*</include>
>               </includes>
>             </fileSet>
>           </includeFileSets>
>
>           <storepass></storepass>
>           <contextRoot>versal</contextRoot>
>           <!--<localesCompiled>-->
>             <!--<locale>en_US</locale>-->
>             <!--<locale>ru_RU</locale>-->
>           <!--</localesCompiled>-->
>           <localesSourcePath>src/main/locales/{locale}</localesSourcePath>
>
>           <defines>
>             <property>
>               <name>CONFIG::debug</name>
>               <value>true</value>
>             </property>
>             <property>
>               <name>CONFIG::release</name>
>               <value>false</value>
>             </property>
>           </defines>
>
>           <debug>true</debug>
>           <optimize>false</optimize>
>         </configuration>
>
>         <executions>
>           <execution>
>             <goals>
>               <goal>sign-air</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>
>
>   <dependencies>
>     <dependency>
>       <groupId>com.adobe.flex.framework.air</groupId>
>       <artifactId>air-framework</artifactId>
>       <version>${flex.version}</version>
>       <type>pom</type>
>     </dependency>
>   </dependencies>
> </project>

RE: Using flexmojos maven plugin to build AIR mobile application

Posted by Maurice Amsellem <ma...@systar.com>.
I am not familiar with FM, but usually, when I have these kind of errors,  I add a -dump-config to the compiler options.
You could also have a look at the temp config.xml that is automatically generated by IDEA when you compile a module.
It's located in C:\Users\<user>\AppData\Local\Temp\IntelliJ_IDEA

BTW, are you a relative of Ioulia Timochenko ?

Maurice 

-----Message d'origine-----
De : Dmitry Timoshenko [mailto:workingfenix@gmail.com] 
Envoyé : lundi 28 octobre 2013 17:02
À : users@flex.apache.org
Objet : Using flexmojos maven plugin to build AIR mobile application

I have dial with AIR mobile application based on 's:ViewNavigatorApplication'. I use Apache Flex SDK 4.10 and Flexmojos plugin 6.0.1 and JetBrains IDEA 12.1.4

I made 'pom.xml', added 'air-framework' dependencies. The IDE imported it successfully and made the project configuration. The dependencies are shown under the 'Extranl Libraries' node, I can see it. But I don't see ViewNavigatorApplication class, I only see WindowedApplication. The 'pom.xml' loads 'airmobile-config.xml'. When I try to compile it, I get the error 'Error: Could not resolve 's:ViewNavigatorApplication' to a component implementation'. I will soon tear my hair out from my head.

Here is the pom.xml I use.

<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>
  <name>Mobile Catalog</name>
  <parent>
    <groupId>com.uni.versal</groupId>
    <artifactId>versal</artifactId>
    <version>2.0-SNAPSHOT</version>
  </parent>
  <artifactId>mobile-catalog</artifactId>
  <packaging>air</packaging>

  <properties>
    <!--the application name which must match the main mxml file-->
    <!--and application descriptor file names -->
    <application.name>MobileCatalog</application.name>
  </properties>

  <build>
    <directory>${project.basedir}/target</directory>
    <finalName>${project.artifactId}</finalName>
    <sourceDirectory>src/main/flex</sourceDirectory>

    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <extensions>true</extensions>

        <dependencies>
          <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>${flex.version}</version>
            <type>pom</type>
          </dependency>
          <dependency>
            <groupId>com.adobe.air</groupId>
            <artifactId>compiler</artifactId>
            <version>${air.version}</version>
            <type>pom</type>
          </dependency>
        </dependencies>

        <configuration>
          <!--<targetPlayer>11</targetPlayer>-->
          <swfVersion>13</swfVersion>
          <flexBuilderCompatibility>true</flexBuilderCompatibility>
          <loadConfig>${settings.localRepository}/com/adobe/flex/framework/framework/${flex.version}/configs_zip/airmobile-config.xml</loadConfig>
          <sourceFile>${application.name}.mxml</sourceFile>
          <descriptorTemplate>${basedir}/src/main/flex/${application.name}-app.xml</descriptorTemplate>
          <!--<configurationReport>true</configurationReport>-->

          <keystore>${project.basedir}/mobile_catalog.p12</keystore>
          <storepass>asdf</storepass>

          <!--optionally include files in the AIR package -->
          <includeFileSets>
            <fileSet>
              <directory>src/main/resources</directory>
              <includes>
                <include>*.*</include>
              </includes>
            </fileSet>
          </includeFileSets>

          <storepass></storepass>
          <contextRoot>versal</contextRoot>
          <!--<localesCompiled>-->
            <!--<locale>en_US</locale>-->
            <!--<locale>ru_RU</locale>-->
          <!--</localesCompiled>-->
          <localesSourcePath>src/main/locales/{locale}</localesSourcePath>

          <defines>
            <property>
              <name>CONFIG::debug</name>
              <value>true</value>
            </property>
            <property>
              <name>CONFIG::release</name>
              <value>false</value>
            </property>
          </defines>

          <debug>true</debug>
          <optimize>false</optimize>
        </configuration>

        <executions>
          <execution>
            <goals>
              <goal>sign-air</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>com.adobe.flex.framework.air</groupId>
      <artifactId>air-framework</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>
  </dependencies>
</project>

AW: Using flexmojos maven plugin to build AIR mobile application

Posted by "christofer.dutz@c-ware.de" <ch...@c-ware.de>.
Hi 

The "Howto upgrade" document is here: https://flexmojos.atlassian.net/wiki/display/FLEXMOJOS/Migrating+to+6.x
And I was happy to see that I seemed to have allready written an air-section :-)

But you are right, I think this is only for Desktop AIR applicaitons. I have never done any mobile Air.

Regarding Mobile ... I think there was a lot of traffic on the FM list from People asking for mobile Support back in the Days where Velo was still maintaining it. I think he wanted this to be part of his Commercial FM Enterprise. What would have to be changed in order to have mobile Support? Is this just different SWF dependencies, or does something have to be changed with the Compiler configuration? 
Think this might be something I should implement besides switching FM to the "org.apache.flex" GroupId.
(Open Question to anyone on this List)


Hope that helps,
   Chris

________________________________________
Von: Dmitry Timoshenko [workingfenix@gmail.com]
Gesendet: Dienstag, 29. Oktober 2013 13:20
An: users@flex.apache.org
Betreff: Re: Using flexmojos maven plugin to build AIR mobile application

Thank you, Christofer,

But, unfortunately, this doesn't work for me.
I already have this within dependencies attached implicitly.

I have only one dependency specified explicitly.

    <dependency>
      <groupId>com.adobe.flex.framework.air</groupId>
      <artifactId>air-framework</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>

It depends on number of libs and the 'airglobal' among them.
I can see it in the IDE 'Maven Project' window:
com.adobe.flex.framework.air:air-framework ->
com.adobe.air.framework:common-framework ->
com.adobe.air.framework:airglobal

Could you please give me a link to 'Flash example' you are talking about?

It seems I have Desktop Air libs package. I see
spark.components.WindowedApplication class. For some reason mobile
classes are not added...(
I need AIR for mobile platforms.

ps: I tried to set it (airglobal) explicitly, but nothing changed


2013/10/29 christofer.dutz@c-ware.de <ch...@c-ware.de>:
> In order to cleanly separate the Flex and the Air Runtime Version, I split them up, so you Need to add a dependency to <artifactId>air-framework</artifactId> as well as the <artifactId>airglobal</artifactId> Version you want to use. Without the second dependency you only have the Flex classes available without the Air Basics.
>
> Have a look at the Flash example ... think I should Whip-up an example config for air application on the flexmojos wiki ... sorry for skipping that.
>
> <dependency>
>
>     <groupId>com.adobe.air.framework</groupId>
>
>     <artifactId>airglobal</artifactId>
>
>     <version>3.8</version>
>
>     <type>swc</type>
>
> </dependency>
>
>
> (Assuming you want to use Air 3.8)
>
> Chris
>
> ________________________________________
> Von: Dmitry Timoshenko [workingfenix@gmail.com]
> Gesendet: Montag, 28. Oktober 2013 17:02
> An: users@flex.apache.org
> Betreff: Using flexmojos maven plugin to build AIR mobile application
>
> I have dial with AIR mobile application based on
> 's:ViewNavigatorApplication'. I use Apache Flex SDK 4.10 and Flexmojos
> plugin 6.0.1 and JetBrains IDEA 12.1.4
>
> I made 'pom.xml', added 'air-framework' dependencies. The IDE imported
> it successfully and made the project configuration. The dependencies
> are shown under the 'Extranl Libraries' node, I can see it. But I
> don't see ViewNavigatorApplication class, I only see
> WindowedApplication. The 'pom.xml' loads 'airmobile-config.xml'. When
> I try to compile it, I get the error 'Error: Could not resolve
> 's:ViewNavigatorApplication' to a component implementation'. I will
> soon tear my hair out from my head.
>
> Here is the pom.xml I use.
>
> <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>
>   <name>Mobile Catalog</name>
>   <parent>
>     <groupId>com.uni.versal</groupId>
>     <artifactId>versal</artifactId>
>     <version>2.0-SNAPSHOT</version>
>   </parent>
>   <artifactId>mobile-catalog</artifactId>
>   <packaging>air</packaging>
>
>   <properties>
>     <!--the application name which must match the main mxml file-->
>     <!--and application descriptor file names -->
>     <application.name>MobileCatalog</application.name>
>   </properties>
>
>   <build>
>     <directory>${project.basedir}/target</directory>
>     <finalName>${project.artifactId}</finalName>
>     <sourceDirectory>src/main/flex</sourceDirectory>
>
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>       </resource>
>     </resources>
>
>     <plugins>
>       <plugin>
>         <groupId>net.flexmojos.oss</groupId>
>         <artifactId>flexmojos-maven-plugin</artifactId>
>         <extensions>true</extensions>
>
>         <dependencies>
>           <dependency>
>             <groupId>com.adobe.flex</groupId>
>             <artifactId>compiler</artifactId>
>             <version>${flex.version}</version>
>             <type>pom</type>
>           </dependency>
>           <dependency>
>             <groupId>com.adobe.air</groupId>
>             <artifactId>compiler</artifactId>
>             <version>${air.version}</version>
>             <type>pom</type>
>           </dependency>
>         </dependencies>
>
>         <configuration>
>           <!--<targetPlayer>11</targetPlayer>-->
>           <swfVersion>13</swfVersion>
>           <flexBuilderCompatibility>true</flexBuilderCompatibility>
>           <loadConfig>${settings.localRepository}/com/adobe/flex/framework/framework/${flex.version}/configs_zip/airmobile-config.xml</loadConfig>
>           <sourceFile>${application.name}.mxml</sourceFile>
>           <descriptorTemplate>${basedir}/src/main/flex/${application.name}-app.xml</descriptorTemplate>
>           <!--<configurationReport>true</configurationReport>-->
>
>           <keystore>${project.basedir}/mobile_catalog.p12</keystore>
>           <storepass>asdf</storepass>
>
>           <!--optionally include files in the AIR package -->
>           <includeFileSets>
>             <fileSet>
>               <directory>src/main/resources</directory>
>               <includes>
>                 <include>*.*</include>
>               </includes>
>             </fileSet>
>           </includeFileSets>
>
>           <storepass></storepass>
>           <contextRoot>versal</contextRoot>
>           <!--<localesCompiled>-->
>             <!--<locale>en_US</locale>-->
>             <!--<locale>ru_RU</locale>-->
>           <!--</localesCompiled>-->
>           <localesSourcePath>src/main/locales/{locale}</localesSourcePath>
>
>           <defines>
>             <property>
>               <name>CONFIG::debug</name>
>               <value>true</value>
>             </property>
>             <property>
>               <name>CONFIG::release</name>
>               <value>false</value>
>             </property>
>           </defines>
>
>           <debug>true</debug>
>           <optimize>false</optimize>
>         </configuration>
>
>         <executions>
>           <execution>
>             <goals>
>               <goal>sign-air</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>
>
>   <dependencies>
>     <dependency>
>       <groupId>com.adobe.flex.framework.air</groupId>
>       <artifactId>air-framework</artifactId>
>       <version>${flex.version}</version>
>       <type>pom</type>
>     </dependency>
>   </dependencies>
> </project>

Re: Using flexmojos maven plugin to build AIR mobile application

Posted by Dmitry Timoshenko <wo...@gmail.com>.
Thank you, Christofer,

But, unfortunately, this doesn't work for me.
I already have this within dependencies attached implicitly.

I have only one dependency specified explicitly.

    <dependency>
      <groupId>com.adobe.flex.framework.air</groupId>
      <artifactId>air-framework</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>

It depends on number of libs and the 'airglobal' among them.
I can see it in the IDE 'Maven Project' window:
com.adobe.flex.framework.air:air-framework ->
com.adobe.air.framework:common-framework ->
com.adobe.air.framework:airglobal

Could you please give me a link to 'Flash example' you are talking about?

It seems I have Desktop Air libs package. I see
spark.components.WindowedApplication class. For some reason mobile
classes are not added...(
I need AIR for mobile platforms.

ps: I tried to set it (airglobal) explicitly, but nothing changed


2013/10/29 christofer.dutz@c-ware.de <ch...@c-ware.de>:
> In order to cleanly separate the Flex and the Air Runtime Version, I split them up, so you Need to add a dependency to <artifactId>air-framework</artifactId> as well as the <artifactId>airglobal</artifactId> Version you want to use. Without the second dependency you only have the Flex classes available without the Air Basics.
>
> Have a look at the Flash example ... think I should Whip-up an example config for air application on the flexmojos wiki ... sorry for skipping that.
>
> <dependency>
>
>     <groupId>com.adobe.air.framework</groupId>
>
>     <artifactId>airglobal</artifactId>
>
>     <version>3.8</version>
>
>     <type>swc</type>
>
> </dependency>
>
>
> (Assuming you want to use Air 3.8)
>
> Chris
>
> ________________________________________
> Von: Dmitry Timoshenko [workingfenix@gmail.com]
> Gesendet: Montag, 28. Oktober 2013 17:02
> An: users@flex.apache.org
> Betreff: Using flexmojos maven plugin to build AIR mobile application
>
> I have dial with AIR mobile application based on
> 's:ViewNavigatorApplication'. I use Apache Flex SDK 4.10 and Flexmojos
> plugin 6.0.1 and JetBrains IDEA 12.1.4
>
> I made 'pom.xml', added 'air-framework' dependencies. The IDE imported
> it successfully and made the project configuration. The dependencies
> are shown under the 'Extranl Libraries' node, I can see it. But I
> don't see ViewNavigatorApplication class, I only see
> WindowedApplication. The 'pom.xml' loads 'airmobile-config.xml'. When
> I try to compile it, I get the error 'Error: Could not resolve
> 's:ViewNavigatorApplication' to a component implementation'. I will
> soon tear my hair out from my head.
>
> Here is the pom.xml I use.
>
> <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>
>   <name>Mobile Catalog</name>
>   <parent>
>     <groupId>com.uni.versal</groupId>
>     <artifactId>versal</artifactId>
>     <version>2.0-SNAPSHOT</version>
>   </parent>
>   <artifactId>mobile-catalog</artifactId>
>   <packaging>air</packaging>
>
>   <properties>
>     <!--the application name which must match the main mxml file-->
>     <!--and application descriptor file names -->
>     <application.name>MobileCatalog</application.name>
>   </properties>
>
>   <build>
>     <directory>${project.basedir}/target</directory>
>     <finalName>${project.artifactId}</finalName>
>     <sourceDirectory>src/main/flex</sourceDirectory>
>
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>       </resource>
>     </resources>
>
>     <plugins>
>       <plugin>
>         <groupId>net.flexmojos.oss</groupId>
>         <artifactId>flexmojos-maven-plugin</artifactId>
>         <extensions>true</extensions>
>
>         <dependencies>
>           <dependency>
>             <groupId>com.adobe.flex</groupId>
>             <artifactId>compiler</artifactId>
>             <version>${flex.version}</version>
>             <type>pom</type>
>           </dependency>
>           <dependency>
>             <groupId>com.adobe.air</groupId>
>             <artifactId>compiler</artifactId>
>             <version>${air.version}</version>
>             <type>pom</type>
>           </dependency>
>         </dependencies>
>
>         <configuration>
>           <!--<targetPlayer>11</targetPlayer>-->
>           <swfVersion>13</swfVersion>
>           <flexBuilderCompatibility>true</flexBuilderCompatibility>
>           <loadConfig>${settings.localRepository}/com/adobe/flex/framework/framework/${flex.version}/configs_zip/airmobile-config.xml</loadConfig>
>           <sourceFile>${application.name}.mxml</sourceFile>
>           <descriptorTemplate>${basedir}/src/main/flex/${application.name}-app.xml</descriptorTemplate>
>           <!--<configurationReport>true</configurationReport>-->
>
>           <keystore>${project.basedir}/mobile_catalog.p12</keystore>
>           <storepass>asdf</storepass>
>
>           <!--optionally include files in the AIR package -->
>           <includeFileSets>
>             <fileSet>
>               <directory>src/main/resources</directory>
>               <includes>
>                 <include>*.*</include>
>               </includes>
>             </fileSet>
>           </includeFileSets>
>
>           <storepass></storepass>
>           <contextRoot>versal</contextRoot>
>           <!--<localesCompiled>-->
>             <!--<locale>en_US</locale>-->
>             <!--<locale>ru_RU</locale>-->
>           <!--</localesCompiled>-->
>           <localesSourcePath>src/main/locales/{locale}</localesSourcePath>
>
>           <defines>
>             <property>
>               <name>CONFIG::debug</name>
>               <value>true</value>
>             </property>
>             <property>
>               <name>CONFIG::release</name>
>               <value>false</value>
>             </property>
>           </defines>
>
>           <debug>true</debug>
>           <optimize>false</optimize>
>         </configuration>
>
>         <executions>
>           <execution>
>             <goals>
>               <goal>sign-air</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>
>
>   <dependencies>
>     <dependency>
>       <groupId>com.adobe.flex.framework.air</groupId>
>       <artifactId>air-framework</artifactId>
>       <version>${flex.version}</version>
>       <type>pom</type>
>     </dependency>
>   </dependencies>
> </project>

AW: Using flexmojos maven plugin to build AIR mobile application

Posted by "christofer.dutz@c-ware.de" <ch...@c-ware.de>.
In order to cleanly separate the Flex and the Air Runtime Version, I split them up, so you Need to add a dependency to <artifactId>air-framework</artifactId> as well as the <artifactId>airglobal</artifactId> Version you want to use. Without the second dependency you only have the Flex classes available without the Air Basics.

Have a look at the Flash example ... think I should Whip-up an example config for air application on the flexmojos wiki ... sorry for skipping that.

<dependency>

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

    <artifactId>airglobal</artifactId>

    <version>3.8</version>

    <type>swc</type>

</dependency>


(Assuming you want to use Air 3.8)

Chris

________________________________________
Von: Dmitry Timoshenko [workingfenix@gmail.com]
Gesendet: Montag, 28. Oktober 2013 17:02
An: users@flex.apache.org
Betreff: Using flexmojos maven plugin to build AIR mobile application

I have dial with AIR mobile application based on
's:ViewNavigatorApplication'. I use Apache Flex SDK 4.10 and Flexmojos
plugin 6.0.1 and JetBrains IDEA 12.1.4

I made 'pom.xml', added 'air-framework' dependencies. The IDE imported
it successfully and made the project configuration. The dependencies
are shown under the 'Extranl Libraries' node, I can see it. But I
don't see ViewNavigatorApplication class, I only see
WindowedApplication. The 'pom.xml' loads 'airmobile-config.xml'. When
I try to compile it, I get the error 'Error: Could not resolve
's:ViewNavigatorApplication' to a component implementation'. I will
soon tear my hair out from my head.

Here is the pom.xml I use.

<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>
  <name>Mobile Catalog</name>
  <parent>
    <groupId>com.uni.versal</groupId>
    <artifactId>versal</artifactId>
    <version>2.0-SNAPSHOT</version>
  </parent>
  <artifactId>mobile-catalog</artifactId>
  <packaging>air</packaging>

  <properties>
    <!--the application name which must match the main mxml file-->
    <!--and application descriptor file names -->
    <application.name>MobileCatalog</application.name>
  </properties>

  <build>
    <directory>${project.basedir}/target</directory>
    <finalName>${project.artifactId}</finalName>
    <sourceDirectory>src/main/flex</sourceDirectory>

    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <extensions>true</extensions>

        <dependencies>
          <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>${flex.version}</version>
            <type>pom</type>
          </dependency>
          <dependency>
            <groupId>com.adobe.air</groupId>
            <artifactId>compiler</artifactId>
            <version>${air.version}</version>
            <type>pom</type>
          </dependency>
        </dependencies>

        <configuration>
          <!--<targetPlayer>11</targetPlayer>-->
          <swfVersion>13</swfVersion>
          <flexBuilderCompatibility>true</flexBuilderCompatibility>
          <loadConfig>${settings.localRepository}/com/adobe/flex/framework/framework/${flex.version}/configs_zip/airmobile-config.xml</loadConfig>
          <sourceFile>${application.name}.mxml</sourceFile>
          <descriptorTemplate>${basedir}/src/main/flex/${application.name}-app.xml</descriptorTemplate>
          <!--<configurationReport>true</configurationReport>-->

          <keystore>${project.basedir}/mobile_catalog.p12</keystore>
          <storepass>asdf</storepass>

          <!--optionally include files in the AIR package -->
          <includeFileSets>
            <fileSet>
              <directory>src/main/resources</directory>
              <includes>
                <include>*.*</include>
              </includes>
            </fileSet>
          </includeFileSets>

          <storepass></storepass>
          <contextRoot>versal</contextRoot>
          <!--<localesCompiled>-->
            <!--<locale>en_US</locale>-->
            <!--<locale>ru_RU</locale>-->
          <!--</localesCompiled>-->
          <localesSourcePath>src/main/locales/{locale}</localesSourcePath>

          <defines>
            <property>
              <name>CONFIG::debug</name>
              <value>true</value>
            </property>
            <property>
              <name>CONFIG::release</name>
              <value>false</value>
            </property>
          </defines>

          <debug>true</debug>
          <optimize>false</optimize>
        </configuration>

        <executions>
          <execution>
            <goals>
              <goal>sign-air</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>com.adobe.flex.framework.air</groupId>
      <artifactId>air-framework</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>
  </dependencies>
</project>