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

Fix Maven dependencies in build.gradle #468

Open
ytxmobile98 opened this issue Feb 6, 2022 · 0 comments
Open

Fix Maven dependencies in build.gradle #468

ytxmobile98 opened this issue Feb 6, 2022 · 0 comments

Comments

@ytxmobile98
Copy link

ytxmobile98 commented Feb 6, 2022

I am trying to learn from the crawler examples you have provided here to write my own crawling program.

But when I opened the repo in Visual Studio Code, it complains "Unresolved dependency: com.palantir.docker.compose:docker-compose-rule-junit4:0.33.0".

I found this dependency specification in crawler4j-examples/crawler4j-examples-postgres/build.gradle, with the following lines causing the problem:

repositories {
    mavenCentral()
    // Needed for 'com.palantir.docker.compose'
    maven { url "https://palantir.bintray.com/releases" }
}

This URL no longer works. If I access it directly from my browser, it shows "502 Bad Gateway".

I checked on MVN Repository that the newest working version is 1.7.0. (.jar file download link)

So after checking the .jar file URL I changed these lines to:

repositories {
    mavenCentral()
    // Needed for 'com.palantir.docker.compose'
    maven { url "https://repo1.maven.org/maven2/" }
}

Now I can successfully run these examples.

Please fix the broken dependencies in the repo.

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

No branches or pull requests

1 participant