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


Similar Posts:


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 :: New Project Created With Flex Mojo's Archetype Throws Cannot Find Parent Project-Maven Exception

Jun 15, 2010

Maven 2.2.1 unzipped,M2_HOME set and repository altered to point to different drive location in settings.xml Flex 4.0:

Installed Created a multi-modular webapp project using flexmojo:

mvn archetype:generate
-DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup
-DarchetypeGroupId=org.sonatype.flexmojos
-DarchetypeArtifactId=flexmojos-archetypes-modular-webapp
-DarchetypeVersion=RELEASE

with following options

groupId=com.test
artifactId=test
version=1.0-snapshot

[code]....

Parent pom has swc, swf, war as modules.

Dependency is war->swf->swc.

With parent artifactId of swf, swc, war set to swf, swc, test respectively.On executing mvn on test folder(for that matter clean or anything) I get this following error.

G:Projects est>mvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/com/test/swc/1.0-snapshot/swc-1.0-snapshot.pom

[code]....

Looks like its trying to download the project from maven's central repository instead of building it.

View 2 Replies

Flex :: Setup Eclipse With Plugin

Jan 18, 2011

I want to work with flex from eclipse, could you tell me how to install the flex plugin within eclipse: What version of eclipse do I need? Where can I download the flex plugin?

View 2 Replies

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

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

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

ActionScript 3 :: How To Compile Maven / Flex Project Without Any MXML File

Dec 13, 2010

Is there any way how to compile maven/flex project which does not contain any *.mxml? The flex project contains ActionScript classes only (i.e. "src/flex" directory contains *.as files only). My pom.xml is here:

<groupId>com.test</groupId>
<artifactId>test</artifactId>
<version>1.0-SNAPSHOT</version>
<name>test</name>
<packaging>swf</packaging>
[Code] .....

View 2 Replies

Flex :: Make A FlexBean Plugin Cooperate With Maven Project?

Aug 8, 2011

I have a flex maven project written by externel company that I need to modify. I dont have a Flash Builder licence yet (it takes forever to buy anythng in my company) I installed Netbeans 6.5 and FlexBean but when i opended flex maven project the action script code is ont recognized as action script by the IDE. Ho to make it "flex aware" ?

View 1 Replies

Eclipse :: Flex - Putting A Separate Project In The "example" Folder Of A GitHub Project?

Apr 30, 2011

I have one Eclipse Workspace containing two projects. - The first is my actual library. - The second is example code for using the library.When I push this code to GitHub, I don't want two separate projects, I want the example code to go into an "example" folder of the second library.How and where would I do this? From Eclipse, GIT, or GitHub?Or is there a better way of including sample code in GitHub projects? (the example code doesn't actually need any version control)

View 1 Replies

Flex :: Which Heap Is Used While Building Project In Eclipse

Feb 23, 2011

I am building a flex project manually in eclipse and want to know which heap is used during this process:The heap used to run eclipse mentioned in eclipse.ini or the JRE heap specified within the eclipse?

View 1 Replies

Flex :: Imported Eclipse Project Not Linking To ClearCase?

Dec 13, 2010

I imported a project from ClearCase into Eclipse and it's not associated with ClearCase; meaning no check in/check out. The only thing I get under 'Team' is 'apply patch' or 'share project'.Other projects I import into Eclipse are automatically linked to ClearCase, but not this one.I even created a separate workspace for this view and still some projects will be linked and others not. It's not even dependent upon project; it's arbitrary.

View 1 Replies

Android :: Flex Mobile Project On Eclipse Plugin

Sep 6, 2011

I wanted to develop a flex based mobile project. I have Eclipse plugin for Adobe Flash Builder. But I cannot see any option in the "Create Project" list for Mobile project.I have seen Mobile Project is available in Flash Builder Standalone version, but I wanted it in eclipse plugin.

View 2 Replies

Flex :: Create Setup Crossdomain For Flash Project?

Aug 10, 2010

I am trying to add a crossdomain file for my flash project...haven't done it before..and there are not too much information online.

View 2 Replies

Flex :: Accessing JBoss Conf File?

Sep 29, 2009

I've got a Flex application running on a JBoss server, with dev/QA/production environments. The application needs to coordinate with some other services, also with QA/prod instances. Currently I'm sending the current URL in via javascript values, like this:

index.template.html
AC_FL_RunContent(
"FlashVars", "myhost=" + location.hostname,
etc

index.mxml:

switch (mx.core.Application.application.parameters.myhost) {
case "qa.servername.com":
xmlURL = "http://server.com/qa.xml";
break;

and so on. I'd rather not do that though; I'd rather edit a .properties file in JBoss to identify a particular machine as QA or Production and access that value via Flex.

View 2 Replies

Eclipse :: Lines Of Code Count For Flex In Eclipse

Aug 1, 2011

How to get the SLOC count for the Flex code in Eclipse?Is there a plug-in similar to "Metrics" for finding information about the Flex porject?

View 2 Replies

Eclipse :: Build Flash Project With ANT

Apr 9, 2012

Currently we have a large project that was created in Flash and AS3. I know that you can't really compile or build fla's with ANT. I have seen all of the flex capabilities with ANT.We want to customize our final product so that we can swap out images and color schemes (other things too) on the command line.We want to use ANT to be able to build our project and control the command line.Basically end product, the user will just tell it where the images are and only take a couple minutes.Do we have to convert our project into Flex to do this?

View 1 Replies

Eclipse :: Error While Connecting Eclipse IDE To Run The Flex 4.5.1 SDK?

Oct 18, 2011

I want to run the Flex SDK 4.5.1 on Eclipse IDE. I have followed this http:[url].....step by step and it was same as it was written.But then when i first built my sample code and ran it, it gave me these errors. I cant figure out what the problem is:This is the sample code:

and these are the ERRORS:
Loading configuration file C:Mario's FilesSTFFlex SDKflex_sdk_4.5.1.21328frameworksflex-config.xml
_application_Styles.as(24): col: 38 Error: Syntax error: expecting rightparen before s.[code]....

Do we have to get a compatible Eclipse-FlexSDK-Flash version??

View 1 Replies

Flash :: Eclipse - Duplicate / Branch A Project In Builder?

Feb 6, 2011

I have a file that I've been working on, and i want to take what I have and modify it heavily, but I want to keep the original; if there was a 'duplicate' project command I would do that, but I don't see one, and wondered if there might be a way to keep it all in the same project for tidiness purposes. I'd just copy paste the directory myself but just want to make sure I'm not missing some functionality.

View 1 Replies

Eclipse :: Multiple Target Devices For A Single Project?

Oct 27, 2011

I am porting an existing project from Flash Pro to Flash Builder.The code is almost completely portable between Web/Android/Projector/AIR, and I simply change a few constants for each target device before hitting publish...However- in Flash Builder, it asks me when creating a project whether it will be mobile or web.What's the best-practices way to target multiple devices from a single project in Flash Builder?OR, in Flash Builder, must they each be their own project? If they must each be their own project- is there a multi-project organization method which works well, keeping in mind that in this context each project is really just a different build of the almost-identical codebase (On one foot- I thought of having a "common" project

View 1 Replies

Setup The First Page In Project?

Dec 9, 2010

I'm trying to set up the first page in my project so that I capture a person name.and I can use it again later on. I had discussed this in a previous thread with Ned

[Code]...

View 3 Replies

Flash :: Eclipse - Organize Imports For An Entire Project In Builder

Nov 16, 2011

I'm working with a large Actionscript project, and every file needs to have it's imports organized. I noticed that you can achieve this easily in the Java version of eclipse, but that doesn't seem to work in Flash Builder. Is there a simple way to organise imports for the entire project?

View 1 Replies

Eclipse :: How To Add Flex To Eclipse IDE

Aug 29, 2011

How to add Flex to eclipse IDE

View 1 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 :: 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 :: 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 :: 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

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







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