我正在使用 FlexMojos 4.0-RC2 和 Flex SDK 4.5.1 来编译我的应用程序,它由几个模块组成。
编译成功,但出现了一些不重要的警告。
当我尝试运行该应用程序时,我收到一个 VerifyError #1014,说找不到 mx.controls.List。
我尝试了其他几件事......
将 modulesLoadExterns 设置为 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>
任何帮助表示赞赏