[
https://issues.apache.org/jira/browse/FLINK-33040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762155#comment-17762155
]
Matthias Pohl commented on FLINK-33040:
---------------------------------------
I guess, the right way to handle it to upgrade to a {{2.x}} version that
doesn't include the conjar repository anymore. {{2.3.9}} is the most-recent
version of the {{2.x}} version branch.
[~gunnar.morling] suggested adding the {{net.minidev:json-smart:2.3}}
dependency to the dependency management to make the dependency being pulled
from Maven Central. That would change the dependency tree, though.
The issue doesn't appear in CI. I guess that is due to Maven caching?
> flink-connector-hive builds might be blocked (but not fail) because Maven
> tries to access conjars.org repository (which times out)
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: FLINK-33040
> URL: https://issues.apache.org/jira/browse/FLINK-33040
> Project: Flink
> Issue Type: Bug
> Components: Build System / CI
> Affects Versions: 1.16.2, 1.18.0, 1.17.1, 1.19.0
> Reporter: Matthias Pohl
> Priority: Major
>
> We (thanks to [~mdedetrich]) experienced timeouts when building
> {{flink-connectors/flink-connector-hive}} because Maven tries to access
> {{http://conjars.org}} to retrieve meta information for
> {{net.minidev:json-smart}} which fails because the repository is gone.
> [~gunnar.morling] already described this in his blog post
> https://www.morling.dev/blog/maven-what-are-you-waiting-for/.
> We investigated where this {{conjar}} repository is coming from. It turns out
> that the
> [org.apache.hive:hive-exec:2.3.9|https://repo1.maven.org/maven2/org/apache/hive/hive-exec/2.3.9/hive-exec-2.3.9.pom]
> dependency derives from its parent
> [org.apache.hive:hive:2.3.9|https://repo1.maven.org/maven2/org/apache/hive/hive/2.3.9/hive-2.3.9.pom]
> which pulls in the conjar.org repository:
> {code}
> <repository>
> <id>conjars</id>
> <name>Conjars</name>
> <url>http://conjars.org/repo</url>
> <layout>default</layout>
> <releases>
> <enabled>true</enabled>
> <updatePolicy>always</updatePolicy>
> <checksumPolicy>warn</checksumPolicy>
> </releases>
> </repository>
> {code}
> The subsequent hive dependency
> [org.apache.hive:hive:3.0.0|https://repo1.maven.org/maven2/org/apache/hive/hive/3.0.0/hive-3.0.0.pom]
> doesn't have this reference anymore.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)