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

Support exclusion of direct plugin dependencies

    XMLWordPrintableJSON

    Details

      Description

      Based on http://stackoverflow.com/questions/43630262/how-to-exclude-a-direct-dependency-of-a-maven-plugin

      <build>
          <plugins>
              <plugin>
                  <groupId>org.jvnet.jaxb2.maven2</groupId>
                  <artifactId>maven-jaxb2-plugin</artifactId>
                  <version>0.13.2</version>
                  <dependencies>
                      <dependency>
                 <!-- how to exclude javax.xml.bind:jaxb-api so it can be picked up by the JRE -->
                      </dependency>
                  </dependencies>
              </plugin>
          </plugins>
      </build>
      

      Up until now there hasn't been any reason to do this, but this seems like a valid one. Most clean solution I can think of is allowing to override the scope with "none" for plugin dependencies.

      This solution won't break the pom-4.0.0.xsd

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rfscholte Robert Scholte
            • Votes:
              13 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated: