Hello,
Coming back after some testing and holidays...

I have now a full working Adobe AIR pom project !
To do it, I made some investigations with flex sdks on linux,
including with the adt tools.
Your previous answers was helpfull for proceeding this way, thanks.

I tried several combinations before finding this one.
This works for me with : flexmojos 4.1-beta, and flex framework
4.5.21328
There was some incorrect parameters both in pom and application
descriptor.
So, you have to check in pom :
  1. "compiler" then "adt" dependencies in the flexmojos-maven-plugin
  2. Same flex framework version, for air-framework dependency, and
for
      compiler and adt dependencies of the flexmojos-maven-plugin
  3. swfVersion=11 as configuration parameter of the flexmojos-maven-
plugin
  4. loadConfig with the air-config.xml of the flex sdk
In the application descriptor :
  1. Same application name string for id, filename, and name
  2. No version XML tag, but a versionNumber XML tag. I put ${version}
as value.
  3. The initialWindow XML tag contains the following tags :
                <content>${output}</content>
                <visible>true</visible>
The packaged air application in 4.5 is just fatter than with Flash
Builder 4.0 in my case.

Have a good flex and air year ;-)

Here is the working pom template (hope this helps).
Make sure you have access to the flexmojos maven repository in you .m2/
settings.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"; xmlns="http://
maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>OEA</groupId>
  <artifactId>OEA</artifactId>
  <version>0.6</version>
  <packaging>air</packaging>
  <name>OEA Portal</name>
  <properties>
     <application.name>OEAPortal</application.name>
     <flex.framework.version>4.5.1.21328</flex.framework.version>
     <flexmojos.version>4.1-beta</flexmojos.version>
     <flexunit.version>4.0-rc-1</flexunit.version>
     <sonar.language>flex</sonar.language>
     <sonar.dynamicAnalysis>false</sonar.dynamicAnalysis>
  </properties>
  <dependencies>
    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>air-framework</artifactId>
        <version>${flex.framework.version}</version>
      <type>pom</type>
    </dependency>
    <dependency>
      <groupId>com.adobe.flexunit</groupId>
      <artifactId>flexunit</artifactId>
      <version>${flexunit.version}</version>
      <type>swc</type>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <repositories>
  </repositories>
  <pluginRepositories>
  </pluginRepositories>
  <build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <testSourceDirectory>src/test/flex</testSourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.sonatype.flexmojos</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>${flexmojos.version}</version>
        <extensions>true</extensions>
        <dependencies>
          <dependency>
            <groupId>org.sonatype.flexmojos</groupId>
            <artifactId>flexmojos-threadlocaltoolkit-wrapper</
artifactId>
            <version>${flexmojos.version}</version>
          </dependency>
          <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>${flex.framework.version}</version>
            <type>pom</type>
          </dependency>
          <dependency>
            <groupId>com.adobe.flex.compiler</groupId>
            <artifactId>adt</artifactId>
            <version>${flex.framework.version}</version>
            <scope>compile</scope>
          </dependency>
        </dependencies>
        <configuration>
          <flexbuilderCompatibility>true</flexbuilderCompatibility>
          <swfVersion>11</swfVersion>
          <debug>true</debug>
          <loadConfig>${settings.localRepository}/com/adobe/flex/
framework/framework/${flex.framework.version}/configs_zip/air-
config.xml</loadConfig>
          <locales>
            <locale>en_US</locale>
            <locale>fr_FR</locale>
          </locales>
          <localesCompiled>
            <locale>en_US</locale>
            <locale>fr_FR</locale>
          </localesCompiled>
          <mergeResourceBundle>true</mergeResourceBundle>
          <ignoreVersionIssues>true</ignoreVersionIssues>
          <themes>
            <theme>${settings.localRepository}/com/adobe/flex/
framework/framework/${flex.framework.version}/configs_zip/themes/Spark/
spark.css</theme>
            <theme>${settings.localRepository}/com/adobe/flex/
framework/framework/${flex.framework.version}/configs_zip/themes/halo/
halo.swc</theme>
          </themes>
            <descriptorTemplate>${basedir}/src/main/flex/$
{application.name}-app.xml</descriptorTemplate>
          <keystore>cert.p12</keystore>
          <storepass>PASSWORD</storepass>
        </configuration>
        <executions>
          <execution>
             <goals>
                <goal>sign-air</goal>
             </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <reporting>
    <plugins>
      <plugin>
        <groupId>com.adobe.ac</groupId>
        <artifactId>flex-pmd-maven-plugin</artifactId>
        <version>1.2</version>
        <configuration>
          <ruleset>flexpmd.xml</ruleset>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
</project>


On Jan 10, 1:38 pm, Matt <[email protected]> wrote:
> So is there no example AIR project that works with any 4.x flex-mojos
> version?
>
> Did you find JavaDocs for those air classes?  Or how did you even know
> which methods to call?  JavaDocs would at least give me some place to
> start.
>
> On Jan 10, 1:54 am, Marvin Froeder <[email protected]> wrote:
>
>
>
>
>
>
>
> > On Jan 10, 12:45 am, Matt <[email protected]> wrote:
>
> > > Any news on this front?  I'm having this issue as well.  I started
> > > debugging the mojo, but without the source code for the
> > > com.adobe.air.ApplicationPackager it's hard to make much progress.
>
> > Yeap, I can't determine what is going on either.

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to