如何配置swf和swf依赖项以将copy-flex-resources文件复制到web应用程序中的自定义文件夹?默认情况下,它会复制到web-app根目录。
有关copy-flex-resources goal的更多信息,请访问:https://docs.sonatype.org/display/FLEXMOJOS/Copy+Flex+Resources
发布于 2010-09-16 15:42:33
您可以向该插件添加一个“配置”:
<configuration>
<webappDirectory>${basedir}/src/main/webapp</webappDirectory>
<!-- If RSLs are coming from the WAR uncomment this line
<copyRSL>false</copyRSL>-->
</configuration> 发布于 2010-12-10 18:37:55
我使用maven-antrun-plugin从几个子项目中复制几个swfs (可能有更好的方法,但它可以完成这项工作)
maven-antrun-plugin进程-资源运行
发布于 2012-11-29 07:22:24
对于war项目,maven-dependency plugin是更好的选择。它可以将不同的资源复制到不同的位置,并与依赖项中声明的版本保持同步。
<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>https://stackoverflow.com/questions/3724610
复制相似问题