Skip to content

Conversation

@JoshRosen
Copy link
Contributor

This patch removes all non-Maven-central repositories from Spark's build, thereby avoiding any risk of future build-breaks due to us accidentally depending on an artifact which is not present in an immutable public Maven repository.

I tested this by running

build/mvn \
        -Phive \
        -Phive-thriftserver \
        -Pkinesis-asl \
        -Pspark-ganglia-lgpl \
        -Pyarn \
        dependency:go-offline

inside of a fresh Ubuntu Docker container with no Ivy or Maven caches (I did a similar test for SBT).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MQTT artifact was the one which prompted the creation of https://issues.apache.org/jira/browse/SPARK-4628 in the first place. This newer version is published to Maven Central and has no external dependencies.

@pwendell, interestingly enough this change does not cause dev/deps checks to fail because external/ projects aren't tracked there.

@JoshRosen JoshRosen changed the title [SPARK-4628][BUILD] Remove all non-Maven-central repositories from build [SPARK-4628][BUILD] Remove all non-Maven-Central repositories from build Jan 8, 2016
@SparkQA
Copy link

SparkQA commented Jan 8, 2016

Test build #49006 has finished for PR 10659 at commit e125f50.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor Author

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Jan 9, 2016

Test build #49029 has finished for PR 10659 at commit e125f50.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Jan 9, 2016

Looks great. I'm going to merge this.

@asfgit asfgit closed this in 090d691 Jan 9, 2016
asfgit pushed a commit that referenced this pull request Jan 11, 2016
#10659 removed the repository `https://repo.eclipse.org/content/repositories/paho-releases` but it's needed by MiMa because `spark-streaming-mqtt(1.6.0)` depends on `mqttv3(1.0.1)` and it is provided by the removed repository and maven-central provide only `mqttv3(1.0.2)` for now.
Otherwise, if `mqttv3(1.0.1)` is absent from the local repository, dev/mima should fail.

JoshRosen Do you have any other better idea?

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes #10688 from sarutak/SPARK-4628-followup.
@JoshRosen JoshRosen deleted the SPARK-4628 branch August 29, 2016 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants