Hello Chris,

I don't have "keepGeneratedActionscript" set at all.
If you look at the complete plugin-configuration, I am now wondering if 
the part where it speaks about flexbuilder licenses might be the culprit.
As you can see, playerglobal is set (and defined as 17.0 higher in the pom)

<plugin>
        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>${flex-mojos.version}</version>
        <extensions>true</extensions>
        <dependencies>
                <dependency>
                        <groupId>com.adobe.flash.framework</groupId>
                        <artifactId>playerglobal</artifactId>
                        <version>${player.version}</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>org.apache.flex</groupId>
                        <artifactId>compiler</artifactId>
                        <version>${flex.version}</version>
                        <type>pom</type>
                </dependency>                                           
                <dependency>
                                <groupId>com.adobe.flex.compiler</groupId>
                                <artifactId>flex-fontkit</artifactId>
                                <version>4.5.1.21328</version>
                                <type>jar</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.fontkit</groupId>
                        <artifactId>afe</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>com.adobe.fontkit</groupId>
                        <artifactId>aglj40</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>com.adobe.fontkit</groupId>
                        <artifactId>rideau</artifactId>
                        <version>1.0</version>
                </dependency>
        </dependencies>
        <configuration>
                <locales>
                        <locale>en_US</locale>
                </locales>
                <incremental>true</incremental>
                <debug>${flex.debug}</debug>
                <optimize>${flex.optimize}</optimize>
                <useNetwork></useNetwork>
                <definesDeclaration>
                        <property>
                                <name>CONFIG::debugging</name>
                                <value>${flex.debug}</value>
                        </property>
                </definesDeclaration>

                <verboseStacktraces>true</verboseStacktraces>
                <!-- Spring actionscript metadata tags -->
                <keepAs3Metadatas>
                        <name>Autowired</name>
                        <name>RouteEvents</name>
                        <name>EventHandler</name>
                        <name>Component</name>
                        <name>Property</name>
                        <name>Invoke</name>
                        <name>Constructor</name>
                </keepAs3Metadatas>
                <warnings>
                        <noConstructor>false</noConstructor>
                </warnings>
                <targetPlayer>${player.version}</targetPlayer>
                <licenses>
                        
<flexbuilder3>1377-4003-1016-3152-1561-5780</flexbuilder3>
                </licenses>
                <fonts>
                        <managers>
                                
<manager-class>flash.fonts.AFEFontManager</manager-class>
                                
<manager-class>flash.fonts.CFFFontManager</manager-class>
                        </managers>
                </fonts>
                <rslUrls>
                        <!-- url>{artifactId}-{version}.{extension}</url -->
                        <!-- url>{artifactId}.swf</url -->
                        <url>{artifactId}-swc/library.swf</url>
                </rslUrls>
                <policyFileUrls>
                        <url>/</url>
                </policyFileUrls>
        </configuration>
</plugin>


-----Original Message-----
From: Christofer Dutz [mailto:[email protected]] 
Sent: woensdag 20 mei 2015 11:28
To: [email protected]
Subject: AW: issues with flexmojos 7.1 / SDK 4.14.1 / Flash Builder 4.7 / Maven 
3.2.5

Hi Filip,

Just a hunch ... do you have "keepGeneratedActionscript" set to true? I had a 
similar error in an Air mobile application yesterday and was struggling to find 
out what's actually going wrong. Removing this resolved my problem. If you want 
an explanation why, don't ask me. I just stumbled over this using brute-force 
while trying to create an example project to reproduce my error.

>From the parts I could see there doesn't seem to be anything wrong with the 
>settings. Do you have a reference to playerglobal:swc:17.0? Cause this is the 
>artifact containing the implementation of that class. (airglobal:swc:17.0 if 
>it's an air project)

Chris

________________________________________
Von: L'Hommelet Filip <Filip.L'[email protected]>
Gesendet: Mittwoch, 20. Mai 2015 10:26
An: [email protected]
Betreff: issues with flexmojos 7.1 / SDK 4.14.1 / Flash Builder 4.7 / Maven 
3.2.5

Hi all.

I'm having trouble compiling my Flex Project using maven and flexmojos.

Building in Flash Builder 4.7 (with SDK 4.14.1) works just fine.

However, when doing a maven install, I get following error on one of my mxml 
components.

Error: Could not resolve
<fx:Object> to a component implementation.

It feels like Flash Builder and maven are not compiling the same way.
I must be missing something here.  Anyone has any pointers for me?

Relevant (I think) parts of my pom:

<properties>
                <flex.version>4.14.1</flex.version>
                <flex-mojos.version>7.1.0-SNAPSHOT</flex-mojos.version>
                <player.version>17.0</player.version>
                <flex.debug>false</flex.debug>
                <flex.optimize>true</flex.optimize>
                <flex.theme>halo</flex.theme>
                <flex.theme.type>swc</flex.theme.type>
</properties>

<pluginManagement>
                <plugins>
                                <plugin>
                                               
<groupId>net.flexmojos.oss</groupId>
                                               
<artifactId>flexmojos-maven-plugin</artifactId>
                                               
<version>${flex-mojos.version}</version>
                                               <extensions>true</extensions>
                                               <dependencies>
                                                               <dependency>
                                                                              
<groupId>org.apache.flex</groupId>
                                                                              
<artifactId>compiler</artifactId>
                                                                              
<version>${flex.version}</version>
                                                                              
<type>pom</type>
                                                               </dependency>


Thanks in advance for any help!

Kr,
Filip

Reply via email to