incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Barragan (JIRA)" <>
Subject [jira] [Created] (FLEX-33291) Apache Flex Mavenized SDK Generator Bug
Date Tue, 11 Dec 2012 11:35:21 GMT
Jose Barragan created FLEX-33291:

             Summary: Apache Flex Mavenized SDK Generator Bug
                 Key: FLEX-33291
             Project: Apache Flex
          Issue Type: Bug
          Components: Installation & Packaging
    Affects Versions: InstalApacheFlex 1.0
            Reporter: Jose Barragan
            Assignee: Jose Barragan

Ir reference to this issue:

My first error is:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream
	at air.AirRuntimeGenerator.processFlashRuntime(
	at air.AirRuntimeGenerator.process(
	at SDKGenerator.generateAir(
	at SDKGenerator.generateAllAir(
	at SDKGenerator.main(
Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream
	at Method)
	at java.lang.ClassLoader.loadClass(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	... 5 more

So it seems the  GzipCompressorInputStream is not available in the flex-sdk-generator-1.0.jar.

That's easily overcome by using the maven shade plugin.

The problem occurs when running any command using the flex-sdk-generator jar, and is caused
by the mavenizer.jar not including the org.apache.commons.compress dependency - you can test
this, by opening up the flex-sdk-generator.jar and see there are no classes from the org.apache.commons.compress

The maven shade plugin ensures dependencie's classes are packaged in final flex-sdk-generator.jar.

- or maybe you could use the standard integrated java zip api's:

I'm running the following java:
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)

The second problem:
Srens-MacBook-Pro-2:mavenizer soren$ java -cp target/flex-sdk-converter-1.0.jar SDKGenerator
sdkhome fdktarget
-- Generating Air SDK version: 3.5
-- Generating Air SDK version: 3.1
-- Generating Flex SDK version:
Exception in thread "main" ZIP file must have at least one entry
	at flex.FlexFrameworkGenerator.writeDummyResourceBundleSwc(
	at flex.FlexFrameworkGenerator.process(
	at SDKGenerator.generateFlex(
	at SDKGenerator.generateAllFlex(
	at SDKGenerator.main(

Might be resolved by using the integrated zip api of java, as mentioned in the first problem?!?


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message