Hi,

I'm migrating from FlexBuilder to FlexMojo and Maven. I've generated the 
archetype projects using Eclipse Indigo and m2e, and started moving source 
code from the existing FB projects to the new Maven projects. I'm new to 
Flex and not looking to learn Flex development, I'm responsible for 
migrating the existing Flex app to the new build platform, while development 
continues using the existing projects until cutting over to the new Maven 
projects.

The relevant existing projects using FB look like, and the migration action,

EAR
EJBApp
WEBApp
   /flex_libs/*.swc (installed to m2 repo and added to swf project 
dependencies)
   /flex_src
      /assets (moved to swf project/src/main/resources)
      /css (moved to swf project/src/main/resources)
      /reports (jasper reports, moved to swf project/src/main/resources)
      /org/flex/as/files (moved to swf project/src/main/flex)
      ...
      SomeFlexApps.mxml (moved to swf project/src/main/flex)
      ...
   /html-template (moved to war project/resources)
      /history
         history.css
         history.js
         historyFrame.html
      AC_OETags.js
      index.template.html
      playerProductInstall.swf


 
The new Maven - FlexMojos projects look like this,

ear
ejb
swc (not used)
swf
   /src
      /main/flex
         /org/flex/as/files
         ...
         SomeFlexApps.mxml
         ...
      /resources
         /assets
         /css
         /reports (jasper reports)
war
   /src
      /main
         /java/servlet/class/files
         /webapp
            /WEB-INF
            index.jsp
            logger.jsp
         /resources
            /html-template
          /history
             history.css
             history.js
             historyFrame.html
          AC_OETags.js
          index.template.html
               playerProductInstall.swf
            
         
The parent POM runs all of the dependent POMs, and installs successfully. 
There are two major issues I'm trying to solve, one is getting 
SomeFlexApp.mxml to compile to it's corresponding SWF file. Currently, a 
single SWF is generated for the entire SWF project.

The second issue is using the flexmojos-maven-plugin wrapper goal to 
generate the HISTORY folder in the WAR file,

<plugin>
   <groupId>org.sonatype.flexmojos</groupId>
   <artifactId>flexmojos-maven-plugin</artifactId>
   <executions>
      <execution>
         <goals>
            <goal>copy-flex-resources</goal>
            <goal>wrapper</goal>
         </goals>
         <configuration>
            <parameters>
               <swf>main</swf>
               <width>100%</width>
               <height>100%</height>
            </parameters>
            <htmlName>main</htmlName>
            <templateInclusions>
               <String>html-template</String>
            </templateInclusions>
            <wrapperArtifact>
               <groupId>org.my</groupId>
               <artifactId>swf</artifactId>
            </wrapperArtifact>
         </configuration>
      </execution>
   </executions>
</plugin>

The compiled EAR using FB that is deployed on JBOSS 5.1 is this,

EAR
META-INF
EJBApp.jar
   /META-INF
   /org/java/class/files
WEBApp.jar
   /WEB-INF
   /assets
   /css
   /HELP
   /history
      history.css
      history.js
      historyFrame.html
   ...
   SomeFlexApps.mxml
   SomeFlexApps.swf
   ...
   AC_OET.js
   index.jsp
   logger.jsp
   main.html
   main.mxml
   main.swf
   tooltip.mxml
   

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