首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用flex-mojos将swf资源复制到自定义文件夹

使用flex-mojos将swf资源复制到自定义文件夹
EN

Stack Overflow用户
提问于 2010-09-16 15:37:56
回答 3查看 2.3K关注 0票数 0

如何配置swf和swf依赖项以将copy-flex-resources文件复制到web应用程序中的自定义文件夹?默认情况下,它会复制到web-app根目录。

有关copy-flex-resources goal的更多信息,请访问:https://docs.sonatype.org/display/FLEXMOJOS/Copy+Flex+Resources

EN

回答 3

Stack Overflow用户

发布于 2010-09-16 15:42:33

您可以向该插件添加一个“配置”:

代码语言:javascript
复制
<configuration> 
    <webappDirectory>${basedir}/src/main/webapp</webappDirectory> 
    <!-- If RSLs are coming from the WAR uncomment this line 
    <copyRSL>false</copyRSL>--> 
</configuration> 
票数 0
EN

Stack Overflow用户

发布于 2010-12-10 18:37:55

我使用maven-antrun-plugin从几个子项目中复制几个swfs (可能有更好的方法,但它可以完成这项工作)

maven-antrun-plugin进程-资源运行

票数 0
EN

Stack Overflow用户

发布于 2012-11-29 07:22:24

对于war项目,maven-dependency plugin是更好的选择。它可以将不同的资源复制到不同的位置,并与依赖项中声明的版本保持同步。

代码语言:javascript
复制
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.0</version>
                <executions>
                     <execution>
                        <id>copy-content</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>com.foo.bar</groupId>
                                    <artifactId>barstyles</artifactId>
                                    <type>swf</type>
                                    <outputDirectory>${flashAppDir}/bar</outputDirectory>
                                    <destFileName>barstyles.swf</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.graniteds</groupId>
                                    <artifactId>graniteds</artifactId>
                                    <type>swf</type>
                                 <outputDirectory>${flashAppDir}/thirdparty</outputDirectory>
                                    <destFileName>graniteds.swf</destFileName>
                                </artifactItem>
                               </artifactItems>
                        </configuration>
                    </execution>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3724610

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档