Compiling via TeamCity / Maven
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!
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Ondina D.F. on 19 Apr, 2012 08:52 AM
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
Support Staff 3 Posted by Ondina D.F. on 19 Apr, 2012 09:07 AM
A gentle introduction to Flexmojos & Maven
https://github.com/justinjmoses/flexmojos-introduction/tree/31ec449...
Using robotlegs:
https://github.com/justinjmoses/flexmojos-introduction/tree/31ec449...
4 Posted by decapyre on 19 Apr, 2012 01:49 PM
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
Support Staff 5 Posted by Ondina D.F. on 19 Apr, 2012 02:28 PM
Good to know.
Glad you figured it out.
Ondina D.F. closed this discussion on 19 Apr, 2012 02:28 PM.