Flex :: Build Several Files In Maven Flex?

Jan 31, 2012

I can use Maven with FlexMojos to generate swf file, but because I have several mxml files need to build, could I build them in 1 Maven pom file?I know if I separate them into several projects, Maven can build them. But because these mxml files have some shared functions, it's not easy to manage if I separate them.Another question is the size of swf file. The original file size build by Flex builder is about 80KB, but the file size by Maven is about 800KB. Is it normal?

View 2 Replies


Similar Posts:


Build A Flex Project On Ant Or Maven?

Jan 5, 2012

I am going to write a build commands for flex 4.5 project, which is only based on actionscript not with java. I am very new to both maven and ant.So can you people suggest which is more compatible and robust with Flex 4.5

View 1 Replies

Use Latest Maven To Build Flex Projects?

Nov 22, 2011

Currently, I'm trying to use latest maven to build flex projects in IntelliJ-Idea. But have no success.What is the best way to do it?

View 1 Replies

Flex :: Conditional Maven Build Section With A Profile?

Jan 15, 2010

I'm building a Flex application with Maven and the Flex Mojos plugin. I now want to compile an alternative version of the application with some extra libraries to enable automated functional testing. For this I need to change 2 things in the pom: extra dependencies extra configuration of the Flex Mojos plugin in the build section I created a profile in the pom targetted at building the alternative version and added the extra dependencies. I'm wondering however how I can specify the extra configuration of the Flex Mojos plugin in the build section. Should I just redefine (copy and modify) the complete plugin configuration from the build section into my profile,

View 1 Replies

Eclipse :: Using Maven To Build Flex Project Including Stylesheets

Mar 18, 2011

Flex stylesheets are parsed by the compiler and bundled with their assets (graphics, usually) into a swf file, which can then be loaded at runtime. I've got a project with a fixed number of styles (currently 4: old corporate style, new corporate style, and high contrast versions of both). Using Flash Builder (Eclipse with Flex IDE plugin) I'm able to have all .css files compiled to .swf files alongside the primary project artifact .swf file. This is also possible with ant scripts.

My current understanding is that Maven wants to only create one artifact per project (POM file), but may have some additional ones added (like zip packaging). For scalability reasons - I've got a complex setup of many library and module projects, several of them having their own individual stylesheets - it would be very impractical to split up the projects into the 'main' project and copies for each stylesheet. At least on the Eclipse project side, having some subfolders with POM files in each, all refered by a master pom file and referring the same src/ location (and being inside one Eclipse project) would probably work. Though that's ugly and needs individual artifactIds for each, and still need to be assembled somehow.

The important thing is to be able to have a final assembly which contains the (Eclipse) projects main swf file and each stylesheets swf file (and some static files like localized texts to be loaded at runtime). This will be part of a large assembly of several of those projects which I've described in a separate question.

I'm using Eclipse 3.6.1 (Helios) with Flash Builder Plugin (i.e. Flex4), targetting Flex SDK 3.5 (FlashPlayer 10.0). I've installed Maven 3.0.2, using Sonatypes flexmojos-maven-plugin 3.7.1 (as it seems more active than the one from Servebox). I've manually created pom files for my projects and they work (though only compiling one swf artifact file, depending on whether I specify the main .as or one of the .css files as sourceFile)

I've tried for some days now to understand "The Maven Way" (which seems to be tailored for Java and not fitting perfectly for Flex), but couldn't get this to work so that I have a single project, or at least a single assembly with everything in it.

View 1 Replies

Java :: How Set Flex Server Location For BlazeDS Maven Build

Apr 1, 2012

As a first step getting a Hello World Flex-to-Java application to compile and run I followed: [URL] And it ran successfully. However now I wish to automate the build in Maven. How to specify the Flex Server location in the pom.xml?

View 1 Replies

Flex :: Flashbuilder 4.5 Premium License For A Maven Flexmojo Based Build?

Aug 9, 2011

We have been building our Flex app forever using Maven. Due to the fact that we use RIATest for integration testing we need to create a special test version of the app with the RIATest agent compiled in it and with the Flex automation libraries available. Apparently for the latter we need to provide the flex compiler with our license since this is only available from a version higher than Standard.

Up until Flex 4.0 and RIATest 3.8 this worked fine, we had our license information defined in a flex-config file in the user home directory. However currently with the combination Flex 4.5 and RIATest 4 we are having problems, the tests always fail with "License not present. With the trial version only limited replays are allowed."

We have tried multiple variations of defining the license key for Flashbuilder 4.5 but we have had no success. Currently our flexmojo configuration in the POM references an external flex-config file and there we try to define the license key.

View 2 Replies

Flex :: Compile .FLA Files Using Maven

Nov 16, 2010

I am using flexmojos to build my flex projects. I also have a flash project containing .fla files which needs to compiled into swf have I thought was to use a command line script to do it and force maven to call the script. Something like this

View 1 Replies

Java :: Generate Flex Project Files Using Maven?

Sep 14, 2010

I've got a Java/Flex project that I'm building using Maven. After doing some research I'm using the Flexmojos project [URL] for the Flex part, and almost everything seems to work fine so far (after a bit of struggling). I'm using version 4.0-alpha-5 (4.0-SNAPSHOT didn't seem to work for me).The Flex projects isn't recognized by Eclipse as Flex projects though. If I manually change the .project file and add .actionScriptProperties and .flexProperties files, Eclipse seems to recognize the projects as Flex projects.

View 4 Replies

Release - Flex Build Use Local Files?

May 26, 2011

I have a very stupid problem. I'm using Flash Builder (Flex) 4. My application displays a video using VideoDisplay component and some images. The video filename is always named video.mp4 and the images are inside a folder called "real/". The video file and the real folder are in the SAME location of the .swf built.

The video source in the code is set like this: videoDisplay.source = 'video.mp4';

and the images, loaded dynamically, are like:

img.source = 'real/' + imageFilename;

[Code]...

View 1 Replies

Flex :: Exclude Files From Being Copied To Bin-debug On Build?

Aug 11, 2009

Using Adobe Flex Builder Pro stand-alone, how do I filter or exclude some files in my project source folder from being copied into the bin-debug folder during a build? Flex Builder is based on the Eclipse platform IDE, this could be as much of a question about Eclipse as it is Flex Builder.

View 2 Replies

Flex :: Maven - Flexmojos: Type Was Not Found - UncaughtErrorEvent (Flex 4.1)?

Apr 28, 2011

I'm using flexmojos 3.8 with flex compiler 4.1.0.16248.My Project compiles fine in Flash Builder, but with flexmojos / maven I get the following Error: Type was not found or was not a compile-time constant: UncaughtErrorEvent

The Flex Code looks like this:

loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, onUncaughtError);

The Flex Compiler 4.1 should know the type UncaughtErrorEvent - Why does it fail?

View 2 Replies

Flex :: Flash Builder 4 Release Build Multiple Files?

Dec 8, 2010

When i make a release build the folder is populated with a number of swfs. Are all these swfs necessary?Is there a option to generate one swf?

EDIT: The files I see are:

framework_4.5.0.18623.swf
osmf_1.0.0.16316.swf
rpc_4.5.0.18623.swf[code].....

View 2 Replies

Flex :: Generate Flex SOAP Client Using Maven?

Aug 9, 2011

I have a java server side project which contains JAX-WS web-services (using JavaEE 6 and the @WebService annotation).

Is there some kind of plugin that would allow me to generate Flex client stubs during my maven build ?

I have taken a look at enunciate, but it seems to generate only AMF client.

I've also tried to look at GraniteDS, but their doc seems a little opaque to me.

Notice my Flex project is compiled using flexmojos, which contains a flexmojos:generate mojo that should be able to generate domain object (however I don't understand how to say it to use domain classes from ANOTHER project, and not from a different folder).

So, is there any maven plugin that would allow the kind of feature described in this Adobe page ?

View 1 Replies

Flex :: Build - Including Configuration Files While Compiling A Application With MXMLC

May 17, 2010

I'm using:

- Flex SDK 3.5.0
- Parsley 2.2.2.
- Flash Builder 4

Down in my src folder (which is configured as part of the source path in the Flash Builder), I have a logging.xml which I configure via Parsley:

[Code]....

View 1 Replies

Flex :: Web Applications - When Export A Release Build, It Generates A Whole Bunch Of Files?

Jan 19, 2011

I made an application in Flex 4. When I export a release build, it generates a whole bunch of files. (including the skins used, etc, etc.)How do I make those plentiful files except the container HTML file, get compiled into a single SWF file?E.g.My folder should only contain:

my_app.swf
my_app.html

But my_app.swf should still run like a normal Flex 4 app, only this time, all the files, images, skins, etc are inside that one SWF file.

View 2 Replies

Flex :: Specifying A Flex-config.xml With Maven / Mojos

May 19, 2010

I have to port an existing project to Maven, and it includes a resource called "config.xml" that is copied to the deploy directory alongside the SWF and HTML, and loaded at run-time to locate a bunch of WSDLs.

Flex Mojos has taken it upon itself to assume that my xml file is a flex-config file with instructions for the compiler, which of course promptly gives up the ghost.

The question is: How do I specify a named config file for the compiler so that Maven stops this nonsense (as well as specifying my compile-time options)?

View 1 Replies

Flex :: Debug Flex Application Under Maven?

Oct 18, 2010

I develop Flex-Java applications which is running under Apache Tomcat. I use Flex Builder plug-in for Eclipse as my IDE. My application consists of several libraries and modules. I manage all of them as a small maven (flex-mojos) projects.

how to setup robust debuging enviroment?

View 1 Replies

Flex :: Set A Swc Theme In Maven?

Nov 1, 2010

I can't set my custom theme in Maven like I do it in Eclipse by changing theme in project properties.

I note the theme swc in dependencies, the compiler founds it but the theme doesn't change.

Who knows how can I set a custom theme in Maven?

View 1 Replies

Flex :: Compile Swf With Maven?

Jan 5, 2012

I have several maven modules (each with a pom)I am looking to compile my swf without first compiling each module into a swc, like i am soing now. I suppose that should speed up the compilation process.

View 1 Replies

Flex :: Maven - Mojos Compile Fxg?

Jun 21, 2011

Does anyone have a sample pom.xml or a tip of how to get flex-mojos to compile FXG files?We use some FXG images in our project by adding them in mxml like:The image ns refers to a package containing the FXG image files.In Eclispe this works fine.But when flex-mojos is compiling the project we get a "Type not found" error.We get the same error in eclipse when we delete the FXG but keep the tag in MXML.

View 1 Replies

Flex :: Export App Including Database Files With Using Export Build Release Wizard?

Apr 1, 2011

When I try to export my application to native installer with using Export Build Release, it isn't importing my sqlite database files which are in my application directory. Is there a way that I can import those database files ?

View 1 Replies

Flash :: Flex - TFS Build 2010 Call An Ant Script And / Or Build?

Mar 31, 2011

In TFS 2010 build, I have a new build and I want to call an ant script that builds Flash. How do I call the ant script? Also How can I compile the Flash directly? I've seen the Power Tools and this question but it doesn't help me as we don't have TFS 2008. I can't find any documentation on how to use the power tools except the 1 sentence on the bottom of download page saying to create your build the old way and import it (which isn't very helpful). I've installed the power tools on the agent computer but I don't see any new options in the Toolbox when I'm designing the build flow.

View 2 Replies

Flex :: Creating Ant Build Script To Build Only When A Dependency Was Updated?

Apr 14, 2011

I just started working with ant a few days ago. Right now I have a general buildall.xml which should call each project's build.xml. Because some projects depend on each other, I need to rebuild some other projects which depend on it. This isn't a problem--I'm just setting the depends property of the target. However, ant is always building the dependencies, even when the files haven't changed.Let's say project1 has no dependencies; project2 depends on project1; project3 depends on project1, 2; project4 depends on project1, 2, and 3; and so on.I could hack a solution which looks at project K, and checks if project 1 .. project K have updated files using uptodate. If so, then run the target. This is messy and appears unnecessary.

What is the cleanest way to implement this?EDIT: So I decided to just hack in a bunch of targets, "check_projectK" where it does the uptodate checks on all of its source files, its build file, and the build files of the 1 .. K-1 projects. Due to dependencies, this is always handled correctly. However, this is still a large amount of copy and paste for a large workspace.

View 1 Replies

Flex :: Spring Hibernate Maven Archtype

Jun 30, 2011

Is there a good Maven archtype for Flex Spring Hibernate integration which can be used as template?

View 1 Replies

Flex :: Debugging Maven Application With Intellij?

Jan 17, 2012

I have flex application consisting of several modules which is configured using maven. I'm using flexmojos plugin to build the application. When I try to build the application using maven it builds successfully. But I need debugging features of Intellij Idea (i'm using 10.0 version). So at first step I run maven compile command to generate *-configs.xml to enable Intellij idea compile my application. At second step i run IDE's compile(or make) command and it says:

[Code]...

View 2 Replies

Flex :: JBoss Project Setup In Eclipse Using Maven

Feb 27, 2010

I would like to know how to proceed to set up a work environment in order to develop Spring BlazeDS applications. Those server applications are meant to be accessed via AMF remoting from some client Flex application.Actually I have Maven and m2eclipse set up and working, local JBoss v6.0M2 running, Flex 4 plugin installed.Ideally, I would like to know how to create an eclipse project in which I can have both server (Java) and client (Flex) code and be able to deploy everything in one click to JBoss. Maybe there is a special Maven archetype for this setup? If not, I will be happy if someone can provide step by step instructions to setup all this stuff.

View 1 Replies

Flex :: BlazeDS + Multi Module Maven Project?

Apr 29, 2011

I've got a multi module Maven project (about 10 modules) where 2 of the modules are a flex project and its corresponding server project, communicating via BlazeDS. The server module is dependent on another module containing common things, shared over the whole project.When using objects from the common module, the objects aren't serialized and sent via AMF to the SWF. Everything in the server-module is serialized and is working fine, but the objects from the common module (which has valid values on the server side) is not sent to the client.

I'm using Flexmojos to build this. What do I have to do to make the classes in the common project available for serialization, and being able to use them as RemoteClass-objects in my swf-project?

[Code]...

View 3 Replies

Flex :: Maven 2 - Coping Swf Resources With Mojos To The Custom Folder?

Sep 16, 2010

How I can configure copy-flex-resources goal and swf dependencies to copy swf files to the custom folder in my web-app? By default it copies to the web-app root.[URL]

View 2 Replies

Flex :: Handling Multiple Artifacts From Single Maven Project

Oct 12, 2010

I have a maven project that produces many artifacts. Of course it is kind of against maven best practice (one pom one artifact), but it is Adobe Flex project that produces many *swf modules and it is really makes no sence to create a separate project for each module.

For me it would be very convinient to handle all swf modules as a single zip archive eg. zip archive would be my artifact.

So I am looking for the way to pack and unpack my zip artifact with maven.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved