Any ideas on this?

Is there any reference to creating swc's that can be used with both the Flex
3.x and 4.x SDK? I assume the key is to externalize the flex framework from
the generated swc, but perhaps I'm missing something.

regards,
Christophe

2010/9/3 Christophe Herreman <[email protected]>

> Hi,
>
> I managed to remove the dependency on framework:zip:configs by adding
> the external scope. I do however still have a reference to
> playerglobal:swc:10:3.5.0.12683:runtime which is pulled in by
> as3commons-logging.
>
> I have the playerglobal dependency defined like this in the pom of
> as3commons:
>
> <dependency>
>  <groupId>com.adobe.flex.framework</groupId>
>  <artifactId>playerglobal</artifactId>
>  <version>${flex-sdk.version}</version>
>  <scope>external</scope>
>  <type>swc</type>
>  <classifier>${flashplayer.version.major}</classifier>
> </dependency>
>
> ... so I would assume the reference is gone, but it is not.
>
> Is there any way to remove the runtime dependency on playerglobal?
>
> regards,
> Christophe
>
> On Sep 2, 9:59 am, Christophe Herreman <[email protected]>
> wrote:
> > Hi all,
> >
> > I have a project that is built with Flex SDK 4.1.0 and that uses some
> > libraries that have been compiled with Flex SDK 3.5.0. The problem I
> > have is that the dependencies of the flex framework pom seem to
> > include references to the 3.5.0 SDK while I would expect it to include
> > only references to the 4.1.0 libraries. I see that one of the
> > libraries seems to include a reference to a 3.5.0 dependency and I
> > managed to compile my app when I add exclusions for some of the Flex
> > SDK libraries. This seems a bit of a pain as I'm sure other people
> > will run into this problem as well.
> >
> > Is this an issue with the pom of the as3commons libraries where it
> > compiles SDK libraries into the swc? If so, what is the correct way to
> > exclude libraries when compiling swc's? We currently have the scope
> > set to "external", but not for the zips:config dependency (see below).
> > Could this be bringing in the 3.5.0 dependencies? How about the
> > runtime reference to playerglobal.swc?
> >
> > Here is a dependency:tree log:
> >
> > [INFO] com.labtracker:client:swf:1.0-SNAPSHOT
> > [INFO] +- com.adobe.flex.framework:flex-framework:pom:
> > 4.1.0.16076:compile
> > [INFO] |  +- com.adobe.flex.framework:common-framework:pom:
> > 4.1.0.16076:compile
> > [INFO] |  |  +- com.adobe.flex.framework:flash-integration:swc:
> > 4.1.0.16076:compile
> > [INFO] |  |  +- com.adobe.flex.framework:flex:swc:3.5.0.12683:compile
> > [INFO] |  |  +- com.adobe.flex.framework:framework:swc:
> > 3.5.0.12683:compile
> > [INFO] |  |  +- com.adobe.flex.framework:osmf:swc:4.1.0.16076:compile
> > [INFO] |  |  +- com.adobe.flex.framework:rpc:swc:3.5.0.12683:compile
> > [INFO] |  |  +- com.adobe.flex.framework:textLayout:swc:
> > 4.1.0.16076:compile
> > [INFO] |  |  +- com.adobe.flex.framework:utilities:swc:
> > 3.5.0.12683:compile
> > [INFO] |  |  +- com.adobe.flex.framework:datavisualization:rb.swc:
> > 4.1.0.16076:compile
> > [INFO] |  |  +- com.adobe.flex.framework:framework:rb.swc:
> > 3.5.0.12683:compile
> > [INFO] |  |  +- com.adobe.flex.framework:osmf:rb.swc:
> > 4.1.0.16076:compile
> > [INFO] |  |  +- com.adobe.flex.framework:rpc:rb.swc:
> > 3.5.0.12683:compile
> > [INFO] |  |  +- com.adobe.flex.framework:spark:rb.swc:
> > 4.1.0.16076:compile
> > [INFO] |  |  +- com.adobe.flex.framework:textLayout:rb.swc:
> > 4.1.0.16076:compile
> > [INFO] |  |  \- com.adobe.flex.framework:flash-integration:rb.swc:
> > 4.1.0.16076:compile
> > [INFO] |  +- com.adobe.flex.framework:playerglobal:swc:
> > 10.0:4.1.0.16076:compile
> > [INFO] |  \- com.adobe.flex.framework:playerglobal:rb.swc:
> > 4.1.0.16076:compile
> > [INFO] +- com.adobe.flex.framework:spark:swc:4.1.0.16076:theme (scope
> > not updated to compile)
> > [INFO] +- com.adobe.flex.framework:sparkskins:swc:4.1.0.16076:compile
> > [INFO] +- com.adobe.lcds:fds:swc:4.0.1.277662:compile
> > [INFO] +- com.adobe.lcds:fds:rb.swc:en_US:4.0.1.277662:compile
> > [INFO] +- com.adobe.lcds:fiber:swc:4.0.1.277662:compile
> > [INFO] +- com.adobe.lcds:fiber:rb.swc:en_US:4.0.1.277662:compile
> > [INFO] +- com.adobe.lcds:playerfds:swc:4.0.1.277662:compile
> > [INFO] +- com.adobe.lcds:serializers:swc:4.0.1.277662:compile
> > [INFO] +- org.as3commons:as3commons-lang:swc:0.3:compile
> > [INFO] |  +- com.adobe.flex.framework:framework:zip:configs:
> > 3.5.0.12683:compile
> > [INFO] |  \- com.adobe.flex.framework:playerglobal:swc:
> > 10:3.5.0.12683:runtime
> > [INFO] +- org.as3commons:as3commons-logging:swc:1.1.1:compile
> > [INFO] +- org.as3commons:as3commons-reflect:swc:1.3.1:compile
> > [INFO] +- com.adobe.flex.framework:datavisualization:swc:
> > 4.1.0.16076:compile
> > [INFO] +- com.adobe.flex.framework:datavisualization:rb.swc:en_US:
> > 4.1.0.16076:compile
> > [INFO] +- com.google.code.flex-iframe:flex-iframe:swc:1.4.6:compile
> > [INFO] +- com.googlecode.flexlib:flexlib:swc:2.5:compile
> > [INFO] \- com.adobe.flexunit:flexunit:swc:0.85:test
> >
> > In case anyone is interested, all sources can be found here:
> http://code.google.com/p/as3-commons/source/browse/#svn/trunk
> >
> > Many thanks,
> > Christophe
>
> --
> 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]<flex-mojos%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
>



-- 
Christophe Herreman
http://www.herrodius.com
http://www.springactionscript.org
http://www.as3commons.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/

Reply via email to