Open sichenyong opened 2 weeks ago
Great to see you using spring cloud alibaba ai. You may have forgotten one important point
spring ai has not been published to the maven central repository yet, you need to configure the repository address additionally in maven:
/area ai /kind question
Hi, I also met this problem. You can try to add a remote repository to pom.xml as this will make maven search for spring-ai-core in this repository.
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
However, please note that you also need to change <mirrorOf>*</mirrorOf>
, as this config redirect all the maven dependency request to aliyun maven repository. You need to change it to <mirrorOf>*,!spring-milestones</mirrorOf>
to exclude spring-snapshots. note that no space between ,
and !
This should solve your problem.
I get trouble when I try to learn Spring Cloud Alibaba AI:(https://sca.aliyun.com/docs/2023/user-guide/ai/quick-start/)
I can't import
spring-ai-core:0.8.1
even if i changed the mirror of maven to aliyun repository.here is my maven configuration file :
I went to aliyun repository to search
spring-ai-core:0.8.1
, but no result for it:I can't figure out it. what should i do ? Change the mirror?