Skip to content

Commit d53ac39

Browse files
bjorndarriclaude
andcommitted
fix: use valid JPMS module name for mcp-core
Changed Automatic-Module-Name from io.modelcontextprotocol.sdk.mcp-core to io.modelcontextprotocol.sdk.mcp.core. JPMS module names must be valid Java identifiers and cannot contain dashes. This was preventing usage in modular Java applications. The OSGI Bundle-SymbolicName is kept as io.modelcontextprotocol.sdk.mcp-core (with dash) for backward compatibility, as OSGI allows dashes in symbolic names. Note: If preferred, the Automatic-Module-Name could use BND's substitution macro instead: ${subst;${project.groupId}.${project.artifactId};-;.} 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 19a8c00 commit d53ac39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
version: ${versionmask;===;${version_cleanup;${project.version}}}
3939
Bundle-SymbolicName: ${project.groupId}.${project.artifactId}
4040
Bundle-Version: ${version}
41-
Automatic-Module-Name: ${project.groupId}.${project.artifactId}
41+
Automatic-Module-Name: io.modelcontextprotocol.sdk.mcp.core
4242
Import-Package: jakarta.*;resolution:=optional, \
4343
*;
4444
Export-Package: io.modelcontextprotocol.*;version="${version}";-noimport:=true

0 commit comments

Comments
 (0)