wimdeblauwe / htmx-spring-boot

Spring Boot and Thymeleaf helpers for working with htmx
Apache License 2.0
517 stars 49 forks source link

Unable to find 1.x within maven central #78

Closed ccit-spence closed 1 year ago

ccit-spence commented 1 year ago

Trying to test both htmx-spring-boot and htmx-spring-boot-thymleaf.

        <dependency>
            <groupId>io.github.wimdeblauwe</groupId>
            <artifactId>htmx-spring-boot</artifactId>
            <version>1.0.0</version>
        </dependency>
        <dependency>
            <groupId>io.github.wimdeblauwe</groupId>
            <artifactId>htmx-spring-boot-thymeleaf</artifactId>
            <version>1.0.0</version>
        </dependency>

Results: Could not find artifact io.github.wimdeblauwe:htmx-spring-boot:pom:1.0.0 in central (https://repo1.maven.org/maven2)

Spring boot Version 2.7.10, Java 17

wimdeblauwe commented 1 year ago

This should work:

<dependency>
    <groupId>io.github.wimdeblauwe</groupId>
    <artifactId>htmx-spring-boot-thymeleaf</artifactId>
    <version>1.0.0</version>
</dependency>

See https://mvnrepository.com/artifact/io.github.wimdeblauwe/htmx-spring-boot-thymeleaf/1.0.0

The artifact without thymeleaf does not exist for Spring Boot 2.x

ccit-spence commented 1 year ago

It did, my error was coming from the Thymeleaf related package. Instead the project was upgraded to Spring 3. Everything works as expected now.