Compiling via TeamCity / Maven

Decapyre's Avatar

Decapyre

17 Apr, 2012 11:56 PM

I've got a game I am working on. Debug and Release versions work fine from Flash Builder IDE. When the app gets compiled via Teamcity using Maven flexmojos I get Null object reference errors to EventMap/mapListener.

I am using Robotlegs 1.5.2 swc

I've added :

Inject PostConstruct

to my maven pom.xml just in case, but it still does not work.
RobotLegs is also added as a dependency in the pom.

This is a pure as3 project. Outputting a single SWF file.

I can provide more information if anyone doesn't know the fix off hand. Thanks guys!

  1. Support Staff 2 Posted by Ondina D.F. on 19 Apr, 2012 08:52 AM

    Ondina D.F.'s Avatar

    Hi Decapyre,

    I have no idea how Maven Flexmojos work, but after looking at these:

    https://github.com/robotlegs/robotlegs-framework/blob/master/pom.xml
    https://github.com/robotlegs/robotlegs-framework/blob/f77b56afc9544...

    I guess that you have to add the keep-as3-metadata tag for PostConstruct and Inject,
    and also the third party dependencies: swiftsuspenders.

    Here another link (Maven usage)
    https://github.com/robotlegs/robotlegs-framework/blob/f77b56afc9544...

    I’m not sure how much this helps.

    Cheers,
    Ondina

  2. Support Staff 3 Posted by Ondina D.F. on 19 Apr, 2012 09:07 AM

    Ondina D.F.'s Avatar
  3. 4 Posted by decapyre on 19 Apr, 2012 01:49 PM

    decapyre's Avatar

    Here is what i've figured out.

    Even if you keepAs3MetaData but run an optimize goal later in the pom it will stripe out all metadata.

    Fix is to use flexmojos 4.* +
    My company was using an older version of maven/flexmojos

  4. Support Staff 5 Posted by Ondina D.F. on 19 Apr, 2012 02:28 PM

    Ondina D.F.'s Avatar

    Fix is to use flexmojos 4.* + My company was using an older version of maven/flexmojos

    Good to know.
    Glad you figured it out.

  5. Ondina D.F. closed this discussion on 19 Apr, 2012 02:28 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac