Hello all,

I have been attempting to implement skinny wars as outlined in the
exmaples for the maven2 war plugin.  Using maven 2.0.9.

I have, as the site documentation suggests, added all of the
dependencies that were previously listed as compile/runtime in my war
project's pom now as provided, and have duplicated those dependencies
at such a scope as to have them included in my ear.

In my ear pom's <dependencies> section, I have multiple jar
dependencies that either directly or transitively result in inclusion
of commons-logging (among a few others like xerces).  I know the
utopian way to resolve this is to change those dependencies to use
provided scope - but some of these are 3rd party and I'd really like
to use earSourceExcludes as a safety net.

I am unable get earSourceExcludes to work.  Here is my build section
from pom.xml:

<build>
    <plugins>
        <plugin>
            <artifactId>maven-ear-plugin</artifactId>
            <configuration>
                <!-- this places all jar modules into a "lib" dir -->
                <defaultJavaBundleDir>lib/</defaultJavaBundleDir>
                <earSourceExcludes>lib/commons-logging*</earSourceExcludes>
                <modules>
                    <webModule>
                        <groupId>my-groupid</groupId>
                        <artifactId>one-of-my-webmodules</artifactId>

<bundleFileName>one-of-my-webmodules.war</bundleFileName>
                    </webModule>
                    <!-- ... -->
                </modules>
            </configuration>
        </plugin>
    </plugins>
</build>

Yet, no matter what, commons-logging keeps showing up in my packaged
ear file under the lib/ path.  I've tried other patterns as well;
**/commons-logging* does not work either.
http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html#earSourceExcludes


Thoughts?

Thanks in advance,


Scott Heaberlin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to