Sorry, I'm not a mac person.
On Wed, Jan 19, 2011 at 5:40 PM, Andrew Westberg
<[email protected]>wrote:
> I'm struggling with the configuration for building a .DMG package on
> OSX 10.6. I keep getting the following error:
>
>
> [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
> plugin:4.0-beta-2:sign-air (default-sign-air) on project
> virtualclipboard-air: Error invoking AIR api: Platform conversion
> failed. Process exited with error 4. Output was "" -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
> beta-2:sign-air (default-sign-air) on project virtualclipboard-air:
> 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:319)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
> 290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> 230)
> at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
> 409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> 352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> invoking AIR api
> at
> org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java:
> 341)
> at
>
> org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody0(SignAirMojo.java:
> 355)
> at
>
> org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody1$advice(SignAirMojo.java:
> 24)
> at
>
> org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody2(SignAirMojo.java:
> 352)
> at
>
> org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody3$advice(SignAirMojo.java:
> 17)
> at
> org.sonatype.flexmojos.plugin.air.SignAirMojo.execute(SignAirMojo.java:
> 1)
> at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
> 107)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> 209)
> ... 19 more
> Caused by: java.io.IOException: Platform conversion failed. Process
> exited with error 4. Output was ""
> at
> com.adobe.air.nai.NativePackager.conversionFail(NativePackager.java:
> 193)
> at
>
> com.adobe.air.nai.NativePackager.invokePlatformConversion(NativePackager.java:
> 174)
> at
> com.adobe.air.nai.NativePackager.createPackage(NativePackager.java:
> 75)
> at
> org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java:
> 318)
> ... 26 more
>
> my configuration includes the following:
> <packages>
> <pack>air</pack>
> <pack>${os.packaging}</pack>
> </packages>
>
> where os.packaging="dmg" which is set by a maven profile. (on windows,
> it's set to "exe" and works fine there).
>
> I'm thinking that maybe something is wrong with the way I'm setting up
> the SDK in the maven repository. Here is my configuration for the
> maven-external-dependency-plugin which I'm using to pull down the OSX
> AIR sdk. Also, the unit tests don't seem to work right on OSX either,
> so there's probably something wrong with my debugger setup as well.
>
>
> <plugin>
> <groupId>com.savage7.maven.plugins</
> groupId>
> <artifactId>maven-external-dependency-
> plugin</artifactId>
> <version>0.5-SONATYPE-r116</version>
> <configuration>
> <createChecksum>true</
> createChecksum>
>
> <skipChecksumVerification>false</skipChecksumVerification>
> <artifactItems>
> <!-- Mac OSX -->
> <artifactItem>
>
> <groupId>com.adobe</
> groupId>
> <artifactId>flashplayer</artifactId>
> <version>10.1</
> version>
>
> <classifier>mac</classifier>
>
> <packaging>bin</packaging>
>
> <downloadUrl>http://download.macromedia.com/pub/flashplayer/updaters/
> 10/flashplayer_10_sa_de<http://download.macromedia.com/pub/flashplayer/updaters/%0A10/flashplayer_10_sa_de>
> bug.app.zip</downloadUrl>
>
> <extractFile>Flash Player Debugger.app/Contents/MacOS/Flash Player
> Debugger</extractFile>
> </artifactItem>
> <artifactItem>
>
> <groupId>com.adobe</
> groupId>
> <artifactId>flashplayer</artifactId>
> <version>9.0</
> version>
>
> <classifier>mac</classifier>
>
> <packaging>bin</packaging>
>
> <downloadUrl>http://download.macromedia.com/pub/flashplayer/updaters/9/
> sa_flashplayer_9_debu<http://download.macromedia.com/pub/flashplayer/updaters/9/%0Asa_flashplayer_9_debu>
> g.app.zip</downloadUrl>
>
> <extractFile>Flash Player.app/Contents/MacOS/Flash Player</
> extractFile>
> </artifactItem>
> <artifactItem>
>
> <groupId>com.adobe</
> groupId>
> <artifactId>adl</artifactId>
> <version>2.0</
> version>
>
> <classifier>mac</classifier>
>
> <packaging>bin</packaging>
>
> <downloadUrl>http://airdownload.adobe.com/air/mac/download/latest/
> AdobeAIRSDK.tbz2</download
> Url>
>
> <extractFile>bin/adl</extractFile>
> </artifactItem>
> <artifactItem>
>
> <groupId>com.adobe.adl</groupId>
>
>
> <artifactId>runtime</artifactId>
> <version>2.0</
> version>
>
> <classifier>mac</classifier>
>
> <packaging>tar.gz</packaging>
>
> <downloadUrl>http://airdownload.adobe.com/air/mac/download/latest/
> AdobeAIRSDK.tbz2</downloadUrl>
>
> <extractFile>runtimes/air/mac</extractFile>
> <repack>true</
> repack>
> </artifactItem>
> <artifactItem>
>
> <groupId>com.adobe.adl</groupId>
>
> <artifactId>nai</artifactId>
> <version>2.0</
> version>
>
> <classifier>mac</classifier>
>
> <packaging>tar.gz</packaging>
>
> <downloadUrl>http://airdownload.adobe.com/air/mac/download/latest/
> AdobeAIRSDK.tbz2</downloadUrl>
>
> <extractFile>lib/nai</extractFile>
> <repack>true</
> repack>
> </artifactItem>
>
> </artifactItems>
> </configuration>
>
> <executions>
> <execution>
> <phase>validate</
> phase>
> <goals>
> <goal>resolve-
> external</goal>
> <goal>install-
> external</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> Any help or ideas to try would be appreciated.
> -Andrew
>
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<flex-mojos%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
>
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/