FlexMojos-运行时错误-VerifyError #1014 mx.controls.List 类未找到
我正在使用 FlexMojos 4.0-RC2 和 Flex SDK 4.5.1 来编译我的应用程序,该应用程序由多个模块组成。
编译成功,但出现一些无关紧要的警告。
当我尝试运行该应用程序时,我收到VerifyError #1014,指出未找到 mx.controls.List。
我尝试了其他几件事......
将 moduleLoadExterns 设置为 true 或 false,将静态链接运行时共享库设置为 true、false,添加 swf 版本标记......
我不太确定我还能做什么解决问题...
${target.flash.player.version} 是 10.0
下面是我正在使用的 flexmojo 配置...
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-RC2</version>
<extensions>true</extensions>
<configuration>
<sourceFile>FundsFlexApp.mxml</sourceFile>
<contextRoot>funds</contextRoot>
<targetPlayer>${target.flash.player.version}</targetPlayer>
<services>${basedir}/target/generated-resources/services-config.xml</services>
<themes>
<theme>
${settings.localRepository}/com/adobe/flex/framework/framework/${flex.sdk.version}/framework-${flex.sdk.version}-configs/themes/halo/halo.swc
</theme>
</themes>
<modules>
<module>CounterpartyMaintenanceModule.mxml</module>
<module>ManageProposedLimitsModule.mxml</module>
<module>NavUploadModule.mxml</module>
</modules>
<defines>
<property>
<name>CONFIG::debugging</name>
<value>true</value>
</property>
<property>
<name>CONFIG::buildTimeStamp</name>
<value>'${maven.build.timestamp}'</value>
</property>
<property>
<name>CONFIG::versionNumber</name>
<value>'${project.build.version}'</value>
</property>
<property>
<name>CONFIG::fundsModuleUrl</name>
<value>'${funds.module.url}'</value>
</property>
<property>
<name>CONFIG::fundsEndpointUrl</name>
<value>'${funds.endpoint.url}'</value>
</property>
<property>
<name>CONFIG::excelExportEndpointUrl</name>
<value>'${funds.excelexport.url}'</value>
</property>
</defines>
<debug>${flex.debug}</debug>
<storepass/>
<linkReportAttach>true</linkReportAttach>
<allowSourcePathOverlap>true</allowSourcePathOverlap>
<headlessServer>true</headlessServer>
<localesCompiled>
<locale>en_US</locale>
</localesCompiled>
<keepGeneratedActionscript>true</keepGeneratedActionscript>
<includeSources>
<source>${basedir}/src/main/flex</source>
</includeSources>
<as3>true</as3>
<flashPlayerCommand>flashplayer</flashPlayerCommand>
<modulesLoadExterns>false</modulesLoadExterns>
<staticLinkRuntimeSharedLibraries>true</staticLinkRuntimeSharedLibraries>
<strict>true</strict>
<swfVersion>11</swfVersion>
</configuration>
<executions>
<execution>
<id>default-generate</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<templates>
<base-bean-template>${basedir}/src/main/templates/beanBaseBlaze.gsp</base-bean-template>
</templates>
<includeJavaClasses>
<includeClass>...different classes....
</includeClass>
</includeJavaClasses>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
<classifier>${flash.player.classifier}</classifier>
</dependency>
<dependency>
<groupId>${flex.sdk.license.groupid}</groupId>
<artifactId>license</artifactId>
<version>${flex.sdk.version}</version>
</dependency>
</dependencies>
</plugin>
任何帮助表示赞赏
I'm using FlexMojos 4.0-RC2 and Flex SDK 4.5.1 to compile my app which consists of several modules.
The compilation is sucessful with insignificant warnings.
When I try to run the application I get a VerifyError #1014 saying that mx.controls.List is not found.
I tried several other things.....
turning modulesLoadExterns to either true or false, setting static link runtime shared libraries to true, false, adding the swf version tag....
I'm not really sure what else I can do to resolve the issue....
${target.flash.player.version} is 10.0
Below is the flexmojo configuration I'm using...
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-RC2</version>
<extensions>true</extensions>
<configuration>
<sourceFile>FundsFlexApp.mxml</sourceFile>
<contextRoot>funds</contextRoot>
<targetPlayer>${target.flash.player.version}</targetPlayer>
<services>${basedir}/target/generated-resources/services-config.xml</services>
<themes>
<theme>
${settings.localRepository}/com/adobe/flex/framework/framework/${flex.sdk.version}/framework-${flex.sdk.version}-configs/themes/halo/halo.swc
</theme>
</themes>
<modules>
<module>CounterpartyMaintenanceModule.mxml</module>
<module>ManageProposedLimitsModule.mxml</module>
<module>NavUploadModule.mxml</module>
</modules>
<defines>
<property>
<name>CONFIG::debugging</name>
<value>true</value>
</property>
<property>
<name>CONFIG::buildTimeStamp</name>
<value>'${maven.build.timestamp}'</value>
</property>
<property>
<name>CONFIG::versionNumber</name>
<value>'${project.build.version}'</value>
</property>
<property>
<name>CONFIG::fundsModuleUrl</name>
<value>'${funds.module.url}'</value>
</property>
<property>
<name>CONFIG::fundsEndpointUrl</name>
<value>'${funds.endpoint.url}'</value>
</property>
<property>
<name>CONFIG::excelExportEndpointUrl</name>
<value>'${funds.excelexport.url}'</value>
</property>
</defines>
<debug>${flex.debug}</debug>
<storepass/>
<linkReportAttach>true</linkReportAttach>
<allowSourcePathOverlap>true</allowSourcePathOverlap>
<headlessServer>true</headlessServer>
<localesCompiled>
<locale>en_US</locale>
</localesCompiled>
<keepGeneratedActionscript>true</keepGeneratedActionscript>
<includeSources>
<source>${basedir}/src/main/flex</source>
</includeSources>
<as3>true</as3>
<flashPlayerCommand>flashplayer</flashPlayerCommand>
<modulesLoadExterns>false</modulesLoadExterns>
<staticLinkRuntimeSharedLibraries>true</staticLinkRuntimeSharedLibraries>
<strict>true</strict>
<swfVersion>11</swfVersion>
</configuration>
<executions>
<execution>
<id>default-generate</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<templates>
<base-bean-template>${basedir}/src/main/templates/beanBaseBlaze.gsp</base-bean-template>
</templates>
<includeJavaClasses>
<includeClass>...different classes....
</includeClass>
</includeJavaClasses>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
<classifier>${flash.player.classifier}</classifier>
</dependency>
<dependency>
<groupId>${flex.sdk.license.groupid}</groupId>
<artifactId>license</artifactId>
<version>${flex.sdk.version}</version>
</dependency>
</dependencies>
</plugin>
Any help is appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过从 FlexMojos 中删除“主题”配置并转移到“主题”范围依赖项?请参阅以下讨论(在 Stackoverflow 上)了解背景:
如何在 Maven 中定义一种新的作用域?
Have you tried removing the "theme" configuration from FlexMojos and moving to the "theme" scoped dependency? Please see the following discussion (on Stackoverflow) for background:
How to define a new kind of scope in Maven?