You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2017/04/27 08:08:04 UTC

[jira] [Created] (MNG-6222) Support exclusion of direct plugin dependencies

Robert Scholte created MNG-6222:
-----------------------------------

             Summary: Support exclusion of direct plugin dependencies
                 Key: MNG-6222
                 URL: https://issues.apache.org/jira/browse/MNG-6222
             Project: Maven
          Issue Type: Improvement
          Components: Plugins and Lifecycle
            Reporter: Robert Scholte


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

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

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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)