On Thu, Jan 28, 2010 at 2:37 PM, David Hoffer <[email protected]> wrote:
> We could declare all rsls at the application level but then this requires > us to manually add all the transitive dependencies. This can get hard to > manage. How do you know what all your transitive dependencies are? This is > one of the big features of maven that does not exist for flex. > Well, maven doesn't do this. You wanna, sometimes, magically the external scope dependencies become to be rsl. Maven don't do this. That is for sure. > > In maven you are only supposed to have to declare your direct dependencies, > as you know what these are, its easy/natural to do. However you often times > do not know what your transitive dependencies are and that is the beauty of > maven...it figures this out for you. If it doesn't work for flex, I'm > questioning the virtue of the RSL approach. > > In the ideal case, maven would allow me to specify my swc dependencies as > rsl then in the swf if I reference the swc with rsl scope it would find all > its rsl dependencies. This feature would allow maven to fully support > transitive dependencies just like maven does for java/jars. > This can be a wrong approach, for instance your swc could be build with something merged or included.... if flexmojos just decide to change the transitive dependencies scopes it will cause problems. Best case scenario something will be downloaded twice. Flex/maven does support transitive dependency as maven does. And exactly that. It doesn't change the scopes because it may be better.... Also, who can ensure the transitive dependency has the swf?! If it doesn't have rsl what should flexmojos do? Fail the build? Create one? Rechange the scope and use merged? Or internal? Or just ignore the library? It think it is possible to build something that does that.... but it is an entire new dependency management thing.... built over maven ok, but still a new deal. Giving this a second thought it is a really good idea, and all this questions can come with a default reply and make it configurable so users can change the default behavior. In the end, everything is possible, the only issue I see is who is gona do that? VELO -- 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?hl=en?hl=en http://blog.flex-mojos.info/
