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

Add overiding dependencies from a BOM dependencyManagement

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Dependencies

    Description

      Hello

      By looking at MNG-5102, I finally manage my BOM problem. But I need an extension that allows the imported BOM to be overriden by some new dependencies specs. As for exemple

              <dependencyManagement>
      		<dependencies>
      			<dependency>
      				<groupId>com.scort</groupId>
      				<artifactId>mi</artifactId>
      				<version>4.4.0</version>
                                      <scope>import</scope>
                                      <type>pom</type>
                                       <dependencies>
                                             <dependency>
                                                  <groupId>foo</groupId>
                                                  <artifactId>bar</artifactId>
                                                   <scope>provided</scope>
                                             </dependecy>
                                        </dependencies>
      			</dependency>
      
      

      The use case is the case where a customer wants to integrate the com.scor:mi jars in a war to run on Tomcat for exemple, while it would like also to integrate com.scort:mi jars as a module of a JBoss server, in which case, the artifacts should be marked as provided.

      Attachments

        Activity

          People

            Unassigned Unassigned
            zosrothko zosrothko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: