'An error while adding HAL Browser: Dependency 'org.springframework.data:spring-data-rest-hal-browser:' not found

Trying to install the Hal Browser with Spring Boot, but I get the following error:

Dependency 'org.springframework.data:spring-data-rest-hal-browser:' not found

I wonder if there is an official reference for compatibility between Spring plugins, but anyway, here I used the latest versions by default.

Here is my POM file:

    ...
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.example.ec</groupId>
    <artifactId>explorecali</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>explorecali</name>
    <description>Explore California MicroService</description>

    <properties>
        <java.version>15</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-rest</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-rest-hal-browser</artifactId>
        </dependency>
    </dependencies>
...


Solution 1:[1]

The package was renamed to spring-data-rest-hal-explorer. I verified that it's compatible with Spring Boot 2.5.6.

Maven example:

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-rest-hal-explorer</artifactId>
</dependency>

Gradle example:

implementation('org.springframework.data:spring-data-rest-hal-explorer')

Solution 2:[2]

It looks like an incompatibility issue with the latest version of Spring, the solution is to downgrade Spring Boot to 2.3.5.RELEASE

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.3.5.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 naXa stands with Ukraine
Solution 2 naXa stands with Ukraine