FlexMojos - 运行时错误 - VerifyError#1014 mx.controls.List类未找到

时间:2012-01-20 14:21:48

标签: maven flex flex4.5 verifyerror flexmojos

我正在使用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>

感谢任何帮助

1 个答案:

答案 0 :(得分:1)

您是否尝试从FlexMojos中删除“主题”配置并转移到“主题”作用域依赖项?有关背景信息,请参阅以下讨论(在Stackoverflow上):

How to define a new kind of scope in Maven?