Hi,

I am trying to build my AIR application with flexmojos and maven,

<flexBuilderCompatibility>true</flexBuilderCompatibility>
configuration attribute is not working as it is suppose to, I have set
this value in my pom.xml and following is what i have in my
application descriptor template

                <!-- The main SWF or HTML file of the application. Required. -->
                <!-- Note: In Flash Builder, the SWF reference is set 
automatically.
-->
                <content>[This value will be overwritten by Flash Builder in the
output app.xml]</content>

but when i do "mvn install -e" it fails stack trace shows me following
out put

Caused by: java.lang.NullPointerException
        at
com.adobe.air.ADTOutputStream.addDescriptor(ADTOutputStream.java:233)

        at
com.adobe.air.AIROutputStream.addDescriptor(AIROutputStream.java:63)
        at com.adobe.air.ADTPackager.addSpecialFiles(ADTPackager.java:
80)
        at com.adobe.air.AIRPackager.addSpecialFiles(AIRPackager.java:
156)
        at com.adobe.air.ADTPackager.createPackage(ADTPackager.java:
44)
        at com.adobe.air.AIRPackager.createAIR(AIRPackager.java:120)
        at
org.sonatype.flexmojos.air.SignAirMojo.execute(SignAirMojo.java:318)


if i change my application descriptor with <content>${output}</
content> value then the same pom.xml builds successfully, I am using
flexmojos 3.7.1, tried it with 3.8 as well but no luck.

Following is what my pom.xml plugin looks like, just in case...

                        <plugin>
                                <groupId>org.sonatype.flexmojos</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>${flex-mojos.version}</version>
                                <extensions>true</extensions>
                                <configuration>
                                        
<flexBuilderCompatibility>true</flexBuilderCompatibility>
                                        <targetPlayer>10.0.0</targetPlayer>
                                        <incremental>false</incremental>
                                        <debug>false</debug>
                                        <optimize>true</optimize>
                                        <showWarnings>true</showWarnings>
                                        <strict>false</strict>
                                        <keystore>${basedir}/NECSphere Air 
Certification.p12</keystore>
                                <storepass>123456</storepass>
                                        
<sourceFile>${basedir}/src/AIRClient.mxml</sourceFile>
                                        
<services>${basedir}/../spring-sphericall/RiaService/src/main/
webapp/WEB-INF/flex/services-config.xml</services>
                                        <contextRoot>/RiaService</contextRoot>
                                        
<descriptorTemplate>${basedir}/src/AIRClient-app.xml</
descriptorTemplate>
                                        
<ignoreVersionIssues>true</ignoreVersionIssues>
                                        
<configurationReport>true</configurationReport>
                                        <includeFileSets>
                                <fileSet>
                                        <directory>${basedir}/target</directory>
                                                <includes>
                                                <include>RIAClient.swf</include>
                                                </includes>
                                </fileSet>
                                </includeFileSets>
                                <runtimeLocales>
                                                <locale>en_US</locale>
                                                <locale>ja_JP</locale>
                                        </runtimeLocales>
                                        <compiledLocales>
                                                <locale>en_US</locale>
                                                <locale>ja_JP</locale>
                                        </compiledLocales>
                                        <locales>
                                                <locale>en_US</locale>
                                                <locale>ja_JP</locale>
                                        </locales>
                                        
<mergeResourceBundle>true</mergeResourceBundle>
                                        <resourceBundlePath>
                                                ${basedir}/locale/{locale}
                                        </resourceBundlePath>
                                </configuration>
                                <executions>
                                        <execution>
                                        <goals>
                                           <goal>sign-air</goal>
                                        </goals>
                                        </execution>
                                </executions>
                                <dependencies>
                                        <dependency>
                                                
<groupId>com.adobe.flex</groupId>
                                                
<artifactId>compiler</artifactId>
                                                
<version>${flex.sdk.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                
<groupId>com.adobe.flex.compiler</groupId>
                                                <artifactId>asdoc</artifactId>
                                                
<version>${flex.sdk.version}</version>
                                                
<classifier>template</classifier>
                                                <type>zip</type>
                                        </dependency>
                                </dependencies>
                        </plugin>

Thanks,
sachin_rt
P.S. :
I am a novice to flex-mojos and maven. I always used ant and am a big
fan of it. I started using maven and flexmojos before a week. I have
to admit that i have become a hugh fan of maven and flex-mojos.. they
rock! And pretty impressed with the community support for both... I
would like to thank all of you who is doing this excellent work!
Thanks again!

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