Hi,

I'm trying to configure Flex Mojos to use both the framework caching
and other libraries as RSL.

Here's the Flex Mojos configuration:
===========================================================
<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.sdk.version}</version>
                        <type>pom</type>
                </dependency>
        </dependencies>

        <configuration>
                <rslUrls>
                        <rslUrl>rsl/{artifactId}-{version}.{extension}</rslUrl>
                </rslUrls>

                <configurationReport>false</configurationReport>
                <targetPlayer>10.0.0</targetPlayer>
                <storepass/>
                <sourceFile>AutolabApplication.mxml</sourceFile>

                <debug>false</debug>
                <incremental>false</incremental>

                <services>WEB-INF/flex/services-config.xml</services>

                <contextRoot>${web.context}</contextRoot>
        </configuration>
</plugin>
===========================================================
With dependencies:
      <dependency>
            <groupId>org.swizframework</groupId>
            <artifactId>swiz</artifactId>
            <version>1.0.STABLE</version>
            <type>swc</type>
            <scope>rsl</scope>
        </dependency>
        <dependency>
            <groupId>com.asual</groupId>
            <artifactId>swfaddress</artifactId>
            <version>${flex.dependencies.swfaddress.version}</version>
            <type>swc</type>
            <scope>rsl</scope>
        </dependency>
===========================================================


If I would follow the tutorial on Flex Mojos' wiki, I would merge
these lines in:
<policyFileUrls>
        <url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url>
</policyFileUrls>
<rslUrls>
        <url>http://fpdownload.adobe.com/pub/{extension}/flex/$
{flex.sdk.version}/{artifactId}_{version}.{extension}</url>
</rslUrls>


It works, but it generates incorrect compiler arguments:
-runtime-shared-library-path=C:\dev\.m2\repository\org\swizframework
\swiz\1.0.STABLE\swiz-1.0.STABLE.swc,http://fpdownload.adobe.com/pub/
swf/flex/4.1.0.16076/sw
iz_1.0.STABLE.swf,http://fpdownload.adobe.com/pub/swz/
crossdomain.xml,rsl/swiz-1.0.STABLE.swf,
-runtime-shared-library-path=C:\dev\.m2\repository\com\asual\swfaddress
\2.4\swfaddress-2.4.swc,http://fpdownload.adobe.com/pub/swf/flex/
4.1.0.16076/swfaddress_2
.4.swf,http://fpdownload.adobe.com/pub/swz/crossdomain.xml,rsl/
swfaddress-2.4.swf,
-runtime-shared-library-path=C:\dev\.m2\repository\com\**\**\al-webapp
\core\1.0\core-1.0.swc,http://fpdownload.adobe.com/pub/swf/flex/
4.1.0.16076/core_
1.0.swf,http://fpdownload.adobe.com/pub/swz/crossdomain.xml,rsl/
core-1.0.swf,
-runtime-shared-library-path=C:\dev\.m2\repository\com\**\**\al-webapp
\data-client\1.0\data-client-1.0.swc,http://fpdownload.adobe.com/pub/
swf/flex/4.1
.0.16076/data-client_1.0.swf,http://fpdownload.adobe.com/pub/swz/
crossdomain.xml,rsl/data-client-1.0.swf,
-runtime-shared-library-path=C:\dev\.m2\repository\com\**\**\al-webapp
\components\1.0\components-1.0.swc,http://fpdownload.adobe.com/pub/swf/
flex/4.1.0
.16076/components_1.0.swf,http://fpdownload.adobe.com/pub/swz/
crossdomain.xml,rsl/components-1.0.swf,
-compiler.theme C:\path\autolab-flex4\al-webapp-main-application\target
\classes\configs\themes\Spark\spark.css

Still it works, no complains.  But the problem is that I'm also using
copy-flex-resources plugin to copy the dependency RSLs to my final
war.  Now, copy-flex-resource plugin has a problem in that it uses
rslUrls to figure out where to copy dependency RSLs to, but it did not
expect that the urls may be absolute urls (I looked at the source).
So it fails to copy.

Now I need help to work around this problem.
Thanks for any help

Ming

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