Not able to download SNAPSHOT dependencies.

Steps to replicate:

  1. Clone vaadin-grid-flow by running git clone git@github.com:vaadin/vaadin-grid-flow.git.
  2. Run maven install by execute mvn clean install
  3. The build will failed with the following error:
[ERROR]
 Failed to execute goal on project vaadin-grid-flow: Could not resolve dependencies for project com.vaadin:vaadin-grid-flow:jar:3.1-SNAPSHOT: The following artifacts could not be resolved: com.vaadin:flow:pom:1.5-SNAPSHOT, com.vaadin:flow-data:jar:1.5-SNAPSHOT, com.vaadin:flow-osgi:jar:1.5-SNAPSHOT, com.vaadin:vaadin-context-menu-flow:jar:2.0-SNAPSHOT, com.vaadin:flow-test-generic:jar:1.5-SNAPSHOT, com.vaadin:flow-test-util:jar:1.5-SNAPSHOT, com.vaadin:vaadin-text-field-flow:jar:1.3-SNAPSHOT: Failure to find com.vaadin:flow:pom:1.5-SNAPSHOT in https://maven.vaadin.com/vaadin-prereleases was cached in the local repository, resolution will not be reattempted until the update interval of vaadin-prereleases has elapsed or updates are forced -> [Help 1]
 

When I try to access https://oss.sonatype.org/content/repositories/vaadin-snapshots/ through web browser it show error
404 - Repository "Vaadin Snapshots" [id=vaadin-snapshots] exists but is not exposed.

I did try to clear my repository by running rm -rf ~/.m2/repository/com/vaadin/flow/, but it still show the same error.

Thanks.

It fixed now. I can access https://oss.sonatype.org/content/repositories/vaadin-snapshots/. Thanks to whoever fixed this problem.

We are facing same issues right now. Can anyone assist?

Please share any error message that you get.

I’m getting a 503 now for that URL since it’s been marked as Out Of Service. But there’s a lot of old Vaadin 7 dependencies that still reference it.

This Maven Repo is EOL
https://central.sonatype.org/pages/ossrh-eol/#logging-in-to-central-portal

Which dependencies are you looking for?

When I try to build a Vaadin 7 project now through Gradle, it gives this as an error:
> Failed to list versions for com.vaadin:vaadin-sass-compiler.
> Unable to load Maven meta-data from http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/vaadin/vaadin-sass-compiler/maven-metadata.xml.
> Could not get resource ‘http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/vaadin/vaadin-sass-compiler/maven-metadata.xml’.
> Could not GET ‘https://oss.sonatype.org:443/content/repositories/vaadin-snapshots/com/vaadin/vaadin-sass-compiler/maven-metadata.xml’. Received status code 503 from server: Service Unavailable

I don’t have that repository explicitly defined anywhere, but there are many dependencies that do have it defined.

If you have Extended Maintenance you should ask your support agent.

If you don’t: well… then you are out of luck

Which version?

This is still there

Try to remove the repository configuration that still points to the old repository

I don’t have it in any configuration directly. It’s getting pulled in through dependencies. And I don’t think it’s so much that the dependency isn’t available anywhere, it’s that it’s trying to scan a dead repository.

As a workaround, if you detect the id of that repo you can try to setup a mirror
https://maven.apache.org/guides/mini/guide-mirror-settings.html

I’m using Gradle, but might have to see if I can get it working under Maven if this repository will stay marked Out of Service.