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

Check exclusions against relocated artifacts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0.1
    • None
    • None

    Description

      When using an artifact that was relocated you need to exclude the one used directly, it doesn't work if you use the final relocated artifact. This is confusing when you get an artifact in your war but you need to exclude other.

      eg. if you don't use exclusions you get jdbc-stdext in the war. Using option b doesn't work, currently you need to use option a.

      <dependency>
      <artifactId>commons-dbcp</artifactId>
      <groupId>commons-dbcp</groupId>
      <version>1.2</version>
      <exclusions>
      <!-- option a -->
      <exclusion>
      <artifactId>jdbc</artifactId>
      <groupId>jdbc</groupId>
      </exclusion>
      <!-- option b -->
      <exclusion>
      <artifactId>jdbc-stdext</artifactId>
      <groupId>javax.sql</groupId>
      </exclusion>
      </exclusions>
      </dependency>

      Attachments

        1. MNG-1286-maven-artifact_b.patch
          1 kB
          Lester T. Ecarma
        2. MNG-1286-maven-project_b.patch
          0.8 kB
          Lester T. Ecarma
        3. MNG-1287-maven-project.patch
          2 kB
          Edwin Punzalan

        Activity

          People

            lecarma Lester T. Ecarma
            carlos Carlos Sanchez Gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: