Skip to content

Commit c1f2595

Browse files
authored
Merge pull request #24 from zxypro1/zxy/fix-java
fix: build fail
2 parents 1924126 + e6a6a4a commit c1f2595

File tree

10 files changed

+36
-26
lines changed

10 files changed

+36
-26
lines changed

start-mcp-java-hello-world-sse/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Edition: 3.0.0
22
Type: Project
33
Name: start-mcp-java-hello-world-sse
4-
Version: 0.0.1
4+
Version: 0.0.2
55
Provider:
66
- 阿里云 # 取值内容参考:https://api.devsapp.cn/v3/common/args.html
77
Description: 基于 Java 的 FC MCP SSE Server 案例
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
start-mcp-java-hello-world:
22
default:
33
languages:
4-
- java21
4+
- java17
5+
cache:
6+
paths:
7+
- "~/.m2"
8+
rootPath: ./code
59
steps:
6-
- run: chmod +x ./mvnw
10+
- run: mvn clean install -DskipTests
711
path: ./code
8-
- run: ./mvnw clean install -DskipTests
9-
path: ./code
12+

start-mcp-java-hello-world-sse/src/code/.mvn/wrapper/maven-wrapper.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@
1717
wrapperVersion=3.3.2
1818
distributionType=only-script
1919
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
20+
# https://github.com/spring-projects/spring-ai-examples/issues/20
21+
spring.ai.mcp.client.toolcallback.enabled=true

start-mcp-java-hello-world-sse/src/code/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.3.6</version>
9+
<version>3.4.5</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212

start-mcp-java-hello-world-sse/src/s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resources:
88
component: fc3
99
actions:
1010
pre-deploy:
11-
- run: chmod +x ./mvnw && ./mvnw clean install -DskipTests
11+
- run: mvn clean install -DskipTests
1212
path: ./code
1313
props:
1414
region: ${vars.region}

start-mcp-java-hello-world/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Edition: 3.0.0
22
Type: Project
33
Name: start-mcp-java-hello-world
4-
Version: 0.0.5
4+
Version: 0.0.6
55
Provider:
66
- 阿里云 # 取值内容参考:https://api.devsapp.cn/v3/common/args.html
77
Description: 基于 Java 的 FC MCP Server 案例
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
start-mcp-java-hello-world:
22
default:
33
languages:
4-
- java21
4+
- java17
5+
cache:
6+
paths:
7+
- "~/.m2"
8+
rootPath: ./code
59
steps:
6-
- run: chmod +x ./mvnw
10+
- run: mvn clean install -DskipTests
711
path: ./code
8-
- run: ./mvnw clean install -DskipTests
9-
path: ./code
12+

start-mcp-java-hello-world/src/code/.mvn/wrapper/maven-wrapper.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@
1616
# under the License.
1717
wrapperVersion=3.3.2
1818
distributionType=only-script
19-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
20+
# https://github.com/spring-projects/spring-ai-examples/issues/20
21+
spring.ai.mcp.client.toolcallback.enabled=true

start-mcp-java-hello-world/src/code/pom.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.3.6</version>
9+
<version>3.4.5</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212

@@ -53,17 +53,6 @@
5353
</build>
5454

5555
<repositories>
56-
<repository>
57-
<name>Central Portal Snapshots</name>
58-
<id>central-portal-snapshots</id>
59-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
60-
<releases>
61-
<enabled>false</enabled>
62-
</releases>
63-
<snapshots>
64-
<enabled>true</enabled>
65-
</snapshots>
66-
</repository>
6756
<repository>
6857
<id>spring-milestones</id>
6958
<name>Spring Milestones</name>
@@ -80,6 +69,17 @@
8069
<enabled>false</enabled>
8170
</releases>
8271
</repository>
72+
<repository>
73+
<id>central-portal-snapshots</id>
74+
<name>Central Portal Snapshots</name>
75+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
76+
<releases>
77+
<enabled>false</enabled>
78+
</releases>
79+
<snapshots>
80+
<enabled>true</enabled>
81+
</snapshots>
82+
</repository>
8383
</repositories>
8484

8585
</project>

start-mcp-java-hello-world/src/s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resources:
88
component: fc3
99
actions:
1010
pre-deploy:
11-
- run: chmod +x ./mvnw && ./mvnw clean install -DskipTests
11+
- run: mvn clean install -DskipTests
1212
path: ./code
1313
props:
1414
region: ${vars.region}

0 commit comments

Comments
 (0)