使用 flexmojos maven 插件构建 AIR 移动应用程序

编程入门 行业动态 更新时间:2024-10-17 11:28:17
本文介绍了使用 flexmojos maven 插件构建 AIR 移动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用基于s:ViewNavigatorApplication"的 AIR 移动应用程序拨号.我使用 Apache Flex SDK 4.10 和 Flexmojos 插件 6.0.1 和 JetBrains IDEA 12.1.4

I have dial with AIR mobile application based on 's:ViewNavigatorApplication'. I use Apache Flex SDK 4.10 and Flexmojos plugin 6.0.1 and JetBrains IDEA 12.1.4

我制作了pom.xml",添加了air-framework"依赖项.IDE 成功导入并进行了项目配置.依赖项显示在Extranl Libraries"节点下,我可以看到它.但是我没有看到 ViewNavigatorApplication 类,我只看到了 WindowedApplication.pom.xml"加载airmobile-config.xml".当我尝试编译它时,我收到错误错误:无法将 's:ViewNavigatorApplication' 解析为组件实现".我很快就会把头发从头上扯下来.

I made 'pom.xml', added 'air-framework' dependencies. The IDE imported it successfully and made the project configuration. The dependencies are shown under the 'Extranl Libraries' node, I can see it. But I don't see ViewNavigatorApplication class, I only see WindowedApplication. The 'pom.xml' loads 'airmobile-config.xml'. When I try to compile it, I get the error 'Error: Could not resolve 's:ViewNavigatorApplication' to a component implementation'. I will soon tear my hair out from my head.

这里是我使用的 pom.xml.

Here is the pom.xml I use.

<project xmlns="maven.apache/POM/4.0.0" xmlns:xsi="www.w3/2001/XMLSchema-instance" xsi:schemaLocation="maven.apache/POM/4.0.0 maven.apache/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>

提前谢谢.

推荐答案

已解决:Flexmojos 正式不支持 AIR 移动应用程序.仅此而已.

RESOLVED: Officially Flexmojos doesn't support AIR mobile applications. That's all.

更多推荐

使用 flexmojos maven 插件构建 AIR 移动应用程序

本文发布于:2023-11-23 16:09:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622079.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   插件   flexmojos   maven   AIR

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!