hoangtien2k3 / ecommerce-microservices

⚡️ Microservice Architecture with system for e-commerce project! Spring Boot microservices app with 🌀 Spring Cloud, Robust and resilient backend managing e-Commerce app... ❄️ Using Kafka Client, kafka server send message, Reactive Programming with WebFlux - Project Reactor.
https://github.com/hoangtien2k3qx1/microservice-webflux
MIT License
139 stars 61 forks source link

Dependancy Issue #17

Open smfaizalkhan opened 1 month ago

smfaizalkhan commented 1 month ago

Hi @hoangtien2k3 @hoangchungk53qx1 The repo is really great and good and i would like to contribute as well,But i couldnt do an initial setUp

when i run the mvn clean install i see a quite a few dependancy conflicts especially the spring-web and boot version

Here it uses 2.7.16

org.springframework.boot
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.7.16</version>
    <relativePath/>

but the web version

org.springframework spring-web 6.1.11
    and in most of the modules spring-web  uses the spring base version which is supposed to be 5.x series

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-webflux</artifactId>
        </dependency>

        Even excluding it 

        <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-webflux</artifactId>
        <exclusions>
            <exclusion>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

    dosent fix the issue
hoangtien2k3 commented 1 month ago

Hi @smfaizalkhan

Thanks for the kind words! It looks like there are some dependency version mismatches causing issues with your setup. The project is using Spring Boot 2.7.16, but Spring Web version 6.1.11, which is part of Spring Framework 6.x series, might not be compatible with the 2.x Spring Boot version.

To resolve this, you could try aligning both Spring Boot and Spring Web versions. Either downgrade spring-web to a version compatible with 2.7.16 or upgrade the Spring Boot version to 3.x, which supports Spring Framework 6.x.

Let me know if you need further assistance!

hoangtien2k3 commented 1 month ago

@smfaizalkhan

Contributing

Thank you for considering contributing to our project! Follow these steps to set up the project and resolve common issues before making contributions:

1. Resolve Spring Dependency Conflicts

The project uses Spring Boot 2.7.16, which is compatible with Spring Framework 5.x. If you encounter dependency conflicts like seeing spring-web 6.1.11 (from Spring Framework 6.x), here’s how to resolve it:

2. Fork the Repository

3. Set Up the Project Locally

4. Create a Branch for Your Changes

5. Make the Necessary Adjustments

6. Submit a Pull Request

If you need help at any step or have questions, feel free to reach out! We're happy to assist.