Why?

Hi folks…

Some days ago I star a new maven plugin to compile flex.
http://code.google.com/p/flex-mojos/

But why?

Well, hard to say… lot of reasons. I believe 3 are the most valuable:

  1. The current plugins didn’t allow me do something (example: compile flex 3 from source with maven);
  2. The available plugins use always a new JVM to each module on my application, resulting on a bad performance result;
  3. Don’t are full compliant with MXMLC and COMPC.

So, here I fit in.

I start commit something at google code and start alphas.

For now, COMPC support is great. I’m able to compile the entire flex SDK with great results. I will start MXMLC tests this weekend.

If someone wanna test too, add this repository to pom.xml:

 <pluginRepositories>  <pluginRepository>   <id>flex-mojos-repository</id>

   <url>http://flex-mojos.googlecode.com/svn/trunk/repository/</url>  </pluginRepository> </pluginRepositories>

Them, just add the plugin:

  <build>  <sourceDirectory>src</sourceDirectory>  <plugins>   <plugin>

    <groupId>info.rvin.mojo</groupId>    <artifactId>flex-compiler-mojo</artifactId>    <version>1.0-alpha2</version>    <extensions>true</extensions>

    <configuration>    </configuration>   </plugin>  </plugins> </build>
  • Easy to use;
  • Low foot print;
  • CoC, no required parameters;

Soon I will write a hello world.

Thanks for this first post, and plz, comment =D

VELO

2 Responses to “Why?”

  1. I am trying to compile my mxml into swf with flex-mojos but not succesful yet.
    when i try running mvn install from the root folder containing pom.xml i get the error
    [INFO] Scanning for projects…
    [INFO] ————————————————————————
    [INFO] Building my-flex Maven Flex
    [INFO] task-segment: [install]
    [INFO] ————————————————————————
    [INFO] [flex-compiler-mojo:compile-swf]
    [INFO] sourcePaths CoC, using source directory plus resources directory!
    [ERROR] unknown configuration variable ‘compute-digest’
    Use ‘oem -help’ for information about using the command line.
    [INFO] ————————————————————————
    [ERROR] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Error compiling!
    [INFO] ————————————————————————
    [INFO] For more information, run Maven with the -e switch
    [INFO] ————————————————————————
    [INFO] Total time: 2 seconds
    [INFO] Finished at: Fri Mar 28 18:15:38 IST 2008
    [INFO] Final Memory: 3M/7M
    [INFO] ————————————————————————

  2. Hi Glide,

    Can you run mvn -e install and send the output to velo.br@gmail.com

    VELO

Discussion Area - Leave a Comment