I am unfortunately running into this same issue as well.  One of my
swcs it being placed 1st in the RSL list before the flex framework
swcs & thusly blows up.  I've put a log statement inside
AbstractMavenFlexCompilerConfiguration.getDependencies() to see the
order of artifacts, and my swc is 1st in the list @ that point before
any filtering.

I've double checked the order of my dependencies from the parent pom
and the project pom, but the swc in question is after all the
frameworks.  The artifact in question is:

        <dependency>
                <groupId>com.thep.console</groupId>
                <artifactId>pl-console-flex-shell-core-interfaces</artifactId>
                <version>${console.app.version}</version>
                <type>swc</type>
                        <scope>rsl</scope>
        </dependency>

!!! actual build output !!!
-runtime-shared-library-path=/Users/brandon.lonac/.m2/repository/com/
theplatform/console/pl-console-flex-shell-core-interfaces/1.1.2-
SNAPSHOT/pl-console-flex-shell-core-interfaces-1.1.2-SNAPSHOT.swc,flex/
pl-console-flex-shell-core-interfaces_1.1.2-SNAPSHOT.swf,,flex/pl-
console-flex-shell-core-interfaces_1.1.2-SNAPSHOT.swf
-runtime-shared-library-path=/Users/brandon.lonac/.m2/repository/com/
adobe/flex/framework/framework/3.5.0.12683/
framework-3.5.0.12683.swc,flex/framework_3.5.0.12683.swz,,flex/
framework_3.5.0.12683.swf
-runtime-shared-library-path=/Users/brandon.lonac/.m2/repository/com/
adobe/flex/framework/rpc/3.5.0.12683/rpc-3.5.0.12683.swc,flex/
rpc_3.5.0.12683.swz,,flex/rpc_3.5.0.12683.swf
-runtime-shared-library-path=/Users/brandon.lonac/.m2/repository/com/
adobe/flex/sdk/datavisualization/3.5.0.12683/
datavisualization-3.5.0.12683.swc,flex/
datavisualization_3.5.0.12683.swz,,flex/
datavisualization_3.5.0.12683.swf
-runtime-shared-library-path=/Users/brandon.lonac/.m2/repository/com/
theplatform/console/pl-console-flex-shell-core-api/1.1.2-SNAPSHOT/pl-
console-flex-shell-core-api-1.1.2-SNAPSHOT.swc,flex/pl-console-flex-
shell-core-api_1.1.2-SNAPSHOT.swf,,flex/pl-console-flex-shell-core-
api_1.1.2-SNAPSHOT.swf


Here is the order of my dependencies:

--= root pom w/ plugin dependencies =--
<plugin>
        <groupId>org.sonatype.flexmojos</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>${flex.mojos.version}</version>
        <extensions>true</extensions>
        <dependencies>
                <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>compiler</artifactId>
                        <version>${flex.version}</version>
                        <type>pom</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>license</artifactId>
                        <version>${flex.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.sonatype.flexmojos</groupId>
                        
<artifactId>flexmojos-flex3-compatibility-layer</artifactId>
                        <version>${flex.mojos.version}</version>
                </dependency>
        </dependencies>
</plugin>

--= flex sdk dependencies = --
<dependencies>
        <!-- Flex SDK dependencies -->
        <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>playerglobal</artifactId>
                <version>${flex.version}</version>
                <type>swc</type>
                <scope>external</scope>
                <classifier>10</classifier>
        </dependency>
        <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>framework</artifactId>
                <version>${flex.version}</version>
                <type>swc</type>
                <scope>caching</scope>
        </dependency>
        <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>framework</artifactId>
                <version>${flex.version}</version>
                <type>rb.swc</type>
                <classifier>en_US</classifier>
                <!--<scope>rsl</scope>-->
        </dependency>
        <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>rpc</artifactId>
                <version>${flex.version}</version>
                <type>swc</type>
                <scope>caching</scope>
        </dependency>
        <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>rpc</artifactId>
                <version>${flex.version}</version>
                <type>rb.swc</type>
                <classifier>en_US</classifier>
                <!--<scope>rsl</scope>-->
        </dependency>
        <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>flex-framework</artifactId>
                <version>${flex.version}</version>
                <type>pom</type>
        </dependency>
        <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>flex</artifactId>
                <version>${flex.version}</version>
                <type>swc</type>
        </dependency>
        <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>utilities</artifactId>
                <version>${flex.version}</version>
                <type>swc</type>
                <!--<scope>rsl</scope>-->
        </dependency>
        <dependency>
                <groupId>com.adobe.flex.sdk</groupId>
                <artifactId>datavisualization</artifactId>
                <version>${flex.version}</version>
                <type>swc</type>
                <scope>caching</scope>
        </dependency>
        <dependency>
                <groupId>com.adobe.flex.sdk</groupId>
                <artifactId>datavisualization</artifactId>
                <version>${flex.version}</version>
                <type>rb.swc</type>
                <classifier>en_US</classifier>
                <!--<scope>rsl</scope>-->
        </dependency>
</dependencies>

!!!! Project POM Dependencies !!!!
<dependencies>
        <dependency>
                <groupId>com.thep.console</groupId>
                <artifactId>pl-console-flex-shell-core-interfaces</artifactId>
                <version>${console.app.version}</version>
                <type>swc</type>
                        <scope>rsl</scope>
        </dependency>
        <dependency>
                <groupId>com.thep.console</groupId>
                <artifactId>pl-console-flex-shell-core-api</artifactId>
                <version>${console.app.version}</version>
                <type>swc</type>
                <scope>rsl</scope>
        </dependency>
        <dependency>
                <groupId>com.thep.console</groupId>
                <artifactId>pl-console-flex-shell-core</artifactId>
                <version>${console.app.version}</version>
                <type>swc</type>
                <!--<scope>rsl</scope>-->
        </dependency>
        <dependency>
                <groupId>com.thep.console</groupId>
                <artifactId>pl-console-flex-components</artifactId>
                <version>${console.app.version}</version>
                <type>swc</type>
                <!--<scope>rsl</scope>-->
        </dependency>
        <dependency>
                <groupId>flexlib</groupId>
                <artifactId>pl-flexlib</artifactId>
                <version>0.2.4</version>
                <type>swc</type>
        </dependency>
</dependencies>


On Apr 23, 6:49 pm, Marvin Froeder <[email protected]> wrote:
> AFIK, once maven loads the plugin, it will ignore futer dependencies
> configuration. But I can be absolutely wrong =D
>
> I would say to test maven 3....
>
> Sent from DROID
>
> Em 23/04/2010 22:46, "Miguel Bautista" <[email protected]>escreveu:
>
> Okay, it is working now...
>
> To fix it I had to change the dependency for the plugin:
>
>            <plugin>
>                <groupId>org.sonatype.flexmojos</groupId>
>                <artifactId>flexmojos-maven-plugin</artifactId>
>                 <version>${flex.mojo.version}</version>
> .....
>                <dependencies>
>                    <dependency>
>                        <groupId>com.adobe.flex</groupId>
>                        <artifactId>compiler</artifactId>
>                        <version>${flex.sdk.version}</version>
>                        <type>pom</type>
>                    </dependency>
>                    <dependency>
>                        <groupId>com.adobe.flex.compiler</groupId>
>                        <artifactId>asdoc</artifactId>
>                        <version>${flex.sdk.version}</version>
>                        <type>zip</type>
>                        <classifier>template</classifier>
>                    </dependency>
>                    <dependency>
>                        <groupId>com.adobe.flex</groupId>
>                        <artifactId>license</artifactId>
>                        <version>${flex.license.version}</version>
>                    </dependency>
>                </dependencies>
>            </plugin>
>
> I had done this before but I did not do it for every project, just the
> main swf (not the swcs). Also, I left the
> "staticLinkRuntimeSharedLibraries" set to false :-)
>
> Thanks for your help!!!
> Miguel
>
> On Apr 23, 11:24 am, Marvin Froeder <[email protected]> wrote:> Stupid 
> question, but does this sample works:
>
> http://svn.sonatype.org/flexmojos/trunk/flexmojos-testing/flexmojos-t...
>
>
>
> > VELO
>
> > On Fri, Apr 23, 2010 at 12:20 PM, Logan Allred <[email protected]> wrote:
> > > On Fri, Ap...
> > > <[email protected]> wrote:
> > > > Logan, it shouldn't be false. According to the link, "C...
> > > [email protected]<flex-mojos%[email protected]>
>
> <flex-mojos%2bunsubscr...@googlegrou ps.com>
>
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex-mojos
>
> > >http://f...
> > For more options, visit this group athttp://
>
> 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 pos...
>
> --
> 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 athttp://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/

Reply via email to