> If you already have an available swf file the install-rsl goal should try to > get the swc file with an `original` classifier and try to re-run the process > against that one installing a new swf file (so you can re-run install-rsl > with a different optimizeRsls or other optimization option, like > keep-as3-metadata) > > Can you check that behavior as well? It works fine on my laptop but as you > are getting weird output may be useful to double check.
Here is what I have in my local repo : dir D:\maven\repository\org\spicefactory\parsley-flex3\2.3.1 16/02/2011 14:28 296 160 parsley-flex3-2.3.1.swc 16/02/2011 14:28 40 parsley-flex3-2.3.1.swc.sha1 16/02/2011 14:28 110 575 parsley-flex3-2.3.1.swf 16/02/2011 14:28 40 parsley-flex3-2.3.1.swf.sha1 I unplug network cable (=> no connection to remote repo) and run mvn install-rsl optimizeRSL=false on parsley-flex3:2.3.1. Nothing is changed, the swf is not overwritten. => It seems that if swf is present, install-rsl does nothing. If I delete the swf in maven repo and re-run install-rsl optimizeRSL=false, I'm getting an empty swf : [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [WARNING] Unable to get resource 'org.spicefactory:parsley- flex3:swc:original:2.3.1' from repository central (http://central): Error transfe rring file: factory-server-01 [DEBUG] Using mirror: http://factory-server-01:8080/nexus/content/groups/public (id: nexus) [DEBUG] Original artifact not found: assuming the RSL production has never been executed before [INFO] Installing D:\workspaces\java1\corporate-pom\parsley- flex3-2.3.1.swf to D:\maven\repository\org\spicefactory\parsley- flex3\2.3.1\pars ley-flex3-2.3.1.swf Problem could be in this case swc with original classifier does not exist. Why FM is looking for it ? It doesn't require to copy to original in this case as the swf doesn't get optimized and so, swc digest doesn't need to be updated. (?) If I delete the swf in maven repo and re-run install-rsl optimizeRSL=true, I'm getting additional output for maven console : [DEBUG] Original artifact not found: assuming the RSL production has never been executed before [INFO] Attempting to optimize: org.spicefactory:parsley-flex3:swc: 2.3.1 [INFO] size reduced from 289kB to 107kB [DEBUG] Computing optimized swf digest [DEBUG] 609809ea737957bb5f7400b2fd2974a1f249bf422941d52d0a682d68bfbafd22 [DEBUG] Updating digest on D:\maven\repository\org\spicefactory \parsley-flex3\2.3.1\parsley-flex3-2.3.1.swc ... [INFO] Installing D:\workspaces\java1\corporate-pom\target\classes \parsley-flex3-2.3.1-original.swc to D:\maven\repository\org \spicefactory\ parsley-flex3\2.3.1\parsley-flex3-2.3.1-original.swc [INFO] Installing D:\workspaces\java1\corporate-pom\parsley- flex3-2.3.1.swf to D:\maven\repository\org\spicefactory\parsley- flex3\2.3.1\pars ley-flex3-2.3.1.swf In my repo : dir D:\maven\repository\org\spicefactory\parsley-flex3\2.3.1 17/02/2011 09:49 296 160 parsley-flex3-2.3.1-original.swc 17/02/2011 09:49 296 282 parsley-flex3-2.3.1.swc 16/02/2011 14:28 40 parsley-flex3-2.3.1.swc.sha1 17/02/2011 09:49 109 962 parsley-flex3-2.3.1.swf So, it seems to work fine in this case. -- 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/
