Hi I finally fixed this issue by adding spring-cloud-openfeign-core which is below

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-openfeign-core</artifactId>
    <version>3.0.2</version>
</dependency>

Resolution:

  1. I found this solution as error came on 4th line of pom file saying "Missing artifact org.springframework.cloud:spring-cloud-openfeign-core:jar:3.0.3-SNAPSHOT" after adding version for spring-cloud-starter-openfeign dependency.

  2. Means Sping is searching for openfeign-core dependency after adding spring-cloud-starter-openfeign

So below is updated pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.5.0</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.cts</groupId>
    <artifactId>stock</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>stock</name>
    <description>Demo project for Spring Boot</description>
    <properties>
        <java.version>11</java.version>
        <spring-cloud.version>2020.0.3-SNAPSHOT</spring-cloud.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-jdbc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-netflix-eureka-client -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
            <version>3.0.2</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <version>2.5.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
            <version>3.0.2</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-openfeign-core -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-openfeign-core</artifactId>
            <version>3.0.2</version>
        </dependency>





    </dependencies>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                        </exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>


Answer from jagan mohan Mylapuru on Stack Overflow
🌐
Maven Repository
mvnrepository.com › artifact › org.springframework.cloud › spring-cloud-starter-openfeign
Maven Repository: org.springframework.cloud » spring-cloud-starter-openfeign
August 21, 2026 - Maven Plugins · Testing · Language Runtime · Android Packages · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications · Core Utilities · Annotation Libraries · Web Assets · Mocking · HTTP Clients · Concurrency Libraries · Logging Bridges · Dependency Injection · XML Processing · Web Frameworks · I/O Utilities · Code Generators · View All · Home » org.springframework.cloud » spring-cloud-starter-openfeign ·
🌐
Maven Central
central.sonatype.com › artifact › org.springframework.cloud › spring-cloud-starter-openfeign
Maven Central: org.springframework.cloud:spring-cloud-starter-openfeign
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> <version>5.0.3</version> </dependency> Copy to clipboard · <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-openfeign</artifactId> <version>5.0.3</version> <relativePath>..</r
🌐
GitHub
github.com › spring-cloud › spring-cloud-openfeign
GitHub - spring-cloud/spring-cloud-openfeign: Support for using OpenFeign in Spring Cloud apps · GitHub
Other IDEs and tools should also work without issue as long as they use Maven 3.3.3 or better. Spring Cloud projects require the 'spring' Maven profile to be activated to resolve the spring milestone and snapshot repositories.
Author: spring-cloud
Top answer
1 of 3
11

Hi I finally fixed this issue by adding spring-cloud-openfeign-core which is below

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-openfeign-core</artifactId>
    <version>3.0.2</version>
</dependency>

Resolution:

  1. I found this solution as error came on 4th line of pom file saying "Missing artifact org.springframework.cloud:spring-cloud-openfeign-core:jar:3.0.3-SNAPSHOT" after adding version for spring-cloud-starter-openfeign dependency.

  2. Means Sping is searching for openfeign-core dependency after adding spring-cloud-starter-openfeign

So below is updated pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.5.0</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.cts</groupId>
    <artifactId>stock</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>stock</name>
    <description>Demo project for Spring Boot</description>
    <properties>
        <java.version>11</java.version>
        <spring-cloud.version>2020.0.3-SNAPSHOT</spring-cloud.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-jdbc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-netflix-eureka-client -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
            <version>3.0.2</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <version>2.5.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
            <version>3.0.2</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-openfeign-core -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-openfeign-core</artifactId>
            <version>3.0.2</version>
        </dependency>





    </dependencies>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                        </exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>


2 of 3
1

The last release version is 3.0.2 not 3.0.3 See here https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-openfeign/3.0.2

🌐
Baeldung
baeldung.com › home › spring › spring cloud › introduction to spring cloud openfeign
Introduction to Spring Cloud OpenFeign | Baeldung
February 19, 2026 - We can find the latest versions of spring-cloud-starter-openfeign and spring-cloud-dependencies on Maven Central.
🌐
Maven Central Repository
search.maven.org › org.springframework.cloud › spring-cloud-starter-openfeign › 2.1.3.release
Maven
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> <version>2.1.3.RELEASE</version> </dependency>
🌐
Maven Central Repository
search.maven.org › org.springframework.cloud › spring-cloud-starter-openfeign › 2.2.1.release
spring-cloud-starter-openfeign
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> <version>2.2.1.RELEASE</version> </dependency>
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 70096036 › spring-cloud-starter-openfeign-throwing-build-resolve-error-for-all-other-depend
maven - spring-cloud-starter-openfeign throwing build/resolve error for all other dependencies when added - Stack Overflow
I am new to Micro-services and was following a course on it. Adding spring-cloud-starter-openfeign maven dependency throws a build error and all the other dependencies start complaining about resolve
🌐
Spring
spring.io › projects › spring-cloud-openfeign
Spring Cloud OpenFeign
This project provides OpenFeign integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.
🌐
GeeksforGeeks
geeksforgeeks.org › java › spring-cloud-openfeign-with-example-project
Spring Cloud - OpenFeign with Example Project - GeeksforGeeks
September 18, 2025 - For Maven: Add this dependency to the pom.xml file. <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency> For Gradle: Add the following entries to the build.gradle file.
🌐
Maven Central
central.sonatype.com › artifact › org.springframework.cloud › spring-cloud-starter-feign
Maven Central: org.springframework.cloud:spring-cloud-starter-feign
pkg:maven/org.springframework.cloud/spring-cloud-starter-feign@1.4.7.RELEASE · Used in: 476 components · Overview · Overview · Versions · Versions · Dependents · Dependents · Dependencies · Dependencies · Spring Cloud Starter Feign (deprecated, please use spring-cloud-starter-openfeign) Copy to clipboard ·
🌐
Java Guides
javaguides.net › 2022 › 11 › spring-cloud-openfeign.html
Spring Cloud OpenFeign Example
April 24, 2023 - <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency> Make sure to add spring cloud dependencies and their version. Here is the complete pom.xml file after adding Spring cloud open feign dependency: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</gro
🌐
Stack Overflow
stackoverflow.com › questions › 73510219 › how-can-i-use-spring-cloud-openfeign-with-spring-boot-3-0-0-m4
How can I use Spring Cloud OpenFeign with Spring Boot 3.0.0-M4? - Stack Overflow
However I would advise on using https://start.spring.io to generate your project stub and maven or gradle files that take care of selecting the correct versions for Spring Cloud modules like Openfeign. Shortened example for build.gradle: plugins { id 'org.springframework.boot' version '3.0.0-M5' id 'io.spring.dependency-management' version '1.0.14.RELEASE' id 'java' } sourceCompatibility = '17' repositories { mavenCentral() maven { url 'https://repo.spring.io/milestone' } } ext { set('springCloudVersion', "2022.0.0-M5") } dependencies { implementation 'org.springframework.cloud:spring-cloud-starter-openfeign' } dependencyManagement { imports { mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" } } Share ·
🌐
GitHub
github.com › spring-cloud › spring-cloud-openfeign › blob › main › spring-cloud-openfeign-dependencies › pom.xml
spring-cloud-openfeign/spring-cloud-openfeign-dependencies/pom.xml at main · spring-cloud/spring-cloud-openfeign
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>spring-cloud-dependencies-parent</artifactId> <groupId>org.springframework.cloud</groupId> <version>5.0.4-SNAPSHOT</version> <relativePath/> </parent> <artifactId>spring-cloud-openfeign-dependencies</artifactId> <version>5.0.4-SNAPSHOT</version> <packaging>pom</packaging> <name>spring-cloud-openfeign-dependencies</name> <description>Spring Cloud OpenFeign Dependencies</description> <properties> <feign.version>13.6.1</fei
Author: spring-cloud
🌐
GitHub
github.com › spring-cloud › spring-cloud-openfeign › issues › 13
spring-cloud-starter-openfeign not spring-cloud-openfeign-core dependency · Issue #13 · spring-cloud/spring-cloud-openfeign
March 23, 2018 - <parent> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix</artifactId> <version>2.0.0.M2</version> </parent> <artifactId>spring-cloud-starter-openfeign</artifactId> <name>Spring Cloud Starter OpenFeign</name> <description>Spring Cloud Starter OpenFeign</description> <url>https://projects.spring.io/spring-cloud</url> <organization> <name>Pivotal Software, Inc.</name> <url>https://www.spring.io</url> </organization> <properties> <main.basedir>${basedir}/../../..</main.basedir> </properties> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-netflix-core</artifactId> </dependency> ...
Author: spring-cloud
🌐
GitHub
github.com › openfeign › feign
GitHub - OpenFeign/feign: Feign makes writing java http clients easier · GitHub
Anyway, the dependency already has suitable feign-form version, see dependency pom, so you don't need to specify it separately; spring-cloud-starter-feign is a deprecated dependency and it always uses the OpenFeign's 9.* versions.
🌐
Spring
spring.io › projects › spring-cloud
Spring Cloud
You can Spring Boot parent POM, or use the BOM from Spring Boot (spring-boot-dependencies) to manage Spring Boot versions. Just like Spring Boot, many Spring Cloud projects include starters that you can add as dependencies to add various cloud native features to your project.