Thanks for the opinion Bryan, I'm not sure what you mean by "-nodeps"
in this context...

I'm planning on offering both options, POM dependencies and these
uber-swcs for non-maven build processes.

I've still got a lot to learn about flexmojos+maven - but at least I
feel like I'm making some progress ;)

Cheers,

mischa.

On Thu, Oct 14, 2010 at 9:33 PM, Bryan Turner <[email protected]> wrote:
> You might consider -nodeps versions of your swcs, Mischa. For those of us
> that are Maven+FlexMojos shops, the sort of uber swcs you're building are
> not desirable. The Maven dependency:sources calls don't play well with those
> sorts of artifacts (since usually the source for the artifact only has its
> direct source in it, but the artifact itself includes other libraries in
> compiled form). Just a thought.
>
> On Thu, Oct 14, 2010 at 11:14 AM, Mischa Williamson
> <[email protected]> wrote:
>>
>> Thanks for the advice, I'm planning on distributing the swcs in such a way
>> that they can be used outside a maven build. Although maven+flexmojos rocks,
>> many people still use old school dependency management...
>> Cheers,
>>
>> mischa.
>> On 14 Oct 2010, at 18:55, Marvin Froeder <[email protected]> wrote:
>>
>> Well, that trick makes sense when using ant, since there is no dependency
>> concept....
>>
>> On mavne, you can depend in one module and it will pull all dependent in.
>> I wouldn't manually build this uber SWC....  unless you are publishing that
>> for ant/flexbuilder clients....
>>
>> VELO
>>
>> On Thu, Oct 14, 2010 at 2:07 PM, Mischa Williamson
>> <[email protected]> wrote:
>>>
>>> All the merged dependencies I am declaring are my own libraries.
>>>
>>> The idea is this, for each package (discrete bit of functionality) I
>>> create a swc which merges it's dependencies so that the swc can be
>>> used standalone. I then have "combined" modules that create higher
>>> level packages (eg: com.ffsys.utils) that compiles all the
>>> sub-packages using the internal scope.
>>>
>>> That way I can declare a higher level dependency when I want all the
>>> "utils" code or if I just need the string utils I can just add a
>>> dependency for that.
>>>
>>> It saves me declaring lots of dependencies individually when I really
>>> just want all the "utils" to be available at compile time.
>>>
>>> Hope that makes sense.
>>>
>>> Cheers,
>>>
>>> mischa.
>>>
>>> On Thu, Oct 14, 2010 at 5:48 PM, Marvin Froeder <[email protected]>
>>> wrote:
>>> > Ok, but I would really advice you on SWC projects to keep all
>>> > dependencies
>>> > with external scope.... that way is more likely people will be able to
>>> > use a
>>> > 3rd party dependency on a different version then you are.
>>> >
>>> > VELO
>>> >
>>> > On Thu, Oct 14, 2010 at 1:44 PM, Mischa Williamson
>>> > <[email protected]> wrote:
>>> >>
>>> >> Many thanks for the information, so it's the change to the default
>>> >> scope when compiling swc files that appears to be causing the problem.
>>> >>
>>> >> I'll attempt to change the project dependencies and let you know how I
>>> >> go.
>>> >>
>>> >> Thanks for the help,
>>> >>
>>> >> mischa.
>>> >>
>>> >> On Thu, Oct 14, 2010 at 5:33 PM, Marvin Froeder <[email protected]>
>>> >> wrote:
>>> >> > The scopes compile, provided, system and runtime have no meaning
>>> >> > inside
>>> >> > flexmojos....
>>> >> >
>>> >> >
>>> >> > https://docs.sonatype.org/display/FLEXMOJOS/Adding+libraries+to+compilation
>>> >> >
>>> >> > What flexmojos really understands is merged, internal, external,
>>> >> > rsl,
>>> >> > caching and test....  unfortunately pom.xml doesn't have room to
>>> >> > express
>>> >> > that information, so I have to overwrite the scopes with it.
>>> >> >
>>> >> > On flexmojos 4.0 I attended to a old feature request, to make
>>> >> > flexmojos
>>> >> > understand no scope as external for SWC project and as merged for
>>> >> > SWF
>>> >> > projects.  So that is kinda expected.  Although flexmojos 4 has all
>>> >> > features
>>> >> > present on flexmojos 3 it is not a drop in replacement, since some
>>> >> > configurations vanished, others where create, some now has a better
>>> >> > name.  I
>>> >> > use this major release period to introduce this compatibility
>>> >> > breaker
>>> >> > changes.
>>> >> >
>>> >> > To summarize, what you are seems is the expected behavior for
>>> >> > flexmojos
>>> >> > 4.
>>> >> > If you really wanna merge the other SWCs into yours (which in my
>>> >> > opinion
>>> >> > is
>>> >> > a really bad practice) set the scope to merge and it will take care
>>> >> > of
>>> >> > it.
>>> >> >
>>> >> > VELO
>>> >> >
>>> >> > On Thu, Oct 14, 2010 at 1:23 PM, Mischa Williamson
>>> >> > <[email protected]> wrote:
>>> >> >>
>>> >> >> Ok, it may not tamper with the dependency tree, but the 4.x
>>> >> >> flexmojos
>>> >> >> release/snapshots seem to be to be broken badly.
>>> >> >>
>>> >> >> Try this, get the source tree:
>>> >> >>
>>> >> >> http://github.com/freeformsystems/as3-core
>>> >> >>
>>> >> >> I'm testing with the flash/io/loaders module. When I compile with
>>> >> >> Flexmojos 3.6.1 the created swc is about 115K. When I change the
>>> >> >> version (in the top-level POM) to 4.0-SNAPSHOT and re-install the
>>> >> >> created swc is 53KB and the config file has loads of
>>> >> >> external-library-path declarations:
>>> >> >>
>>> >> >>      <external-library-path>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> <path-element>/Users/williamsonm/.m2/repository/com/ffsys/core/1.1-SNAPSHOT/core-1.1-SNAPSHOT.swc</path-element>
>>> >> >>      </external-library-path>
>>> >> >>
>>> >> >> When I run dependency:tree all dependencies are marked as "compile"
>>> >> >> -
>>> >> >> so why is flexmojos flagging all those dependencies as
>>> >> >> external-library-path?
>>> >> >>
>>> >> >> Velo, I'd really appreciate it if you can take a look at this as
>>> >> >> I'm
>>> >> >> really keen to migrate to 4.x for existing projects and a new
>>> >> >> project
>>> >> >> I'm starting.
>>> >> >>
>>> >> >> Let me know what you think.
>>> >> >>
>>> >> >> Cheers,
>>> >> >>
>>> >> >> mischa.
>>> >> >>
>>> >> >> On Thu, Oct 14, 2010 at 3:54 PM, Marvin Froeder <[email protected]>
>>> >> >> wrote:
>>> >> >> >
>>> >> >> >
>>> >> >> > On Thu, Oct 14, 2010 at 11:42 AM, Mischa Williamson
>>> >> >> > <[email protected]> wrote:
>>> >> >> >>
>>> >> >> >> I've tried with 4.0-SNAPSHOT and am seeing the same behaviour.
>>> >> >> >>
>>> >> >> >> There are definitely no internal scope dependencies in the
>>> >> >> >> entire
>>> >> >> >> POM.
>>> >> >> >> A search for <scope>internal</scope> in the project finds
>>> >> >> >> nothing.
>>> >> >> >>
>>> >> >> >> I know that the main dependency it does declare:
>>> >> >> >>
>>> >> >> >>                <dependency>
>>> >> >> >>                        <groupId>com.ffsys</groupId>
>>> >> >> >>                        <artifactId>swat</artifactId>
>>> >> >> >>                        <version>${ffsys.lib.version}</version>
>>> >> >> >>                        <type>swc</type>
>>> >> >> >>                </dependency>
>>> >> >> >>
>>> >> >> >> Has a dependency tree that includes internal scope but I've no
>>> >> >> >> idea
>>> >> >> >> why those are being included when compiling my current
>>> >> >> >> application.
>>> >> >> >>
>>> >> >> >> The internal scope should not have any inheritance right?
>>> >> >> >
>>> >> >> > Flexmojos does not tamper with your dependency tree.
>>> >> >> >
>>> >> >> >>
>>> >> >> >> I've filed a JIRA for the hex issue:
>>> >> >> >>
>>> >> >> >> https://issues.sonatype.org/browse/FLEXMOJOS-355
>>> >> >> >>
>>> >> >> >> My point about the defaultSize change was just a heads up as it
>>> >> >> >> took
>>> >> >> >> me a little while to figure out the default size arguments were
>>> >> >> >> not
>>> >> >> >> being sent to the compiler so the size of my movie was wrong and
>>> >> >> >> everything was broken when embedded within an HTML page. Just a
>>> >> >> >> FYI.
>>> >> >> >>
>>> >> >> >> Cheers,
>>> >> >> >>
>>> >> >> >> mischa.
>>> >> >> >>
>>> >> >> >> On Thu, Oct 14, 2010 at 3:01 PM, Marvin Froeder
>>> >> >> >> <[email protected]>
>>> >> >> >> wrote:
>>> >> >> >> >
>>> >> >> >> >
>>> >> >> >> > On Thu, Oct 14, 2010 at 10:39 AM, Mischa Williamson
>>> >> >> >> > <[email protected]> wrote:
>>> >> >> >> >>
>>> >> >> >> >> I'm still trying to get my multi-module project upgraded to
>>> >> >> >> >> 4.0-alpha-5 and seem to be slowly working my way through it
>>> >> >> >> >> by
>>> >> >> >> >> recreating from scratch the modules and re-integrating.
>>> >> >> >> >
>>> >> >> >> > Try latest snapshot, I do recall on a bug scope related... but
>>> >> >> >> > I
>>> >> >> >> > think
>>> >> >> >> > it
>>> >> >> >> > was related to external scope, anyway, give it a shot.
>>> >> >> >> >
>>> >> >> >> >>
>>> >> >> >> >> Something I've noticed is that now dependencies with scope
>>> >> >> >> >> "internal"
>>> >> >> >> >> seem to be picked up as part of the compile through some sort
>>> >> >> >> >> of
>>> >> >> >> >> inheritance look up.
>>> >> >> >> >>
>>> >> >> >> >> I'm not sure whether this is a Maven or Flexmojos problem. I
>>> >> >> >> >> noticed
>>> >> >> >> >> my swf was too big and checked the compiler config file, I'm
>>> >> >> >> >> seeing
>>> >> >> >> >> ***lot's*** of:
>>> >> >> >> >>
>>> >> >> >> >>      <include-libraries>
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >> <library>/Users/williamsonm/.m2/repository/com/ffsys/utils/css/1.1-SNAPSHOT/css-1.1-SNAPSHOT.swc</library>
>>> >> >> >> >>      </include-libraries>
>>> >> >> >> >>
>>> >> >> >> >> But there are no dependencies declared with an internal scope
>>> >> >> >> >> in
>>> >> >> >> >> the
>>> >> >> >> >> pom that is building this swf *and* there are no internal
>>> >> >> >> >> scope
>>> >> >> >> >> dependencies in the entire project. Any ideas?
>>> >> >> >> >
>>> >> >> >> > It can either be a flexmojos bug (which stills need to be
>>> >> >> >> > proven)
>>> >> >> >> > or
>>> >> >> >> > there
>>> >> >> >> > is an internal scope anywhere (most likely).
>>> >> >> >> >
>>> >> >> >> >>
>>> >> >> >> >> The internal scope is used by some of the dependencies for
>>> >> >> >> >> the
>>> >> >> >> >> project
>>> >> >> >> >> (that are in a separate project/repository).
>>> >> >> >> >>
>>> >> >> >> >> Incidentally, a couple more things I've noticed,
>>> >> >> >> >> defaultBackgroundColor no longer seems to accept a
>>> >> >> >> >> hexadecimal
>>> >> >> >> >> value.
>>> >> >> >> >> Is this the case? I've tried FFFFFF, #FFFFFF and 0xFFFFFF and
>>> >> >> >> >> the
>>> >> >> >> >> only
>>> >> >> >> >> thing that seems to work is specifying the decimal value.
>>> >> >> >> >
>>> >> >> >> > Possible a bug.... file a jira for it.
>>> >> >> >> >
>>> >> >> >> >>
>>> >> >> >> >> The defaultSizeWidth and defaultSizeHeight configuration
>>> >> >> >> >> properties
>>> >> >> >> >> now need to be declared as defaultSize with child
>>> >> >> >> >> width/height
>>> >> >> >> >> elements.
>>> >> >> >> >
>>> >> >> >> > Not sure what is your point here....
>>> >> >> >> >
>>> >> >> >> >>
>>> >> >> >> >> Thanks for any help.
>>> >> >> >> >>
>>> >> >> >> >> --
>>> >> >> >> >> mischa (aka muji).
>>> >> >> >> >>
>>> >> >> >> >> --
>>> >> >> >> >> 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/
>>> >> >> >> >
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> --
>>> >> >> >> mischa (aka muji).
>>> >> >> >> http://cyberfunk.org
>>> >> >> >> http://freeformsystems.com
>>> >> >> >>
>>> >> >> >> --
>>> >> >> >> 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/
>>> >> >> >
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> --
>>> >> >> mischa (aka muji).
>>> >> >> http://cyberfunk.org
>>> >> >> http://freeformsystems.com
>>> >> >>
>>> >> >> --
>>> >> >> 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/
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> mischa (aka muji).
>>> >> http://cyberfunk.org
>>> >> http://freeformsystems.com
>>> >>
>>> >> --
>>> >> 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/
>>> >
>>>
>>>
>>>
>>> --
>>> mischa (aka muji).
>>> http://cyberfunk.org
>>> http://freeformsystems.com
>>>
>>> --
>>> 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/
>



-- 
mischa (aka muji).
http://cyberfunk.org
http://freeformsystems.com

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