I have this simple shared assembly defined in it's own project which I pull in 
as a dependency via a <descriptorRef> configuration of the 
maven-assembly-plugin.  Here's the assembly:

<?xml version="1.0" encoding="UTF-8"?>
<assembly 
    
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"; 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
 http://maven.apache.org/xsd/assembly-1.1.0.xsd";
>
    <id>src</id>
    <baseDirectory>${project.build.finalName}-src</baseDirectory>
    <formats>
        <format>zip</format>
    </formats>
    <fileSets>
        <fileSet>
            <outputDirectory>/</outputDirectory>
            <excludes>
                <exclude>target/**</exclude>
            </excludes>
        </fileSet>
    </fileSets>
</assembly>

Now the project I'm working on now needs to reuse this assembly only add more 
it's <excludes>.  How would I configure my project's POM to do this?

Mike

Reply via email to