Hi, I am trying to create a zip file containing all static web content, to be put on a separate Apache server. The Maven Assembly plugin seems to be meant to be used for such a task - http://maven.apache.org/plugins/maven-assembly-plugin/
According to the instructions given, I added: <plugins> ... <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptors> <descriptor>${basedir}/my-maven-assembly-desc.xml</descriptor> </descriptors> </configuration> </plugin> </plugins> to my parent pom. Then I created the file my-maven-assembly-desc.xml in the base directory of my subproject: <?xml version="1.0"?> <assembly> <id>myzip</id> <formats> <format>zip</format> </formats> <fileSets> <fileSet> <includes> <include>**/*.css</include> <include>**/*.js</include> <include>**/*.pdf</include> <include>**/favicon.ico</include> <include>**/*.gif</include> <include>**/*.jpg</include> <include>**/*.png</include> <include>**/robots.txt</include> <include>**/*.xsd</include> </includes> </fileSet> </fileSets> <includeBaseDirectory>true</includeBaseDirectory> <includeSiteDirectory>false</includeSiteDirectory> </assembly> However, when executing mvn assembly:assembly I get this error: [INFO] [assembly:assembly] [INFO] Reading assembly descriptor: D:\MYPROJECT/my-maven-assembly-desc.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to create assembly: Error creating assembly archive myzip: You must set at least one file. Any ideas what's wrong here? Thanks in advance! Stefanie --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]