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;
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
add a comment |
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
add a comment |
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
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
maven dependency-management
edited Mar 25 at 23:12
Kai
asked Mar 25 at 23:07
KaiKai
82212 silver badges27 bronze badges
82212 silver badges27 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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