Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
...
like image 366
Yazid Erman Avatar asked Oct 15 '25 18:10

Yazid Erman


1 Answers

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')
like image 161
naXa Avatar answered Oct 18 '25 12:10

naXa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!