Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building linter fails - util-logging_2.12:19.10.0-Snapshot not found in Maven repo #316

Open
gjfishman opened this issue Sep 26, 2019 · 3 comments

Comments

@gjfishman
Copy link
Contributor

One line summary of the issue here.

Building the scrooge-linter fails because the 19.10.0 version of the util-logging dependency cannot be found. Changing build.sbt to use 19.9.0-SNAPSHOT works fine

Expected behavior

A command like the following should run:

./sbt 'scrooge-linter/runMain com.twitter.scrooge.linter.Main --help'

In this case, this should display the linter's help message.

Actual behavior

Builds fail with the following exception:

[info] Resolved scrooge-linter dependencies
[error] coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error]     com.twitter:util-logging_2.12:19.10.0-SNAPSHOT:
[error]         not found:
[error]             /Users/gfishman/.ivy2/local/com.twitter/util-logging_2.12/19.10.0-SNAPSHOT/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/com/twitter/util-logging_2.12/19.10.0-SNAPSHOT/util-logging_2.12-19.10.0-SNAPSHOT.pom
[error]             https://oss.sonatype.org/content/groups/public/com/twitter/util-logging_2.12/19.10.0-SNAPSHOT/util-logging_2.12-19.10.0-SNAPSHOT.pom
[error] (scrooge-linter / coursierResolutions) coursier.ResolutionException: Encountered 1 error(s) in dependency resolution:
[error]     com.twitter:util-logging_2.12:19.10.0-SNAPSHOT:
[error]         not found:
[error]             /Users/gfishman/.ivy2/local/com.twitter/util-logging_2.12/19.10.0-SNAPSHOT/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/com/twitter/util-logging_2.12/19.10.0-SNAPSHOT/util-logging_2.12-19.10.0-SNAPSHOT.pom
[error]             https://oss.sonatype.org/content/groups/public/com/twitter/util-logging_2.12/19.10.0-SNAPSHOT/util-logging_2.12-19.10.0-SNAPSHOT.pom

The latest version of util-logging available in maven repo appears to be 19.9.0-SNAPSHOT: https://mvnrepository.com/artifact/com.twitter/util-logging

@mosesn
Copy link
Contributor

mosesn commented Sep 30, 2019

@gjfishman we've investigated publishing snapshots to maven central, but so far we've had issues around our travisci integration, so right now you need to build snapshots locally. Check out the guidance in CONTRIBUTING.md for how to build the deps locally.

@ryanoneill
Copy link
Contributor

Hey @gjfishman, the documentation for running Scrooge from the command line has recently changed to instead say specifically to use the master branch. This means you should no longer need to deal with publishing locally (and SNAPSHOT dependencies) in trying to run it via instructions. Hope that helps. Thanks.

@yufangong
Copy link
Contributor

Hi @gjfishman, can you verify if building from the master branch resolves this issue? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants