Thanks for the detailled answer :-)

> > run "mvn clean install" on my common library project
> > run "mvn clean install" on my main project
>
> Both projects should refer to parsley as an RSL so you should change the
> dependency scope to rsl maintaining type swc

Yes, this is what i've done


> > When I'm running the main swf, I'm getting :
> > "VerifyError: Error #1014: class
> > org.spicefactory.parsley.tag.core::MxmlObjectsTag could not be found."
>
> It looks like the optimization process has stripped out some metatags from
> your library. I think you have two options: find out the needed tags and use
> the keep-as3-metatags option

Yes, I've set all the metadata I could fine :) to be kept.
I don't think it's a metadata stripping problem as it works for my
common RSL when Parsley scope is compile. In this case, Parsley
classes get linked to my common lib code, and then optimized with the
corresponding goal.
Would this optimization be different when I run it from install-rsl on
Parsley lib directly ?

> or avoid the optimization process at all: the latter will produce a bigger 
> swf file (actually it will not produce a new
> swf file at all) but will be the easiest way. Remember, the InstallerMojo
> inherits everything from the OptimizerMojo so you have all and every
> feature/configuration of the `optimize` goal.

What should be Parsley dependency scope then ? external ?

> Correct, the digest has been correctly updated but the optimized rsl is
> missing metatags. It is the standard behavior of the mxmlc to remove unused
> classes from libraries, as you can imagine metatags are not used by the
> library itself... :-) It is not a flexmojo fault, it is an unexpected
> behavior of the flex compiler...

Are you sure that optimisation on SWC remove classes ?
For what I could read on adobe docs, optimisation remove debug info,
metadata, etc, not classes (?)
Unused classes are not linked to SWF when these classes are on -
library-path compiler option (merged scope). They are all included on -
include-libraries option (internal scope). But why unused classes
would be removed for a SWC optimisation? It does not make sense to me
(you don't know what will be unused classes as you don't know to which
code you will be linked).
Though, these classes seems to be missing in the optimized SWC...

@+
Maxime

-- 
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/

Reply via email to