I just checked and if I reverse that logic, I get things like:

    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>2.0.8</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <artifactId>commons-logging</artifactId>
          <groupId>commons-logging</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
      <scope>compile</scope>
    </dependency>

which makes absolutely no sense. Why exclude it if it's included as a dependency.

Do you have a (perferrably open source) project/pom that shows a problem with excluding too much?

Dan




On Jul 15, 2008, at 8:36 PM, Daniel Kulp wrote:



I think the comment is wrong. If it's two levels deep and included, it was stuff that was originally excluded and needs to be re-excluded. I doubt there is a test for it, but it was tested in the OpenEJB project and in CXF.

Dan




mihobson wrote:

I've noticed that dependency reduced pom produced by the shade plugin
contains unnecessary exclusions.  Checking the code, in ShadeMojo:825
we have:

//anything two levels deep that is not marked "included" //is stuff that was excluded by the original poms, make
sure it
               //remains excluded
               if ( n3.getState() == DependencyNode.INCLUDED)

The comment sounds right to me which contradicts the code.  Anyone
disagree with negating the logic?

Since this is quite a major bug, can we push out a 1.1.1 release with
this fix?  The only work that's occurred on trunk since 1.1 is
MSHADE-35.

Mark

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




--
View this message in context: 
http://www.nabble.com/Shade-plugin%27s-over-zealous-exclusions-tp18462091p18477890.html
Sent from the Maven Developers mailing list archive at Nabble.com.


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


---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog





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

Reply via email to