what are the maven dependency policies on transient exclusionsHow do I tell Maven to use the latest version of a dependency?Differences between dependencyManagement and dependencies in MavenForce maven updateHow to add local jar files to a Maven project?What exactly is a Maven Snapshot and why do we need it?Dealing with “Xerces hell” in Java/Maven?Maven and spring-boot-dependenciesMaven Exclusion for specific versionMAVEN! Spring Boot takes wrong dependency version mentioned in dependency projectMaven trying to download a local dependency

IX-NAY on the IX-SAY

Non-Chromatic Orchestral Instruments?

User Vs. Connected App

First Entry Member State schengen visa

Is it possible to complete a PhD in CS in 3 years?

Finding overlapping polygons in two shapefiles and deleting them in R?

When did "&" stop being taught alongside the alphabet?

Who buys a weak currency?

Password Hashing Security Using Scrypt & Argon2

Why is a mixture of two normally distributed variables only bimodal if their means differ by at least two times the common standard deviation?

How to find the positions of replaced elements in a list

Why is the Cauchy Distribution is so useful?

Is it stylistically sound to use onomatopoeic words?

Would a Nikon FG 20 film SLR camera take pictures without batteries?

Adjust the Table

VHF 50 Ω Antenna Over 75 Ω TV Coax

What is the meaning of “Can I have a slice?” In NYC?

Intern not wearing safety equipment; how could I have handled this differently?

Why did Dumbledore ignore this line?

Why does Trump want a citizenship question on the census?

Why different specifications for telescopes and binoculars?

Appropriate conduit for several data cables underground over 300' run

Generalized Behrend version for Grothendieck-Lefschetz trace formula

What does collachrimation mean?



what are the maven dependency policies on transient exclusions


How do I tell Maven to use the latest version of a dependency?Differences between dependencyManagement and dependencies in MavenForce maven updateHow to add local jar files to a Maven project?What exactly is a Maven Snapshot and why do we need it?Dealing with “Xerces hell” in Java/Maven?Maven and spring-boot-dependenciesMaven Exclusion for specific versionMAVEN! Spring Boot takes wrong dependency version mentioned in dependency projectMaven trying to download a local dependency






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am using Maven 3, and I have a small project with a module that depends on another module of this project. The lower one is basically the JPA entity model and the other one the REST service using it. All of them have spring-boot dependencies



I wanted to use more recent Hibernate and EhCache dependencies and sorted these out in the JPA module, excluding them, and the maven dependency:tree shows everything as I wanted it.



But when I add that module in my other module as dependency, all those excluded dependency versions are back again in my dependency tree.



Why does Maven pick the dependencies deeper in the tree branches (and excluded) before the versions I defined on first level in my module?










share|improve this question






























    0















    I am using Maven 3, and I have a small project with a module that depends on another module of this project. The lower one is basically the JPA entity model and the other one the REST service using it. All of them have spring-boot dependencies



    I wanted to use more recent Hibernate and EhCache dependencies and sorted these out in the JPA module, excluding them, and the maven dependency:tree shows everything as I wanted it.



    But when I add that module in my other module as dependency, all those excluded dependency versions are back again in my dependency tree.



    Why does Maven pick the dependencies deeper in the tree branches (and excluded) before the versions I defined on first level in my module?










    share|improve this question


























      0












      0








      0








      I am using Maven 3, and I have a small project with a module that depends on another module of this project. The lower one is basically the JPA entity model and the other one the REST service using it. All of them have spring-boot dependencies



      I wanted to use more recent Hibernate and EhCache dependencies and sorted these out in the JPA module, excluding them, and the maven dependency:tree shows everything as I wanted it.



      But when I add that module in my other module as dependency, all those excluded dependency versions are back again in my dependency tree.



      Why does Maven pick the dependencies deeper in the tree branches (and excluded) before the versions I defined on first level in my module?










      share|improve this question
















      I am using Maven 3, and I have a small project with a module that depends on another module of this project. The lower one is basically the JPA entity model and the other one the REST service using it. All of them have spring-boot dependencies



      I wanted to use more recent Hibernate and EhCache dependencies and sorted these out in the JPA module, excluding them, and the maven dependency:tree shows everything as I wanted it.



      But when I add that module in my other module as dependency, all those excluded dependency versions are back again in my dependency tree.



      Why does Maven pick the dependencies deeper in the tree branches (and excluded) before the versions I defined on first level in my module?







      maven dependency-management






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 23:12







      Kai

















      asked Mar 25 at 23:07









      KaiKai

      82212 silver badges27 bronze badges




      82212 silver badges27 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          1














          I guess you defined the exclusions in the <dependencyManagement> section of the POM of the first module. When another module referenced the first module, these exclusions are gone, right?



          What I would suggest:



          If you need newer versions of a given dependency, do not use exclusions, but use <dependencyManagement> to define the new version. This overwrites all transitive version definitions.






          share|improve this answer























          • no, there is no dependency management section defined. just straight dependencies and exclusions in the first module, then depending on it in the second module.

            – Kai
            Apr 14 at 22:19











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55347659%2fwhat-are-the-maven-dependency-policies-on-transient-exclusions%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          I guess you defined the exclusions in the <dependencyManagement> section of the POM of the first module. When another module referenced the first module, these exclusions are gone, right?



          What I would suggest:



          If you need newer versions of a given dependency, do not use exclusions, but use <dependencyManagement> to define the new version. This overwrites all transitive version definitions.






          share|improve this answer























          • no, there is no dependency management section defined. just straight dependencies and exclusions in the first module, then depending on it in the second module.

            – Kai
            Apr 14 at 22:19
















          1














          I guess you defined the exclusions in the <dependencyManagement> section of the POM of the first module. When another module referenced the first module, these exclusions are gone, right?



          What I would suggest:



          If you need newer versions of a given dependency, do not use exclusions, but use <dependencyManagement> to define the new version. This overwrites all transitive version definitions.






          share|improve this answer























          • no, there is no dependency management section defined. just straight dependencies and exclusions in the first module, then depending on it in the second module.

            – Kai
            Apr 14 at 22:19














          1












          1








          1







          I guess you defined the exclusions in the <dependencyManagement> section of the POM of the first module. When another module referenced the first module, these exclusions are gone, right?



          What I would suggest:



          If you need newer versions of a given dependency, do not use exclusions, but use <dependencyManagement> to define the new version. This overwrites all transitive version definitions.






          share|improve this answer













          I guess you defined the exclusions in the <dependencyManagement> section of the POM of the first module. When another module referenced the first module, these exclusions are gone, right?



          What I would suggest:



          If you need newer versions of a given dependency, do not use exclusions, but use <dependencyManagement> to define the new version. This overwrites all transitive version definitions.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 7:49









          JF MeierJF Meier

          11.2k5 gold badges30 silver badges70 bronze badges




          11.2k5 gold badges30 silver badges70 bronze badges












          • no, there is no dependency management section defined. just straight dependencies and exclusions in the first module, then depending on it in the second module.

            – Kai
            Apr 14 at 22:19


















          • no, there is no dependency management section defined. just straight dependencies and exclusions in the first module, then depending on it in the second module.

            – Kai
            Apr 14 at 22:19

















          no, there is no dependency management section defined. just straight dependencies and exclusions in the first module, then depending on it in the second module.

          – Kai
          Apr 14 at 22:19






          no, there is no dependency management section defined. just straight dependencies and exclusions in the first module, then depending on it in the second module.

          – Kai
          Apr 14 at 22:19









          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55347659%2fwhat-are-the-maven-dependency-policies-on-transient-exclusions%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript