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

            Unassigned Unassigned
            rfscholte Robert Scholte
            Votes:
            25 Vote for this issue
            Watchers:
            25 Start watching this issue

            Dates

              Created:
              Updated: