At the moment I only use this for development, once I'm happy I then use flex mojos locally to build and then check in and let the continuous integration server create the final artifacts.
My current project is a multi module project but the other source modules are Java not Flex;) I am using a few other binary swc dependencies (cairngorm, spring as3) but I don't have any source swc projects at the moment. That said - I have previous projects that used dependent swc source projects. (Its just extra modifications to the flex-config and jetty plugin configuration). I only define a webtier project for the ultimate "consuming" swf project, and that pulls in all the other dependencies. Here's a snippet of the pom.xml for a xxx-webtier project for a sibling swf client project xxx. I also forgot to mention that the webtier project has a lot of baked in dependencies that I check in (I should probably be using the maven dependency plugin...). The webtier project dependency is there j2ee war download which I "mavenized" locally. <?xml version="1.0" encoding="UTF-8"?> <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.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.gianttree.xxx</groupId> <artifactId>xxx-parent</artifactId> <version>1.0-SNAPSHOT</version> </parent> <artifactId>xxx-client-webtier</artifactId> <name>xxx - Client Adobe Webtier Support</name> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <!--<dependencies> --><!-- This file IS the webtier compiler. This project is an exploded version of it.--><!-- <dependency> <groupId>com.adobe.flex</groupId> <artifactId>webtier</artifactId> <version>3.2.0.3958</version> <type>war</type> </dependency> </dependencies>--> <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.12.rc2</version> <configuration> <contextPath>/</contextPath> <webAppConfig> <baseResource implementation="org.mortbay.resource.ResourceCollection"> <resourcesAsCSV> ${basedir}/../xxx-client/src/main/ flex,src/main/webapp </resourcesAsCSV> </baseResource> </webAppConfig> </configuration> </plugin> </plugins> </build> </project> Notice the relative dependency on the xxx-client in the jetty webapp configuration. This means jetty will check this source path for changes. I explode out the webtier war dependency into the src/main/webapp/WEB- INF area of the webtier project. Then the only change I make is to the flex-config.xml file that comes with the webtier war file. There's only two sections in here you need to change; <source-path> <path-element>/Users/Neil/xxx/trunk/xxx-parent/xxx-client/ src/main/flex</path-element> </source-path> Which ensures that the webtier compiler can see my changes and <!-- List of SWC files or directories that contain SWC files. --> <library-path> <path-element>libs</path-element> <!-- keep the original location in the libpath for backwards-compatibility --> <path-element>libs/player</path-element> <path-element>libs/player/{targetPlayerMajorVersion}</path- element> <path-element>locale/{locale}</path-element> <path-element>/Users/Neil/.m2/repository/com/adobe/ flexunit/flexunit/0.9/flexunit-0.9.swc</path-element> <path-element>/Users/Neil/.m2/repository/com/adobe/ cairngorm/2.2.1/cairngorm-2.2.1.swc</path-element> <path-element>/Users/Neil/.m2/repository/org/ springextensions/spring-actionscript/0.6.1-SNAPSHOT/spring- actionscript-0.6.1-SNAPSHOT.swc</path-element> </library-path> For any extra libraries. hope this makes sense. Neil On Feb 4, 9:58 am, RedBugz Software <[email protected]> wrote: > On Wed, Feb 4, 2009 at 2:44 AM, neil thorne > > <[email protected]> wrote: > > Let me know your thoughts... > > Sounds interesting. Do you have many libraries (swcs) that you build > as part of this, or is your whole project in a single swf-based > project? > > Is this just for development, or do you deploy into a similar > environment as well (web-tier compiler, etc.)? > > Logan --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
