Table of Contents

How to compile Starling with Maven

Introduction

Unfortunately, we don't have a maintainer for the Maven build system any more. Thus, I had to remove the “maven” build files from the repository — rendering the tutorial below rather useless.

If you want to see Maven return, any help is welcome!

Maven is a powerful build system, like Ant, but it's more universal, with strict workflow and build phases. Furthermore, it supports dependency management out-the-box. Flex Framework, Robotlegs, as3commons and many other libraries are available via public repositories, and there is no need to collect *.swc files in some awful-always-growing “libs” folder. BTW, the Flex compiler is also a dependency, just recall your “sdk” folder, with 4.5.1, 4.6, 4.1.0 and other flex frameworks — all of that now can be deleted, yay!

Compiling Starling with Maven

  1. Install Maven3 :-) there are many tutorials on it, and there is no difference between the installation of ant or maven, i swear ;) (Official site: maven.apache.org)
  2. cd into the Starling root folder
  3. to compile it, run
    mvn --file starling/build/maven/pom.xml compile
  4. That's all! The SWC file will be placed at starling/build/maven/target/

Using Starling as dependency in your Maven projects

If you use Maven, you already know, how easy to attach Starling to your project, but i will remind you! :-)

  1. Configure the repository:
    <repository>
        <id>starling-repository</id>
        <url>http://repository-trylogic.forge.cloudbees.com/snapshot</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
  2. configure the dependencies:
    <dependency>
        <groupId>com.gamua</groupId>
        <artifactId>starling-framework</artifactId>
        <version>[1.2, ]</version>
        <type>swc</type>
    </dependency>
  3. Done! Easy, huh?

Where to go from here