Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit ae73735

Browse files
committed
build: configure BOM for Maven Central deployment
- Add required Maven Central metadata (URL, SCM information) - Configure flatten-maven-plugin for proper POM flattening - Remove unnecessary local build configurations
1 parent d617d05 commit ae73735

File tree

1 file changed

+48
-5
lines changed

1 file changed

+48
-5
lines changed

mcp-bom/pom.xml

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@
88
<groupId>org.springframework.experimental</groupId>
99
<artifactId>mcp-parent</artifactId>
1010
<version>0.5.0-SNAPSHOT</version>
11-
<relativePath>../pom.xml</relativePath>
1211
</parent>
1312

1413
<artifactId>mcp-bom</artifactId>
1514
<packaging>pom</packaging>
15+
1616
<name>Spring AI MCP BOM</name>
1717
<description>Spring AI MCP Bill of Materials</description>
1818

19-
<properties>
20-
<main.basedir>${basedir}/..</main.basedir>
21-
</properties>
19+
<url>https://github.com/spring-projects-experimental/spring-ai-mcp</url>
20+
21+
<scm>
22+
<url>https://github.com/spring-projects-experimental/spring-ai-mcp</url>
23+
<connection>git://github.com/spring-projects-experimental/spring-ai-mcp.git</connection>
24+
<developerConnection>[email protected]/spring-projects-experimental/spring-ai-mcp.git</developerConnection>
25+
</scm>
2226

2327
<dependencyManagement>
2428
<dependencies>
@@ -58,4 +62,43 @@
5862
</dependency>
5963
</dependencies>
6064
</dependencyManagement>
61-
</project>
65+
66+
<build>
67+
<plugins>
68+
<plugin>
69+
<groupId>org.codehaus.mojo</groupId>
70+
<artifactId>flatten-maven-plugin</artifactId>
71+
<version>${flatten-maven-plugin.version}</version>
72+
<executions>
73+
<execution>
74+
<id>flatten</id>
75+
<phase>process-resources</phase>
76+
<goals>
77+
<goal>flatten</goal>
78+
</goals>
79+
<configuration>
80+
<updatePomFile>true</updatePomFile>
81+
<flattenMode>ossrh</flattenMode>
82+
<pomElements>
83+
<distributionManagement>remove</distributionManagement>
84+
<dependencyManagement>keep</dependencyManagement>
85+
<repositories>remove</repositories>
86+
<scm>keep</scm>
87+
<url>keep</url>
88+
<organization>resolve</organization>
89+
</pomElements>
90+
</configuration>
91+
</execution>
92+
<execution>
93+
<id>clean</id>
94+
<phase>clean</phase>
95+
<goals>
96+
<goal>clean</goal>
97+
</goals>
98+
</execution>
99+
</executions>
100+
</plugin>
101+
</plugins>
102+
</build>
103+
104+
</project>

0 commit comments

Comments
 (0)