Repository: impala
Updated Branches:
refs/heads/master b5dcc031f -> 4a39e7c29
IMPALA-4277: Pin org.glassfish:javax.el version.
This pins a version of a transitive dependency that we likely don't even
use. Doing so avoids an issue where Maven tries to talk to all
configured repositories (including those transitively picked up in
artifacts we depend on) to find the "latest" version, which can
lead to errors if those repositories are unavailble. This works
around the following message in particular:
Failed to execute goal on project impala-frontend: Could not resolve
dependencies for project org.apache.impala:impala-frontend:jar:0.1-SNAPSHOT:
Failed to collect dependencies at
org.apache.sentry:sentry-binding-hive:jar:2.0.0-cdh6.x-SNAPSHOT ->
org.apache.hive.hcatalog:hive-hcatalog-server-extensions:jar:2.1.1-cdh6.x-SNAPSHOT
-> org.apache.hive.hcatalog:hive-hcatalog-core:jar:2.1.1-cdh6.x-SNAPSHOT ->
org.apache.hive:hive-cli:jar:2.1.1-cdh6.x-SNAPSHOT ->
org.apache.hive:hive-service:jar:2.1.1-cdh6.x-SNAPSHOT ->
org.apache.hive:hive-llap-server:jar:2.1.1-cdh6.x-SNAPSHOT ->
org.apache.hbase:hbase-server:jar:2.0.0-cdh6.x-SNAPSHOT ->
org.glassfish.web:javax.servlet.jsp:jar:2.3.2 ->
org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT: Failed to read artifact
descriptor for org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT: Could not
transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to ...
The alternative I considered was to blacklist the specific broken
dependency, but I prefer this approach as it's more specific and less
likely to cause trouble, even if left around.
I tested this by running the build.
Change-Id: If744ccca193f96e1998bbcc35403a09e0c83cc74
Reviewed-on: http://gerrit.cloudera.org:8080/9808
Reviewed-by: Tim Armstrong <[email protected]>
Tested-by: Impala Public Jenkins
Project: http://git-wip-us.apache.org/repos/asf/impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/5d57ca5d
Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/5d57ca5d
Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/5d57ca5d
Branch: refs/heads/master
Commit: 5d57ca5da2a7ddbe7816dce19db4c11b87a90d37
Parents: b5dcc03
Author: Philip Zeyliger <[email protected]>
Authored: Mon Mar 26 12:27:58 2018 -0700
Committer: Impala Public Jenkins <[email protected]>
Committed: Tue Mar 27 20:00:38 2018 +0000
----------------------------------------------------------------------
fe/pom.xml | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/impala/blob/5d57ca5d/fe/pom.xml
----------------------------------------------------------------------
diff --git a/fe/pom.xml b/fe/pom.xml
index a6d40cb..07592d2 100644
--- a/fe/pom.xml
+++ b/fe/pom.xml
@@ -123,7 +123,6 @@ under the License.
</exclusion>
</exclusions>
</dependency>
-
<dependency>
<groupId>org.apache.sentry</groupId>
<artifactId>sentry-provider-db</artifactId>
@@ -813,6 +812,23 @@ under the License.
</plugin>
</plugins>
</build>
+ <dependencyManagement>
+ <dependencies>
+ <!--
+ Pin org.glassfish:javax.el explicitly.
+
+ HBase depends on this indirectly, and it's configured with
+ a range of versions. This causes Maven to talk to all configured
+ repositories, leading both to a lot of chattiness, and also
+ failures if one of the repositories is unavailable.
+ -->
+ <dependency>
+ <groupId>org.glassfish</groupId>
+ <artifactId>javax.el</artifactId>
+ <version>3.0.1-b08</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
</profile>
</profiles>
</project>