请教:如何使用flexmjos构建air程序以及如何发布项目

发布于 2021-11-19 08:10:43 字数 29 浏览 820 评论 9

如题,求解,

求大侠给与指点

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

屌丝范 2021-11-20 13:13:50

还真没试过air打包签名,晚上回去试试。

别低头,皇冠会掉 2021-11-20 13:05:12
[JENKINS] Archiving E:MavenTestSkinBuilderLAFtargetskinBuilderLaf-1.0.0-SNAPSHOT.swc to D:Program Files (x86)JenkinsjobsMaven2Testmodulesorg.aswing.GuiBuilder$skinBuilderLafbuilds2012-08-23_11-48-53archiveorg.aswing.GuiBuilderskinBuilderLaf1.0.0-SNAPSHOTskinBuilderLaf-1.0.0-SNAPSHOT.swc
[JENKINS] Archiving E:MavenTestSkinBuilderLAFtargetskinBuilderLaf-1.0.0-SNAPSHOT.swf to D:Program Files (x86)JenkinsjobsMaven2Testmodulesorg.aswing.GuiBuilder$skinBuilderLafbuilds2012-08-23_11-48-53archiveorg.aswing.GuiBuilderskinBuilderLaf1.0.0-SNAPSHOTskinBuilderLaf-1.0.0-SNAPSHOT.swf
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-alpha-5:sign-air (default) on project GuiBuilder: Error invoking AIR api
cause : Error invoking AIR api
Stack trace : 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-alpha-5:sign-air (default) on project GuiBuilder: Error invoking AIR api
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
	at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
	at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:326)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error invoking AIR api
	at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute(SignAirMojo.java:266)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 27 more
Caused by: java.lang.NullPointerException
	at com.adobe.air.ADTOutputStream.addApplicationDescriptor(ADTOutputStream.java:330)
	at com.adobe.air.AIROutputStream.addApplicationDescriptor(AIROutputStream.java:63)
	at com.adobe.air.ApplicationPackager.addSpecialFiles(ApplicationPackager.java:242)
	at com.adobe.air.AIRPackager.addSpecialFiles(AIRPackager.java:172)
	at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:63)
	at com.adobe.air.AIRPackager.createAIR(AIRPackager.java:133)
	at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute(SignAirMojo.java:243)
	... 29 more
channel stopped
反话 2021-11-20 12:28:09

我不是大侠,你是想做持续集成吧?

回眸一笑 2021-11-20 11:04:03

回复
对的 现在在构建的过程中遇到另外一个问题,你能帮忙看一下吗

感情旳空白 2021-11-20 09:05:34

@cook_fly 什么问题?

躲猫猫 2021-11-20 07:31:46

回复
这里字数有限制,我粘贴在下面

旧城烟雨 2021-11-20 06:47:01

https://docs.sonatype.org/display/FLEXMOJOS/Home

https://docs.sonatype.org/display/FLEXMOJOS/Building+an+AIR+Application

但是能导出eclipse设置文件,用来导入到flashbuilder的flexmojos的版本是3.9,而且导出的配置文件有些问题,需要小小的修改才能导入flash builder,我的版本是4.5其他不知道。

执手闯天涯 2021-11-20 06:46:15

能给一下地址链接么

蓝颜夕 2021-11-20 00:27:36

WIKI上有完整的示例。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文