I have a multi-module project. One of the modules inside of it has
multiple source directories using build-helper-maven-plugin. I need
the source in one of those directories to be included in a special
place in the assembly. I was able to get that to work. There are a
couple java  files in that dir and I need the compiled class files as
well. However, whenever I try to add the binaries element, I get all
the binaries in all the source folders instead of only the one source
folder that I want.

    <moduleSet>
      <includes>
        <include>com.c:Services</include>
      </includes>
      <sources>
        <includeModuleDirectory>false</includeModuleDirectory>
        <fileSets>
            <fileSet>
                <directory>src/main/user/</directory>
                <outputDirectory>user</outputDirectory>
            </fileSet>
        </fileSets>
      </sources>
      <binaries>
        <includeDependencies>false</includeDependencies>
        <includes><include>src/main/user</include></includes>
        <excludes>
            <exclude>com/**/*.*</exclude>
            <exclude>src/main/*/com/**/*.*</exclude>
            <exclude>src/main/java/**/*.*</exclude>
            <exclude>src/main/java</exclude>
            <exclude>src/</exclude>
            <exclude>src/main/**/*.*</exclude>
            <exclude>src/**/*.*</exclude>
        </excludes>
        <outputDirectory>user</outputDirectory>
      </binaries>
    </moduleSet>

The excludes clause is a mess because I was trying anything--even with
all that, all the binaries were included in the output user directory.

How can I get it to include only the binaries from a certain source
folder? Or, it is delineated by specific packages, so how could I do
it by including only certain packages?

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to