Hi,

Try the following syntax:

          <excludes>
            <exclude>groupId:artifactId</exclude>
            ...
          </excludes>

For example:

          <excludes>
            <exclude>commons-logging:commons-logging</exclude>
            <exclude>log4j:log4j</exclude>
          </excludes>

Ian 

| -----Original Message-----
| From: David Smiley [mailto:[EMAIL PROTECTED] 
| Sent: Friday, July 21, 2006 1:47 PM
| To: users@maven.apache.org
| Subject: Excluding jars from my ear
| 
| 
| Hi. I have a multi-module project.  My parent pom specifies 
| the dependencies
| that are used by practically everything.  I have an ear 
| module that's sole
| purpose is to package up two war files (in other modules), 
| but nothing else. 
| It does this but includes jar's specified by my parent pom.  
| But I don't
| want any of those at all... since they are included already 
| in both war
| files.  I want to keep the war files that  way because that makes them
| independently complete.  I looked at the ear plugin page and 
| I see a mention
| of "excludes" but it doesn't seem to work.  I have it like so:
| <excludes>*.jar</excludes>
| 
| What should I do?
| -- 
| View this message in context: 
| http://www.nabble.com/Excluding-jars-from-my-ear-tf1981474.htm
| l#a5437741
| Sent from the Maven - Users forum at Nabble.com.
| 
| 
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| 
| 

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

Reply via email to