Thanks for that Jose :-)
2012/12/11 Jose Barragan <[email protected]> > This issue has been resolved yet on: > https://issues.apache.org/jira/browse/FLEX-33291 > I use the maven assembly plugin to resolve the dependencies in package > phase > -- > *Jose Barragan* > *Software Architect Chief * > Codeoscopic Madrid > C/. Infanta Mercedes, 92. > Planta 5. 505. > 28020 Madrid. > Tel.: +34 912 94 80 80 > > On Dec 11, 2012, at 12:43 PM, Jose Barragan Andrade <[email protected]> > wrote: > > This issue has been resolved yet on: > https://issues.apache.org/jira/browse/FLEX-33291 > I use the maven assembly plugin to resolve the dependencies in package > phase > > -- > *Jose Barragan* > *Software Architect Chief * > *[email protected]* > > On Dec 5, 2012, at 1:52 PM, Christofer Dutz <[email protected]> > wrote: > > The reason for this was the history of its creation. I started with a > simple standalone application and it got more and more mature. Making it a > plugin is now the next logical step :-) > Am 05.12.2012 12:40 schrieb "Remi P" <[email protected]>: > >> I'm facing the same issues... >> >> +1 to integrate a shade plugins section to produce a uber-jar including >> all required classes (patch attached) >> >> For information, I reproduce the 2nd issue using both java 1.6 and 1.7... >> >> Regards, >> >> Remi >> >> >> On Sun, Dec 2, 2012 at 5:27 PM, netphreak <[email protected]> wrote: >> >>> Hi, Chris! >>> >>> My first error is: >>> Exception in thread "main" java.lang.NoClassDefFoundError: >>> org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream >>> at >>> air.AirRuntimeGenerator.processFlashRuntime(AirRuntimeGenerator.java:139) >>> at air.AirRuntimeGenerator.process(AirRuntimeGenerator.java:41) >>> at SDKGenerator.generateAir(SDKGenerator.java:82) >>> at SDKGenerator.generateAllAir(SDKGenerator.java:67) >>> at SDKGenerator.main(SDKGenerator.java:145) >>> Caused by: java.lang.ClassNotFoundException: >>> org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247) >>> ... 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 dependency. >>> >>> 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: >>> >>> http://docs.oracle.com/javase/6/docs/api/java/util/zip/package-summary.html >>> http://www.javaworld.com/community/node/8362 >>> >>> 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: 4.6.0.23201 >>> --------------------------------------------- >>> *Exception in thread "main" java.util.zip.ZipException: ZIP file must >>> have at least one entry* >>> * at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304)* >>> * at >>> java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:140)* >>> * at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321)* >>> * at >>> flex.FlexFrameworkGenerator.writeDummyResourceBundleSwc(FlexFrameworkGenerator.java:576) >>> * >>> * at >>> flex.FlexFrameworkGenerator.process(FlexFrameworkGenerator.java:175)* >>> * at SDKGenerator.generateFlex(SDKGenerator.java:120)* >>> * at SDKGenerator.generateAllFlex(SDKGenerator.java:108)* >>> * at SDKGenerator.main(SDKGenerator.java:148)* >>> * >>> * >>> Might be resolved by using the integrated zip api of java, as mentioned >>> in the first problem?!? >>> >>> >>> Regards. >>> >>> >>> >>> >>> >>> Den fredag den 30. november 2012 19.38.10 UTC+1 skrev Christofer Dutz: >>>> >>>> Regarding the other two errors ... do you have any more output? I sort >>>> of can't see the problem as the commandline seemt to be valid. Are you only >>>> generating one FDK? or are these the only ones causing problems? Are you >>>> eventually using a 64bit Java 7 VM? I had to install a 32bit VM just in >>>> oder do be able to use the libs of the FDK. So I would give that a try. >>>> >>>> Chris >>>> >>>> >>>> 2012/11/30 Christofer Dutz <[email protected]> >>>> >>>>> I still have to admit that I have absoluteley no idea why you are >>>>> getting the CNFEs. Is this only occuring on non-windows machines? >>>>> >>>>> >>>>> 2012/11/27 netphreak <[email protected]> >>>>> >>>>>> Hi Christofer! >>>>>> >>>>>> Checking out your latest changes (fixing the directory path problem) >>>>>> and including my fix for the above mentioned class not found exception >>>>>> (using the shade maven plugin), i'm able to generate almost the entire >>>>>> framework (paths are generated correctly now for the compiler part also). >>>>>> >>>>>> Although i get 2 errors when generating the theme swc's: >>>>>> >>>>>> Geneating theme 'AeonGraphical' >>>>>> Couldn't create theme swc >>>>>> ------------------------------**------------------------------**---- >>>>>> Env: 'PLAYERGLOBAL_HOME=/Users/**soren/Dev/projects/mavenizer/** >>>>>> sdkhome/flex/flex_sdk_4.6.0.**23201B/frameworks/libs/player' >>>>>> java -Xmx384m -Dsun.io.useCanonCaches=false -jar >>>>>> "/Users/soren/Dev/projects/**mavenizer/sdkhome/flex/flex_** >>>>>> sdk_4.6.0.23201B/lib/compc.**jar" +flexlib="/Users/soren/Dev/** >>>>>> projects/mavenizer/sdkhome/**flex/flex_sdk_4.6.0.23201B/**frameworks" >>>>>> -include-file AeonGraphical.css "/Users/soren/Dev/projects/** >>>>>> mavenizer/sdkhome/flex/flex_**sdk_4.6.0.23201B/frameworks/** >>>>>> themes/AeonGraphical/**AeonGraphical.css" -include-file >>>>>> AeonGraphical.swf "/Users/soren/Dev/projects/** >>>>>> mavenizer/sdkhome/flex/flex_**sdk_4.6.0.23201B/frameworks/** >>>>>> themes/AeonGraphical/**AeonGraphical.swf" -o >>>>>> "/Users/soren/Dev/projects/**mavenizer/fdktarget/com/adobe/** >>>>>> flex/framework/themes/**aeongraphical/4.6.0.23201/** >>>>>> aeongraphical-4.6.0.23201.swc" >>>>>> ------------------------------**------------------------------**---- >>>>>> Geneating theme 'Spark' >>>>>> Couldn't create theme swc >>>>>> ------------------------------**------------------------------**---- >>>>>> Env: 'PLAYERGLOBAL_HOME=/Users/**soren/Dev/projects/mavenizer/** >>>>>> sdkhome/flex/flex_sdk_4.6.0.**23201B/frameworks/libs/player' >>>>>> java -Xmx384m -Dsun.io.useCanonCaches=false -jar >>>>>> "/Users/soren/Dev/projects/**mavenizer/sdkhome/flex/flex_** >>>>>> sdk_4.6.0.23201B/lib/compc.**jar" +flexlib="/Users/soren/Dev/** >>>>>> projects/mavenizer/sdkhome/**flex/flex_sdk_4.6.0.23201B/**frameworks" >>>>>> -include-file spark.css "/Users/soren/Dev/projects/** >>>>>> mavenizer/sdkhome/flex/flex_**sdk_4.6.0.23201B/frameworks/**themes/Spark/spark.css" >>>>>> -o "/Users/soren/Dev/projects/**mavenizer/fdktarget/com/adobe/** >>>>>> flex/framework/themes/spark/4.**6.0.23201/spark-4.6.0.23201.**swc" >>>>>> >>>>>> Regards! >>>>>> >>>>>> >>>>>> >>>>>> Den fredag den 9. november 2012 11.15.54 UTC+1 skrev Christofer Dutz: >>>>>> >>>>>>> Hi guys, >>>>>>> >>>>>>> sorry for me being a little overloaded in the last weeks, but I have >>>>>>> been working hard on my Flex SDK Mavenizer and the Flexmojos 6.x branch. >>>>>>> After more than one month of full time work (if a add all up) we are >>>>>>> ready >>>>>>> to go. I just contributed the code for the Generator to Apache Flex and >>>>>>> it's available for download at: https://svn.apache.org/**rep** >>>>>>> os/asf/incubator/flex/**utilitie**s/trunk/mavenizer/<https://svn.apache.org/repos/asf/incubator/flex/utilities/trunk/mavenizer/> >>>>>>> In a few hours I think that will have an updated README.txt >>>>>>> explaining how to use it. >>>>>>> >>>>>>> Flexmojos 6.x is currently available in my Github Repo at >>>>>>> https://github.com/**chrisdut**z/flexmojos<https://github.com/chrisdutz/flexmojos> >>>>>>> but >>>>>>> I will push those changes back to velos repo soon. Just if you want to >>>>>>> start testing, give it a go :-) Really hoping on some feedback. >>>>>>> >>>>>>> Additionally you might be interested that rP and I were really busy >>>>>>> on the new Confluence at https://flexmojos.**atlassian** >>>>>>> .net/wiki/display/**FLEXMOJOS/**Home<https://flexmojos.atlassian.net/wiki/display/FLEXMOJOS/Home> >>>>>>> Now most of the content of the old sonatype wiki is available at the >>>>>>> new destination and I merged in all of my finished documents from my >>>>>>> companies Wiki. Currently we are workin on updating those pages, but a >>>>>>> lot >>>>>>> has been done. So give it a try and give us some feedback at what you >>>>>>> think >>>>>>> and where things have to be corrected. Reall looking forward to turning >>>>>>> off >>>>>>> all of the old sites so the web is not polluted with outdated >>>>>>> information, >>>>>>> so if your're looking for information, you'll be guided to the most >>>>>>> recent >>>>>>> source. >>>>>>> >>>>>>> So much for now, >>>>>>> Chris >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>>> 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 >>>>>> flex-mojos+...@**googlegroups.com >>>>>> >>>>>> For more options, visit this group at >>>>>> http://groups.google.com/**group/flex-mojos<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/ >>> >> >> >> -- >> 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/ >> > > -- > 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/ > > > > -- > 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/ > -- 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/
