I've tried using the other <scope>'s for SWC internal, but nothing seems to help, here's my compiler output (it appears that my SWC's are being listed as -compiler.include-libraries):
[WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [INFO] Scanning for projects... [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [INFO] ------------------------------------------------------------------------ [INFO] Building pvp-client [INFO] [INFO] Id: com.webwars:pvp-client:swf:1.0-SNAPSHOT [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [INFO] [properties:read-project-properties] [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [INFO] [flexmojos:wrapper] [INFO] flexmojos 3.4-SNAPSHOT - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [INFO] Extracting template [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [INFO] [flexmojos:compile-swf] [INFO] Flexmojos 3.4-SNAPSHOT - Apache License (NO WARRANTY) - See COPYRIGHT file [WARNING] Source file was not defined, flexmojos will guess one. [WARNING] Unable to find license.jar on classpath. Check wiki for instructions about how to add it: https://docs.sonatype.org/display/FLEXMOJOS/FAQ#FAQ-1.3 [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 C:\webwars\trunk\pvp-client\target\classes\playerglobal.swc -compiler.fonts.local-fonts-snapshot C:\webwars\trunk\pvp-client\target\classes\fonts.ser -compiler.fonts.managers flash.fonts.JREFontManager flash.fonts.AFEFontManager flash.fonts.BatikFontManager -compiler.headless-server=false -compiler.include-libraries C:\Users\ddaniels\.m2\repository\de\polygonal\as3ds\1.04\as3ds-1.04.swc -compiler.keep-all-type-selectors=false -compiler.keep-generated-actionscript=false -compiler.library-path C:\Users\ddaniels\.m2\repository\com\adobe\flex\framework\applicationupdater\3.3.0.4852\applicationupdater-3.3.0.4852.swc C:\Users\ddaniels\.m2\repository\com\adobe\flex\framework\applicationupdater_ui\3.3.0.4852\applicationupdater_ui-3.3.0.4852.swc C:\Users\ddaniels\.m2\repository\com\adobe\flex\framework\flex\3.3.0.4852\flex-3.3.0.4852.swc C:\Users\ddaniels\.m2\repository\com\adobe\flex\framework\framework\3.3.0.4852\framework-3.3.0.4852.swc C:\Users\ddaniels\.m2\repository\com\adobe\flex\framework\rpc\3.3.0.4852\rpc-3.3.0.4852.swc C:\Users\ddaniels\.m2\repository\com\adobe\flex\framework\utilities\3.3.0.4852\utilities-3.3.0.4852.swc C:\Users\ddaniels\.m2\repository\com\adobe\flex\framework\rpc\3.3.0.4852\rpc-3.3.0.4852-en_US.rb.swc C:\Users\ddaniels\.m2\repository\com\adobe\flex\framework\framework\3.3.0.4852\framework-3.3.0.4852-en_US.rb.swc -compiler.locale en_US -compiler.namespaces.namespace http://www.adobe.com/2006/mxmlC:\webwars\trunk\pvp-client\target\classes\config-3.3.0.4852\mxml-manifest.xml -compiler.optimize=true -compiler.source-path C:\webwars\trunk\pvp-client\lib C:\webwars\trunk\pvp-client\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.displayed10DaysLeftMessage true -licenses.license flexbuilder3.displayed20DaysLeftMessage true -licenses.license flexbuilder3.displayedFirstLaunchMessage true -metadata.date Sat Oct 10 00:04:28 CDT 2009 -metadata.localized-title pvp-client x-default -target-player 10.0.0 -use-network=true -verify-digests=true -load-config= -metadata.language+=en_US -static-link-runtime-shared-libraries=false [WARNING] C:\webwars\trunk\pvp-client\lib\com\flashdynamix\motion\plugins\MovieClipTween.as:[118,24] No constructor function was specified for class MovieClipTweenObject.internal dynamic class MovieClipTweenObject { [WARNING] C:\webwars\trunk\pvp-client\lib\com\flashdynamix\motion\plugins\DisplayTween.as:[114,24] No constructor function was specified for class DisplayTweenObject.internal dynamic class DisplayTweenObject { [INFO] Written link report to C:\webwars\trunk\pvp-client\target\pvp-client-1.0-SNAPSHOT-link-report.xml [INFO] Compiling module C:\webwars\trunk\pvp-client\src\main.mxml [WARNING] C:\webwars\trunk\pvp-client\lib\com\flashdynamix\motion\plugins\MovieClipTween.as:[118,24] No constructor function was specified for class MovieClipTweenObject.internal dynamic class MovieClipTweenObject { [WARNING] C:\webwars\trunk\pvp-client\lib\com\flashdynamix\motion\plugins\DisplayTween.as:[114,24] No constructor function was specified for class DisplayTweenObject.internal dynamic class DisplayTweenObject { [INFO] Compiling module C:\webwars\trunk\pvp-client\src\battle.mxml [WARNING] C:\webwars\trunk\pvp-client\lib\com\flashdynamix\motion\plugins\MovieClipTween.as:[118,24] No constructor function was specified for class MovieClipTweenObject.internal dynamic class MovieClipTweenObject { [WARNING] C:\webwars\trunk\pvp-client\lib\com\flashdynamix\motion\plugins\DisplayTween.as:[114,24] No constructor function was specified for class DisplayTweenObject.internal dynamic class DisplayTweenObject { [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [INFO] [flexmojos:test-compile] [INFO] flexmojos 3.4-SNAPSHOT - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [WARNING] Unable to find license.jar on classpath. Check wiki for instructions about how to add it: https://docs.sonatype.org/display/FLEXMOJOS/FAQ#FAQ-1.3 [WARNING] Attempting to build MavenProject instance for Artifact (org.sonatype.flexmojos:flexmojos-maven-plugin:3.4-20091006.130902-77) of type: maven-plugin; constructing POM artifact instead. [INFO] [flexmojos:test-run] [INFO] flexmojos 3.4-SNAPSHOT - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [INFO] ------------------------------------------------------------------------ [INFO] Tests run: 0, Failures: 0, Errors: 0, Time Elapsed: 0 sec [INFO] [install:install] [INFO] Installing C:\webwars\trunk\pvp-client\target\pvp-client-1.0-SNAPSHOT.swf to C:\Users\ddaniels\.m2\repository\com\webwars\pvp-client\1.0-SNAPSHOT\pvp-client-1.0-SNAPSHOT.swf [INFO] Installing C:\webwars\trunk\pvp-client\target\pvp-client-1.0-SNAPSHOT-link-report.xml to C:\Users\ddaniels\.m2\repository\com\webwars\pvp-client\1.0-SNAPSHOT\pvp-client-1.0-SNAPSHOT-link-report.xml [INFO] Installing C:\webwars\trunk\pvp-client\target\pvp-client-1.0-SNAPSHOT-main.swf to C:\Users\ddaniels\.m2\repository\com\webwars\pvp-client\1.0-SNAPSHOT\pvp-client-1.0-SNAPSHOT-main.swf [INFO] Installing C:\webwars\trunk\pvp-client\target\pvp-client-1.0-SNAPSHOT-battle.swf to C:\Users\ddaniels\.m2\repository\com\webwars\pvp-client\1.0-SNAPSHOT\pvp-client-1.0-SNAPSHOT-battle.swf [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17 seconds [INFO] Finished at: Sat Oct 10 00:04:39 CDT 2009 [INFO] Final Memory: 10M/106M [INFO] ------------------------------------------------------------------------ ~ doug daniels On Fri, Oct 9, 2009 at 11:46 PM, Doug Daniels <[email protected]>wrote: > > > I have a Flex project with multiple MXML files so I'm using the > <moduleFiles> configuration of the flexmojos-maven-plugin as follows > (we include a SWC dependency also): > > <properties> > <flexSDKVersion>3.3.0.4852</flexSDKVersion> > <flexmojos.version>3.4-SNAPSHOT</flexmojos.version> > <flashVersion>10.0.0</flashVersion> > </properties> > > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-maven-plugin</artifactId> > <extensions>true</extensions> > <version>${flexmojos.version}</version> > <configuration> > <targetPlayer>${flashVersion}</targetPlayer> > <moduleFiles> > <module>main.mxml</module> > <module>battle.mxml</module> > </moduleFiles> > > > When I run the outputted SWF's from my target/ folder for example pvp- > client-1.0-SNAPSHOT-main.swf or pvp-client-1.0-SNAPSHOT-battle.swf in > a browser I get the following Flash Debug error: > > TypeError: Error #1009: Cannot access a property or method of a null > object reference. > at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/ > internal::docFrameHandler() > at mx.managers::SystemManager/docFrameListener() > > > But if I run the main artifact pvp-client-1.0-SNAPSHOT.swf (which I > believe is compiled off of my main.mxml) I don't get any errors. > > Does the flexmojo plugin somehow compile the modules differently than > the main artifact, am I missing some configuration flag? The module > swf's are significantly smaller than the default artifact SWF (58kb > versus 783kb), which leads me to believe however I'm putting together > the modules it's not linking in something? > > Here's my full pom.xml in case the details in there help (only > weirdness is we need Flash 10, and we include a SWC dependency > installed in our local Nexus repo). > > <?xml version="1.0" encoding="UTF-8"?> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// > www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <parent> > <groupId>com.webwars</groupId> > <artifactId>pvp-parent</artifactId> > <version>1.0-SNAPSHOT</version> > <relativePath>../pvp-parent</relativePath> > </parent> > <groupId>com.webwars</groupId> > <artifactId>pvp-client</artifactId> > <version>1.0-SNAPSHOT</version> > <name>pvp-client</name> > <packaging>swf</packaging> > <properties> > <flexSDKVersion>3.3.0.4852</flexSDKVersion> > <flexmojos.version>3.4-SNAPSHOT</flexmojos.version> > <flashVersion>10.0.0</flashVersion> > </properties> > <repositories> > <repository> > <id>FlexGroup Release</id> > <name>FlexGroup Release</name> > <url>http://repository.sonatype.org/content/groups/ > flexgroup/ <http://repository.sonatype.org/content/groups/%0Aflexgroup/> > </url> > <snapshots> > <enabled>true</enabled> > </snapshots> > </repository> > </repositories> > <pluginRepositories> > <pluginRepository> > <id>FlexGroup Release</id> > <name>FlexGroup Release</name> > <url>http://repository.sonatype.org/content/groups/ > flexgroup/ <http://repository.sonatype.org/content/groups/%0Aflexgroup/> > </url> > </pluginRepository> > </pluginRepositories> > <build> > <sourceDirectory>src</sourceDirectory> > <testSourceDirectory>test</testSourceDirectory> > <plugins> > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-maven-plugin</artifactId> > <extensions>true</extensions> > <version>${flexmojos.version}</version> > <configuration> > <targetPlayer>${flashVersion}</targetPlayer> > <moduleFiles> > <module>main.mxml</module> > <module>battle.mxml</module> > </moduleFiles> > <sourcePaths> > <path>lib</path> > <path>src</path> > </sourcePaths> > </configuration> > <dependencies> > <dependency> > <groupId>com.adobe.flex</groupId> > <artifactId>compiler</artifactId> > <version>${flexSDKVersion}</version> > <type>pom</type> > </dependency> > </dependencies> > </plugin> > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-maven-plugin</artifactId> > <version>${flexmojos.version}</version> > <executions> > <execution> > <goals> > <goal>wrapper</goal> > </goals> > <configuration> > <parameters> > <templateURI>folder:/html-template/</ > templateURI> > <swf>${build.finalName}</swf> > <width>100%</width> > <height>100%</height> > </parameters> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > </build> > <dependencies> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>flex-framework</artifactId> > <version>${flexSDKVersion}</version> > <type>pom</type> > <exclusions> > <exclusion> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>playerglobal</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>playerglobal</artifactId> > <version>${flexSDKVersion}</version> > <classifier>10</classifier> > <type>swc</type> > </dependency> > <dependency> > <groupId>com.adobe.flex</groupId> > <artifactId>compiler</artifactId> > <version>${flexSDKVersion}</version> > <type>pom</type> > <scope>provided</scope> > </dependency> > <!-- flexmojos Unit testing support --> > <dependency> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-unittest-flexunit4</artifactId> > <version>${flexmojos.version}</version> > <type>swc</type> > <scope>test</scope> > </dependency> > <dependency> > <groupId>de.polygonal</groupId> > <artifactId>as3ds</artifactId> > <version>1.04</version> > <type>swc</type> > </dependency> > </dependencies> > </project> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
