All:

I have an existing application that I am porting from a FlexBuilder
based build process (manual) over to using Flex Mojos. So far I have
gotten nearly everything working which includes over 25 dependency
projects and a few SWF projects.

The major hurdle now is getting the runtime styles to load. When
compiling the identical code in flexbuilder things work fine, but when
using Flex Mojos I get this output from my compiled SWF Code:

[SWF] Users:adamparrish:Desktop:mavenMigration:nsn-
client:target:styles:PROJECT_coreLibStyles.swf - 0 bytes after
decompression
[SWF] Users:adamparrish:Desktop:mavenMigration:nsn-
client:target:styles:PROJECT_commonElements.swf - 0 bytes after
decompression
[SWF] Users:adamparrish:Desktop:mavenMigration:nsn-
client:target:styles:PROJECT_coreLibStyles.swf - 0 bytes after
decompression
[SWF] Users:adamparrish:Desktop:mavenMigration:nsn-
client:target:styles:PROJECT_commonElements.swf - 0 bytes after
decompression

When running the code after compilation with Flex Builder I get a
successful load of the styles and everything works as usual.

Does anyone have any input? Is there something special I should pass
the compiler that I am forgetting? Here is my Build section I am using
right now:

<build>
                <plugins>
                        <plugin>
                                <groupId>org.sonatype.flexmojos</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>3.2.0</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>wrapper</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        <debug>true</debug>
                                        <locales>
                                                <param>en_US</param>
                                        </locales>
                                        
<sourceFile>./NsnClient.mxml</sourceFile>
                                </configuration>
                                <dependencies>
                                        <dependency>
                                                
<groupId>com.adobe.flex</groupId>
                                                
<artifactId>compiler</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                </dependencies>
                        </plugin>
                        <plugin>
                        <artifactId>maven-resources-plugin</artifactId>
                        <executions>
                          <execution>
                            <id>copy-resources</id>
                            <phase>validate</phase>
                            <goals>
                              <goal>copy-resources</goal>
                            </goals>
                            <configuration>
                              
<outputDirectory>${basedir}/target/</outputDirectory>
                              <resources>
                                <resource>
                                  <directory>${basedir}/src/main/resources/</
directory>
                                  <filtering>true</filtering>
                                </resource>
                              </resources>
                            </configuration>
                          </execution>
                        </executions>
                      </plugin>

                </plugins>
        </build>
--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to