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

maven go-offline failure because of "was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced" #17230

Closed
findepi opened this issue Apr 25, 2023 · 3 comments · Fixed by #17243
Labels
bug Something isn't working

Comments

@findepi
Copy link
Member

findepi commented Apr 25, 2023

example https://github.com/trinodb/trino/actions/runs/4794853359/jobs/8528698799?pr=17092 (maven-checks (17))

2023-04-25T11:27:28.2818232Z + .github/bin/retry ./mvnw -B dependency:go-offline -Dsilent
2023-04-25T11:27:28.2866400Z + ./mvnw -B dependency:go-offline -Dsilent
...
2023-04-25T11:28:19.3603614Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.5.0:go-offline (default-cli) on project trino-record-decoder: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: io.confluent:kafka-protobuf-provider:jar:7.3.1 (absent): Could not find artifact io.confluent:kafka-protobuf-provider:jar:7.3.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
...
2023-04-25T11:28:29.3809131Z + ./mvnw -B dependency:go-offline -Dsilent
...
2023-04-25T11:28:45.8867438Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.5.0:go-offline (default-cli) on project trino-record-decoder: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: io.confluent:kafka-protobuf-provider:jar:7.3.1 (absent): Failure to find io.confluent:kafka-protobuf-provider:jar:7.3.1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

cc @nineinchnick

@findepi findepi added the bug Something isn't working label Apr 25, 2023
@nineinchnick
Copy link
Member

I can't find this dependency on https://central.sonatype.com, should we fetch it from Maven Central or some additional repository? Could it have been temporarily removed? It does come up on https://mvnrepository.com/artifact/io.confluent/kafka-protobuf-provider?repo=confluent-packages, but this is not an official site and has cached results.

@findepi
Copy link
Member Author

findepi commented Apr 25, 2023

i think this one comes from

    <repositories>
        <repository>
            <id>confluent</id>
            <url>https://packages.confluent.io/maven/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

( https://packages.confluent.io/maven/io/confluent/kafka-protobuf-provider/7.3.1/ )

@nineinchnick
Copy link
Member

The trino-record-decoder module doesn't have this repository, it's only present in trino-kafka, trino-pinot, and trino-product-tests. This could have been missed in #16836 if it used the cached Maven local repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

2 participants