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

exclusion of a dependency prevents the dependency being added normally

    XMLWordPrintableJSON

Details

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

    Description

      Consider following usecase:

      <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils-core</artifactId>
      <version>1.7.0</version>
      </dependency>
      <dependency>
      <groupId>commons-configuration</groupId>
      <artifactId>commons-configuration</artifactId>
      <version>1.2</version>
      <exclusions>
      <exclusion>
      <artifactId>commons-beanutils-core</artifactId>
      <groupId>commons-beanutils</groupId>
      </exclusion>
      </dependency>

      Above pom configuration to me says: ignore the transitive dependency on commons-beanutils-core brought in by commons-configurations because i would like to define and use my own. However this configuration excludes commons-beanutils-core completely, eg in a war build it's not included as a dependency anymore.

      Attachments

        Issue Links

          Activity

            People

              carlos Carlos Sanchez Gonzalez
              heymjo Jorg Heymans
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: