The configuration of the assembly-plugin in the project pom is what's giving me 
problems.  I tried this.

  <build>
    <plugins>
             <!-- 
              | This plugin configuration is responsible for
              | creating binary distribution ZIP file which
              | users can download, upzip, and easily execute.
              -->            
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>            
                    <execution>                    
                        <id>assemble</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <descriptors>                            
                                
<descriptor>src/assemblies/source-release.xml</descriptor>
                            </descriptors>
                        </configuration>
                    </execution>
                </executions>
            </plugin> 
        </plugins>
  </build>


but it errors because it's looking for a JAR file from the project POM.

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to create assembly: Error adding file to archive: 
C:\workspace\timeserver\target\timeserver-parent-0.0.1.jar isn't a file.




________________________________
From: Nick Stolwijk <[email protected]>
To: Maven Users List <[email protected]>
Sent: Mon, October 26, 2009 3:25:37 PM
Subject: Re: Create zip of multi-module project

Forget what I said, you only want the sources so you can run it from the
project pom. Take a look at the assembly descriptor of the maven project
itself.

[1]
http://svn.apache.org/repos/asf/maven/resources/tags/apache-source-release-assembly-descriptor-1.0.1/src/main/resources/assemblies/source-release.xml

Hth,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl


On Mon, Oct 26, 2009 at 10:21 PM, Nick Stolwijk <[email protected]>wrote:

> Yes, try again. ;) The assembly plugin is what you want, just remember that
> the project pom will be build before the others, so you can't attach the
> assembly plugin to that one. You will need an extra module, which depends on
> all the others and create it from there.
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> IPROFS BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> http://www.iprofs.nl
>
>
>
> On Mon, Oct 26, 2009 at 10:19 PM, Michael Remijan <[email protected]>wrote:
>
>> I have a multi-module project and at the project POM level (not the module
>> level) I want to create a a zip of the entire multi-module project excluding
>> the common stuff like CVS dirs and target dirs. I've tried configuring the
>> assembly plugin but haven't been able to get it to work.  Any ideas?
>
>
>

Reply via email to