Inside of my fileSet element I have included a:
<directory>${basedir}</directory>
Element...
Does this help?
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 28 March 2008 11:52
To: [email protected]
Subject: Maven Assembly Plugin
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]
The content of this e-mail is confidential and may be privileged. It may be
read, copied and used only by the intended recipient and may not be disclosed,
copied or distributed. If you received this email in error, please contact the
sender immediately by return e-mail or by telephoning +44 20 7260 2000, delete
it and do not disclose its contents to any person. You should take full
responsibility for checking this email for viruses. Markit reserves the right
to monitor all e-mail communications through its network.
Markit and its affiliated companies make no warranty as to the accuracy or
completeness of any information contained in this message and hereby exclude
any liability of any kind for the information contained herein. Any opinions
expressed in this message are those of the author and do not necessarily
reflect the opinions of Markit.
For full details about Markit, its offerings and legal terms and conditions,
please see Markit's website at http://www.markit.com <http://www.markit.com/> .
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]