Uh oh!
There was an error while loading. Please reload this page.
[ZEPPELIN-1695] Centralize libs, plugin versions in all pom.xml - #1668
[ZEPPELIN-1695] Centralize libs, plugin versions in all pom.xml#16681ambda wants to merge 33 commits into
Conversation
a7aed47 to
a5c42eaCompare| <dependency> | ||
| <groupId>org.apache.httpcomponents</groupId> | ||
| <artifactId>httpclient</artifactId> | ||
| <version>4.3.6</version> |
There was a problem hiding this comment.
Is it safe to remove versions here, without extracting it to the properties, as in other sub-projects?
There was a problem hiding this comment.
@bzz It's safe since
- we have
dependencyManagementinroot/pom.xmland all dependencies described independencyManagementblock will be inherited and shared by children pom.xml
(ref - https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management)
<properties>
<httpcomponents.client.version>4.3.6</httpcomponents.client.version>
<dependencyManagement>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpcomponents.client.version}</version>
</dependency>
- You can check using effective pom
$ mvn org.apache.maven.plugins:maven-help-plugin:2.2:effective-pom -pl kylin
// you will see
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.6</version>
</dependency>
There was a problem hiding this comment.
great reminder on how dependency mechanism works in Maven, it would be event enough just to point it's existence in parent pom :)
bzz
commented
Nov 23, 2016
Thank you - it's a great effort, a bit long to review so it took a while and have diverged from master. @1ambda could you rebase and also make sure it does not affect automation like https://github.com/apache/zeppelin/blob/master/dev/change_scala_version.sh ? |
40a1709 to
b724218CompareComment Summary@bzz Thanks for review! I didn't know about There are many ways to compare, but i chose a simple and reproduceable way so that others can do again
As you can see, Long Details (sorry, but it's necessary)below are content of |
bzz
commented
Nov 24, 2016
Thank you for double-checking and explanations. Looks like CI is failing right now though |
Failed due to not the related test. I will amend the last commit and trigger CI again |
b724218 to
bc40176Comparebzz
commented
Nov 24, 2016
Looks great to me and CI is green now. Merging to master, if there is no further discussion. |
bzz
commented
Nov 24, 2016
@1ambda it looks like rebase is needed after few other |
1f0ba6d to
1527b84Compare1ambda
commented
Nov 25, 2016
CI failed |
033f0e2 to
2fb4e1cCompare1ambda
commented
Nov 29, 2016
rebased to keep sync with master (+ to see CI is green as well) |
1ambda
commented
Nov 29, 2016
bzz
commented
Nov 29, 2016
Sounds reasonable. CI is green, merging to master then. |
1ambda
commented
Nov 29, 2016
I will resolve conflict with 4ac577f |
bzz
commented
Nov 29, 2016
thanks a lot, @1ambda ! |
2fb4e1c to
1a5419aComparebzz
commented
Nov 30, 2016
Thank you @1ambda ! Merging to master, if there is no further discussion. |
we already specified in the parent pom.xml - 1.5 commons-codec - 4.3.6 httpclient so it's safe to remove their version fields
ffc1982 to
5a9c966Comparebzz
commented
Dec 1, 2016
Waiting for CI to finish on https://travis-ci.org/1ambda/zeppelin/ Will merge to master right after that, if there is no further discussion. |
2 Scala 2.11 profiles failed on IgniteSQL tests - a flaky test tracked under ZEPPELIN-1738 which is not relevant to the change. |
What is this PR for?
First of all, this PR doesn't affect on runtime application behaivor and existing build processes. Just abstracting variables in pom.xml
The main goal of this PR is bringing consistency and maintainability in all pom.xml. I referred these 2 projects.
Currently, all libraries and plugins have duplicated version fields since we are not using
dependencyManagement,pluginManagementefficiently in pom.xmlThis results in
These are some examples
What type of PR is it?
[Refactoring]
Todos
What is the Jira issue?
ZEPPELIN-1695
How should this be tested?
Since this PR doesn't affect runtime behavior at all, CI test would be enough.
Questions: