Hello all,

First off, i've been using flex-mojos for a while now and love it.
Thank you for all the hard work! Documentation is seriously lacking
though. It's wasted hours trying to find answers to all my questions
which has given me great frustration.

Now for my problem. I've got some libraries that are building as swc's
and I have turned on the optimizer so I am generating the swf RSL
along with them. I have these libraries all marked as dependencies in
my main swf project. The problem is when I use maven's maven-
dependency-plugin to copy the dependencies I only get the swc files.
How do I get maven to actually copy the correct swf's over so I can
properly bundle them with my application?

Here is an example of my main application pom.xml

<build>
  <plugins>
    <plugin>
                <groupId>info.rvin.mojo</groupId>
                <artifactId>flex-compiler-mojo</artifactId>
                <configuration>
                    <rslUrls>
                        <rsl>{artifactId}-{version}.{extension}</rsl>
                    </rslUrls>
                    <targetPlayer>9.0.115</targetPlayer>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <phase>package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}
</outputDirectory>
                            <overWriteReleases>false</
overWriteReleases>
                            <overWriteSnapshots>false</
overWriteSnapshots>
                            <overWriteIfNewer>true</overWriteIfNewer>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
  </plugins>
</build>
<dependencies>
    <dependency>
        <groupId>com.adobe</groupId>
        <artifactId>as3corelib</artifactId>
        <version>0.92.1</version>
        <scope>rsl</scope>
        <type>swc</type>
    </dependency>
</dependencies>

Regards,

Jean-Philippe Steinmetz

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

Reply via email to