2013-10-28 63 views
0

我使用基於'ViewNavigatorApplication'的AIR移動應用程序撥號。 我使用Apache Flex SDK 4.10和Flexmojos插件6.0.1和JetBrains IDEA 12.1.4使用flexmojos maven插件構建AIR移動應用程序

我做了'pom.xml',添加了'air-framework'依賴項。 IDE成功導入它並進行項目配置。依賴項顯示在「Extranl庫」節點下,我可以看到它。但是我沒有看到ViewNavigatorApplication類,我只能看到WindowedApplication。 'pom.xml'加載'airmobile-config.xml'。當我嘗試編譯它時,出現錯誤'Error:Could not resolve's:ViewNavigatorApplication'to a component implementation'。我很快就會把頭髮從頭上撕下來。

這是我使用的pom.xml。提前

<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> 
    <name>Mobile Catalog</name> 
    <parent> 
     <groupId>com.uni.versal</groupId> 
     <artifactId>versal</artifactId> 
     <version>2.0-SNAPSHOT</version> 
    </parent> 
    <artifactId>mobile-catalog</artifactId> 
    <packaging>air</packaging> 

    <properties> 
     <!--the application name which must match the main mxml file--> 
     <!--and application descriptor file names --> 
     <application.name>MobileCatalog</application.name> 
    </properties> 

<build> 
<directory>${project.basedir}/target</directory> 
<finalName>${project.artifactId}</finalName> 
<sourceDirectory>src/main/flex</sourceDirectory> 

<resources> 
    <resource> 
    <directory>src/main/resources</directory> 
    </resource> 
</resources> 

<plugins> 
    <plugin> 
    <groupId>net.flexmojos.oss</groupId> 
    <artifactId>flexmojos-maven-plugin</artifactId> 
    <extensions>true</extensions> 

    <dependencies> 
     <dependency> 
     <groupId>com.adobe.flex</groupId> 
     <artifactId>compiler</artifactId> 
     <version>${flex.version}</version> 
     <type>pom</type> 
     </dependency> 
     <dependency> 
     <groupId>com.adobe.air</groupId> 
     <artifactId>compiler</artifactId> 
     <version>${air.version}</version> 
     <type>pom</type> 
     </dependency> 
    </dependencies> 

    <configuration> 
     <!--<targetPlayer>11</targetPlayer>--> 
     <swfVersion>13</swfVersion> 
     <flexBuilderCompatibility>true</flexBuilderCompatibility> 
     <loadConfig>${settings.localRepository}/com/adobe/flex/framework/framework/${flex.version}/configs_zip/airmobile-config.xml</loadConfig> 
     <sourceFile>${application.name}.mxml</sourceFile> 
     <descriptorTemplate>${basedir}/src/main/flex/${application.name}-app.xml</descriptorTemplate> 
     <!--<configurationReport>true</configurationReport>--> 

     <keystore>${project.basedir}/mobile_catalog.p12</keystore> 
     <storepass>asdf</storepass> 

     <!--optionally include files in the AIR package --> 
     <includeFileSets> 
     <fileSet> 
      <directory>src/main/resources</directory> 
      <includes> 
      <include>*.*</include> 
      </includes> 
     </fileSet> 
     </includeFileSets> 

     <storepass></storepass> 
     <contextRoot>versal</contextRoot> 
     <!--<localesCompiled>--> 
     <!--<locale>en_US</locale>--> 
     <!--<locale>ru_RU</locale>--> 
     <!--</localesCompiled>--> 
     <localesSourcePath>src/main/locales/{locale}</localesSourcePath> 

     <defines> 
     <property> 
      <name>CONFIG::debug</name> 
      <value>true</value> 
     </property> 
     <property> 
      <name>CONFIG::release</name> 
      <value>false</value> 
     </property> 
     </defines> 

     <debug>true</debug> 
     <optimize>false</optimize> 
    </configuration> 

    <executions> 
     <execution> 
     <goals> 
      <goal>sign-air</goal> 
     </goals> 
     </execution> 
    </executions> 
    </plugin> 
</plugins> 
</build> 

<dependencies> 
    <dependency> 
    <groupId>com.adobe.flex.framework.air</groupId> 
    <artifactId>air-framework</artifactId> 
    <version>${flex.version}</version> 
    <type>pom</type> 
    </dependency> 
</dependencies> 

感謝名單。

回答

0

已解決:正式Flexmojos不支持AIR移動應用程序。就這樣。

相關問題