Skip to content

Commit 40c198c

Browse files
committed
fix: Add spring-snapshots repository to agentic-patterns POMs
Add the missing spring-snapshots repository to 5 agentic-patterns pom.xml files that were only defining spring-milestones and central-portal-snapshots repositories. This allows resolving spring-ai-bom:2.0.0-SNAPSHOT directly from POMs without CI hacks. Also removes the Maven settings.xml workaround from the CI workflow since repositories are now properly defined in each module.
1 parent f6177f9 commit 40c198c

6 files changed

Lines changed: 45 additions & 74 deletions

File tree

.github/workflows/integration-tests.yml

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -195,41 +195,6 @@ jobs:
195195
distribution: 'temurin'
196196
cache: maven
197197

198-
- name: Configure Maven for Spring Snapshots
199-
if: steps.check.outputs.should_run == 'true'
200-
run: |
201-
mkdir -p ~/.m2
202-
cat > ~/.m2/settings.xml << 'EOF'
203-
<settings>
204-
<profiles>
205-
<profile>
206-
<id>spring-snapshots</id>
207-
<repositories>
208-
<repository>
209-
<id>spring-snapshots</id>
210-
<url>https://repo.spring.io/snapshot</url>
211-
<snapshots><enabled>true</enabled></snapshots>
212-
</repository>
213-
<repository>
214-
<id>spring-milestones</id>
215-
<url>https://repo.spring.io/milestone</url>
216-
</repository>
217-
</repositories>
218-
<pluginRepositories>
219-
<pluginRepository>
220-
<id>spring-snapshots</id>
221-
<url>https://repo.spring.io/snapshot</url>
222-
<snapshots><enabled>true</enabled></snapshots>
223-
</pluginRepository>
224-
</pluginRepositories>
225-
</profile>
226-
</profiles>
227-
<activeProfiles>
228-
<activeProfile>spring-snapshots</activeProfile>
229-
</activeProfiles>
230-
</settings>
231-
EOF
232-
233198
- name: Set up Python 3
234199
if: steps.check.outputs.should_run == 'true'
235200
uses: actions/setup-python@v5
@@ -392,40 +357,6 @@ jobs:
392357
distribution: 'temurin'
393358
cache: maven
394359

395-
- name: Configure Maven for Spring Snapshots
396-
run: |
397-
mkdir -p ~/.m2
398-
cat > ~/.m2/settings.xml << 'EOF'
399-
<settings>
400-
<profiles>
401-
<profile>
402-
<id>spring-snapshots</id>
403-
<repositories>
404-
<repository>
405-
<id>spring-snapshots</id>
406-
<url>https://repo.spring.io/snapshot</url>
407-
<snapshots><enabled>true</enabled></snapshots>
408-
</repository>
409-
<repository>
410-
<id>spring-milestones</id>
411-
<url>https://repo.spring.io/milestone</url>
412-
</repository>
413-
</repositories>
414-
<pluginRepositories>
415-
<pluginRepository>
416-
<id>spring-snapshots</id>
417-
<url>https://repo.spring.io/snapshot</url>
418-
<snapshots><enabled>true</enabled></snapshots>
419-
</pluginRepository>
420-
</pluginRepositories>
421-
</profile>
422-
</profiles>
423-
<activeProfiles>
424-
<activeProfile>spring-snapshots</activeProfile>
425-
</activeProfiles>
426-
</settings>
427-
EOF
428-
429360
- name: Set up Python 3
430361
uses: actions/setup-python@v5
431362
with:

agentic-patterns/chain-workflow/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,15 @@
7676
<enabled>false</enabled>
7777
</snapshots>
7878
</repository>
79-
<repository>
79+
<repository>
80+
<id>spring-snapshots</id>
81+
<name>Spring Snapshots</name>
82+
<url>https://repo.spring.io/snapshot</url>
83+
<releases>
84+
<enabled>false</enabled>
85+
</releases>
86+
</repository>
87+
<repository>
8088
<id>central-portal-snapshots</id>
8189
<name>Central Portal Snapshots</name>
8290
<url>https://central.sonatype.com/repository/maven-snapshots/</url>

agentic-patterns/evaluator-optimizer/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,15 @@
7777
<enabled>false</enabled>
7878
</snapshots>
7979
</repository>
80-
<repository>
80+
<repository>
81+
<id>spring-snapshots</id>
82+
<name>Spring Snapshots</name>
83+
<url>https://repo.spring.io/snapshot</url>
84+
<releases>
85+
<enabled>false</enabled>
86+
</releases>
87+
</repository>
88+
<repository>
8189
<id>central-portal-snapshots</id>
8290
<name>Central Portal Snapshots</name>
8391
<url>https://central.sonatype.com/repository/maven-snapshots/</url>

agentic-patterns/orchestrator-workers/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,15 @@
7676
<enabled>false</enabled>
7777
</snapshots>
7878
</repository>
79-
<repository>
79+
<repository>
80+
<id>spring-snapshots</id>
81+
<name>Spring Snapshots</name>
82+
<url>https://repo.spring.io/snapshot</url>
83+
<releases>
84+
<enabled>false</enabled>
85+
</releases>
86+
</repository>
87+
<repository>
8088
<id>central-portal-snapshots</id>
8189
<name>Central Portal Snapshots</name>
8290
<url>https://central.sonatype.com/repository/maven-snapshots/</url>

agentic-patterns/parallelization-workflow/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,15 @@
8080
<enabled>false</enabled>
8181
</snapshots>
8282
</repository>
83-
<repository>
83+
<repository>
84+
<id>spring-snapshots</id>
85+
<name>Spring Snapshots</name>
86+
<url>https://repo.spring.io/snapshot</url>
87+
<releases>
88+
<enabled>false</enabled>
89+
</releases>
90+
</repository>
91+
<repository>
8492
<id>central-portal-snapshots</id>
8593
<name>Central Portal Snapshots</name>
8694
<url>https://central.sonatype.com/repository/maven-snapshots/</url>

agentic-patterns/routing-workflow/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,15 @@
8181
<enabled>false</enabled>
8282
</snapshots>
8383
</repository>
84-
<repository>
84+
<repository>
85+
<id>spring-snapshots</id>
86+
<name>Spring Snapshots</name>
87+
<url>https://repo.spring.io/snapshot</url>
88+
<releases>
89+
<enabled>false</enabled>
90+
</releases>
91+
</repository>
92+
<repository>
8593
<id>central-portal-snapshots</id>
8694
<name>Central Portal Snapshots</name>
8795
<url>https://central.sonatype.com/repository/maven-snapshots/</url>

0 commit comments

Comments
 (0)