maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Boyer" <abo...@Endeca.com>
Subject Assembly descriptors: excludes in filesets not excluding
Date Mon, 06 Aug 2007 21:38:58 GMT
I have a basic assembly descriptor like this:

<assembly>
  <id>dist</id>
  <formats>
    <format>zip</format>
    <format>tar.gz</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <fileSets>
    <fileSet>
      <directory>target/dist</directory>
      <outputDirectory>/</outputDirectory>
      <excludes>
        <exclude>*-tests.jar</exclude>
      </excludes>
    </fileSet>
  </fileSets>
</assembly>

When I run the assembly:single target, it zips up the dist directory,
but includes the test jars.  I played with this a bit, passing in the
full test jar name, but it still included it.  I pulled down the source
code for the assembly plugin, and looked at the FileSetAssemblyPhase
object.  I didn't see any reference to excludes.  Grepping through the
source, I see that FilterUtils has a filterProject method (which is used
by ModuleSetAssemblyPhase), and a filterArtifact method (which doesn't
seem to be used.

Is this a known issue?

Thanks,
Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message