Bug description We are unable to pull spring ai jars from maven. https://repo.maven.apache.org/maven2/group/springframework/ai/ shows HTTP 403

Environment NA

Steps to reproduce Add this depdency in maven pom.xml

<!-- https://mvnrepository.com/artifact/group.springframework.ai/spring-ai-openai-spring-boot-starter -->
<dependency>
    <groupId>group.springframework.ai</groupId>
    <artifactId>spring-ai-openai-spring-boot-starter</artifactId>
    <version>1.1.0</version>
</dependency>

and run mvn clean compile. It throws this error

Could not transfer artifact group.springframework.ai:spring-ai-openai-spring-boot-starter:pom:1.1.0 from/to central (https://repo.maven.apache.org/maven2): status code: 403, reason phrase: Forbidden (403)

Visiting https://repo.maven.apache.org/maven2/group/springframework/ai/ shows HTTP 403

Expected behavior maven pulls dependencies without error

Minimal Complete Reproducible example We should be good if mvn compile works without any errors with the dependency mentioned above.

Comment From: ilayaperumalg

Hi @avanathan, The maven repo you are referring to isn't a legit artifact for Spring AI. Spring AI hasn't done 1.0.0 yet. The latest release from Spring AI is M5 which you can download from here

Comment From: avanathan

Agreed my version is incorrect. However, we shouldn't download from mvnrepository directly. Instead, we have to use it from maven or gradle applications.

Run these steps from terminal/command line: Step 1:

# Taking a back up of your library in your local maven repository
mv ~/.m2/repository/org/springframework/ai/spring-ai-openai-spring-boot-starter ~/.m2/repository/org/springframework/ai/spring-ai-openai-spring-boot-starter-bak

Step 2: Use below dependency in a Maven project's pom.xml

    <dependency>
      <groupId>org.springframework.ai</groupId>
      <artifactId>spring-ai-openai-spring-boot-starter</artifactId>
      <version>1.0.0-M5</version>
    </dependency>

Step 3: Run below command

mvn dependency:tree

You will get an error.

Reason because if you visit any of these links in a browser, you will see HTTP 403 * https://repo1.maven.org/maven2/group/springframework/ai/ OR * https://repo.maven.apache.org/maven2/group/springframework/ai/

But if you visit other folders like https://repo1.maven.org/maven2/group/springframework/plugin/spring-cloud-maven-plugin/ you will see folder structure.

Step 4: Rename back up folder to correct one

# Move backed up folder from step 1 to correct folder.
mv ~/.m2/repository/org/springframework/ai/spring-ai-openai-spring-boot-starter-bak ~/.m2/repository/org/springframework/ai/spring-ai-openai-spring-boot-starter

Comment From: avanathan

@ilayaperumalg Updated this issue. I do not have access to reopen. I might create a fresh issue if this goes unnoticed. Thanks