qickrooms / flex-mojos

Automatically exported from code.google.com/p/flex-mojos
0 stars 0 forks source link

Building Air project will not work with Maven 2.0.9 #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Upgraded to Maven 2.0.9 (this worked with 2.0.8)
2. compiled
3.

What is the expected output? What do you see instead?
compiling Air project is using playerglobal.swc instead of airglobal.swc. 
This causes an error of 

[INFO] Loading configuration file /Applications/Adobe Flex Builder 3
Plug-in/sdks/3.1.0/frameworks/air-config.xml
[ERROR]
/Users/sean/.m2/repository/com/adobe/flex/framework/airframework/3.2.0.3958/airf
ramework-3.2.0.3958.swc(mx/core/IWindow):[-1,-1]
Type was not found or was not a compile-time constant: NativeWindow.
[ERROR] 

What version of the product are you using? On what operating system?
OSX 10.5
flex-mojos 2.0.3

Please provide any additional information below.

Info from debug build

[INFO] Flex compiler configurations:
-compiler.accessible=false 
-compiler.actionscript-file-encoding UTF-8 
-compiler.allow-source-path-overlap=false 
-compiler.as3=true 
-compiler.debug=false 
-compiler.es=false 
-compiler.external-library-path
/Users/sean/Documents/workspace/XXXX/target/classes/libraries/playerglobal.swc 
-compiler.fonts.local-fonts-snapshot
/Users/sean/Documents/workspace/XXXXXX/target/classes/fonts.ser 
-compiler.headless-server=false 
-compiler.include-libraries= 
-compiler.keep-all-type-selectors=false 
-compiler.keep-generated-actionscript=false 
-compiler.library-path
/Users/sean/.m2/repository/com/adobe/flex/framework/applicationupdater/3.2.0.395
8/applicationupdater-3.2.0.3958.swc
/Users/sean/.m2/repository/com/adobe/flex/framework/applicationupdater_ui/3.2.0.
3958/applicationupdater_ui-3.2.0.3958.swc
/Users/sean/.m2/repository/com/adobe/flex/framework/flex/3.2.0.3958/flex-3.2.0.3
958.swc
/Users/sean/.m2/repository/com/adobe/flex/framework/framework/3.2.0.3958/framewo
rk-3.2.0.3958.swc
/Users/sean/.m2/repository/com/adobe/flex/framework/rpc/3.2.0.3958/rpc-3.2.0.395
8.swc
/Users/sean/.m2/repository/com/adobe/flex/framework/utilities/3.2.0.3958/utiliti
es-3.2.0.3958.swc
/Users/sean/.m2/repository/com/adobe/flex/framework/airframework/3.2.0.3958/airf
ramework-3.2.0.3958.swc
/Users/sean/.m2/repository/com/adobe/flex/framework/servicemonitor/3.2.0.3958/se
rvicemonitor-3.2.0.3958.swc
/Users/sean/.m2/repository/com/adobe/cairngorm/Cairngorm/2.2.1/Cairngorm-2.2.1.s
wc
/Users/sean/.m2/repository/com/xxxxx/calendarlib/1.0.0/calendarlib-1.0.0.swc 
/Users/sean/.m2/repository/adobe-flex2/fds/2.0.1/fds-2.0.1.swc
/Users/sean/.m2/repository/adobe-flex2/fds_rb/2.0.1/fds_rb-2.0.1.swc
/Users/sean/.m2/repository/flexlib/flexlib/2.4/flexlib-2.4.swc
/Users/sean/.m2/repository/com/adobe/flex/framework/rpc/3.2.0.3958/rpc-3.2.0.395
8-en_US.rb.swc
/Users/sean/.m2/repository/com/adobe/flex/framework/framework/3.2.0.3958/framewo
rk-3.2.0.3958-en_US.rb.swc
/Users/sean/.m2/repository/com/adobe/flex/framework/airframework/3.2.0.3958/airf
ramework-3.2.0.3958-en_US.rb.swc

-compiler.locale en_US 
-compiler.namespaces.namespace http://www.adobe.com/2006/mxml
/Users/sean/Documents/workspace/XXXXX/target/classes/configs/mxml-manifest.xml 
-compiler.optimize=true 
-compiler.source-path /Users/sean/Documents/workspace/xxxxxx/src 
-compiler.strict=true 
-compiler.use-resource-bundle-metadata=true 
-compiler.verbose-stacktraces=false 
-default-background-color 8821927 
-default-frame-rate 24 
-default-script-limits 1000 60 
-default-size 500 375 
-licenses.license flexbuilder3 1377-4005-7281-5456-8773-4981 
-load-config /Applications/Adobe Flex Builder 3
Plug-in/sdks/3.1.0/frameworks/air-config.xml 
-metadata.date Fri Feb 20 12:16:04 CST 2009 
-target-player 9.0.0 
-use-network=true 
-verify-digests=true 
[INFO] Loading configuration file /Applications/Adobe Flex Builder 3
Plug-in/sdks/3.1.0/frameworks/air-config.xml
[ERROR]
/Users/sean/.m2/repository/com/adobe/flex/framework/airframework/3.2.0.3958/airf
ramework-3.2.0.3958.swc(mx/core/IWindow):[-1,-1]
Type was not found or was not a compile-time constant: NativeWindow.
[ERROR] 

Original issue reported on code.google.com by sean.sch...@gmail.com on 20 Feb 2009 at 6:27

GoogleCodeExporter commented 9 years ago
I think you have the wrong dependencies on your pom.

Check using mvn dependency:tree

Playerglobal should not be present on output.

BTW, Issues now should be opened at:
https://issues.sonatype.org/browse/FLEXMOJOS

VELO

Original comment by velo...@gmail.com on 20 Feb 2009 at 6:37

GoogleCodeExporter commented 9 years ago
Thanks, that was the problem.

I had both the framework and air-framework as a dependency.  Removing framework 
fixed
the problem.

It's interesting that in Maven 2.0.8 this didn't cause an error, but in 2.0.9 
(and
10) it does.  

Original comment by sean.sch...@gmail.com on 20 Feb 2009 at 7:34