a.s.t.r.o
a.s.t.r.o

Reputation: 3338

Spring BlazeDS + Flex + JBoss Project setup in eclipse using Maven

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.

Thank you in advance

Upvotes: 5

Views: 3752

Answers (1)

Pascal Thivent
Pascal Thivent

Reputation: 570385

Have a look at the maven-blazeds-spring-archetype archetype (and its GettingStarted guide) and at the article that inspired the archetype: The Flex, Spring, and BlazeDS full stack – Part 1: Creating a Flex module.

Update: I just tried the archetype and, indeed, it need some tweaks. Here are the steps:

  1. Create a project from the remote repository

    mvn archetype:generate -DartifactId=<your artifactId> -DarchetypeCatalog=http://maven-blazeds-spring-archetype.googlecode.com/svn/maven2/ 
    
  2. cd into the created project and modify the location of Sonatype's repository in ./pom.xml. Replace http://svn.sonatype.org/flexmojos/repository by http://repository.sonatype.org/content/groups/forge/ (there are 2 occurences to replace).

  3. Update the version of the <flex-mojos.version> in app-flex/pom.xml, replace 2.0M8 with the latest 2.0.3.

  4. Perform the initial setup

    mvn clean install -DtemplateURI=folder:html-template
    
  5. Follow the rest of the steps of the GettingStarted.

Upvotes: 3

Related Questions