Are you guys able to get your air projects building using adt?

I ask cause FB may add something to your compilation that you guys are
unaware of.

On Nov 28, 7:24 am, Miroslav Hrúz <[email protected]> wrote:
> Hi,
>
> I was playing with FlexMojos to build AIR project and same thing
> happend to me. I tried more different versions of Flex, FlexMojos on
> MacOS X Lion and Windows.. Same thing.
>
> There is sample hello world project.
>
> airtest
>    src
>       airtest.mxml
>       airtest-app.xml
>    src
>        main
>             resources
>                 descriptor.xml (which is copy cat of airtest-app.xml)
>    pom.xml
>
> pom.xml:
>
> <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.0http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>         <modelVersion>4.0.0</modelVersion>
>         <groupId>airtest</groupId>
>         <artifactId>airtest</artifactId>
>         <version>0.0.1-SNAPSHOT</version>
>         <packaging>swf</packaging>
>         <name>airtest</name>
>         <properties>
>                 <flex.framework.version>4.5.1.21328</flex.framework.version>
>                 <keystore.file>certificate</keystore.file>
>                 <keystore.password>pass</keystore.password>
>         </properties>
>         <build>
>                 <sourceDirectory>src</sourceDirectory>
>                 <plugins>
>                         <plugin>
>                                 <groupId>org.sonatype.flexmojos</groupId>
>                                 
> <artifactId>flexmojos-maven-plugin</artifactId>
>                                 <version>4.0-RC2</version>
>                                 <extensions>true</extensions>
>                                 <configuration>
>                                         
> <sourceFile>./airtest.mxml</sourceFile>
>                                         <debug>true</debug>
>                                         <showWarnings>false</showWarnings>
>                                         <debug>true</debug>
>                                         
> <configurationReport>true</configurationReport>
>                                         <headlessServer>true</headlessServer>
>                                         
> <flexBuilderCompatibility>true</flexBuilderCompatibility>
>                                         
> <sourceFile>./${project.name}.mxml</sourceFile>
>                                         
> <descriptorTemplate>${basedir}/src/${project.name}-app.xml</
> descriptorTemplate>
>                                         <keystore>${keystore.file}</keystore>
>                                         
> <storepass>${keystore.password}</storepass>
>
>                                 </configuration>
>                                 <dependencies>
>                                         <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>
>                                         </dependency>
>                                 </dependencies>
>
>                                 <executions>
>                                         <execution>
>                                                 <goals>
>                                                         <goal>sign-air</goal>
>                                                 </goals>
>                                         </execution>
>                                 </executions>
>                         </plugin>
>                 </plugins>
>         </build>
>
>         <dependencies>
>
>                 <dependency>
>                         <groupId>com.adobe.flex.framework</groupId>
>                         <artifactId>air-framework</artifactId>
>                         <version>${flex.framework.version}</version>
>                         <type>pom</type>
>                 </dependency>
>         </dependencies>
>
>         <repositories>
>                 <repository>
>                         <id>flex-mojos-repository</id>
>                         
> <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>                         <releases>
>                                 <enabled>true</enabled>
>                         </releases>
>                         <snapshots>
>                                 <enabled>true</enabled>
>                         </snapshots>
>                 </repository>
>                 <repository>
>                         <id>nexus</id>
>                         
> <url>http://localhost:8081/nexus/content/repositories/thirdparty/</
> 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>true</enabled>
>                         </snapshots>
>                 </pluginRepository>
>         </pluginRepositories>
> </project>
>
> airtest.mxml:
>
> <?xml version="1.0" encoding="utf-8"?>
> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009";
>                                            
> xmlns:s="library://ns.adobe.com/flex/spark"
>                                            
> xmlns:mx="library://ns.adobe.com/flex/mx">
>         <s:Label text="hello world" fontSize="70" />
> </s:WindowedApplication>
>
> airtest-app.xml , descriptor.xml:
>
> <?xml version="1.0" encoding="utf-8" standalone="no"?>
> <application xmlns="http://ns.adobe.com/air/application/2.6";>
>         <id>airtest</id>
>         <filename>airtest</filename>
>         <name>airtest</name>
>         <versionNumber>0.0.0</versionNumber>
>         <initialWindow>
>                 <content>[This value will be overwritten by Flash Builder in 
> the
> output app.xml]</content>
>         <autoOrients>false</autoOrients>
>         <fullScreen>false</fullScreen>
>         <visible>false</visible>
>     </initialWindow>
> </application>
>
> Thank you for your view.
>
> MH
>
> On Nov 22, 7:27 am, "[email protected]" <[email protected]> wrote:
>
>
>
>
>
>
>
> > Please share your pom.xml and descriptor.xml so we can elaborate a bit.
>
> > --
> > Simon
>
> > --
> > Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
> > gMale Another <[email protected]> wrote:
>
> > Hello,
>
> > This is my first post to this group. I was directed here by a commenter on 
> > my related StackOverflow question.  I have Googled quite a bit and also 
> > searched through this group's history.  I'm having the WORST time trying to 
> > solve this problem!
>
> > Problem:
>
> > I am compiling an AIR application with Flexmojos.  It produces a functional 
> > SWF (located, after install, at: 
> > /Applications/MyApp.app/Contents/Resources/MyApp.swf) but it doesn't run.  
> > That is, when I click on the application, no window appears.  I see my 
> > application name in the Mac OS title bar (the same way I see "Safari" right 
> > now while typing this) but nothing else. No window. No errors. I used a 
> > system file monitor to verify that the SWF is being accessed by the AIR 
> > app.  So what gives?!
>
> > Incidentally, I get the same results when I package with ADT (I even tried 
> > putting ALL dependent SWCs in the /libs directory):
>
> > adt -package -storetype pkcs12 -keystore sign.p12 -storepass secretPassword 
> > MyApp.air air/MyApp-descriptor.xml MyApp.css MyApp.swf com -C libs .
>
> > However, when I run the application from Flash Builder, it works perfectly. 
> >  The same is true when I "Export a Release Build."
>
> > My best guess is this has something to do with the Flex modules we are 
> > using.  I assume these are being compiled into the SWF since they appear in 
> > the size-report.xml and the link-report.xml.
>
> > Questions:
>
> > Why doesn't our application "show up" when compiled from Flexmojos (then 
> > installed), yet it works perfectly from Flash Builder?
>
> > Is there a way to convert what flash builder is doing into an ADT command 
> > to run in the shell or into configuration for Flexmojos?
>
> > Surely when this thing fails, some kind of error is occurring, what's the 
> > simplest way to view that error?
>
> > A few more details can be found in my StackOverflow question, linked above. 
> > Thanks to any and all advice!
>
> > -gMale
>
> > --
> > 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 
> > athttp://groups.google.com/group/flex-mojos
>
> >http://flexmojos.sonatype.org/

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