Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2969

Unable to exclude a dependency from a needed plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.6
    • None
    • Dependencies
    • None

    Description

      When we add a "standard" dependency we can tune its dependency list using the exclusions directive.
      THis is not possible with plugins.
      Let's say I add javacc-maven-plugin to my build/plugins section and the plugin declared in its pom:
      <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-utils</artifactId>
      <version>1.0.4</version>
      </dependency>
      And I know that this dependency is a compile dependency and I won't need it, how can I tune my plugin inclusion so to not download plexus-utils?
      in <pluginManagement> I can add new dependencies to plugin (WHY is this needed?) but I cannot exclude existing dependencies: isn't this a bug?
      I can add a new dependency to the plugin and add exclusions for this new dependency but I cannot add an exclusion for the top-level dependencies.

      Am I missing something?

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              apache@bago.org Stefano Bagnara
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: