Generate OSGi metadata
This commit is contained in:
parent
2c500b9cdc
commit
d9c4818607
2 changed files with 45 additions and 0 deletions
44
mcp/pom.xml
44
mcp/pom.xml
|
|
@ -20,6 +20,50 @@
|
||||||
<developerConnection>git@github.com/modelcontextprotocol/java-sdk.git</developerConnection>
|
<developerConnection>git@github.com/modelcontextprotocol/java-sdk.git</developerConnection>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>biz.aQute.bnd</groupId>
|
||||||
|
<artifactId>bnd-maven-plugin</artifactId>
|
||||||
|
<version>${bnd-maven-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>bnd-process</id>
|
||||||
|
<goals>
|
||||||
|
<goal>bnd-process</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<bnd><![CDATA[
|
||||||
|
Bundle-Name: Bundle ${project.groupId} : ${project.artifactId}
|
||||||
|
version: ${versionmask;===;${version_cleanup;${project.version}}}
|
||||||
|
Bundle-SymbolicName: ${project.groupId}.${project.artifactId}
|
||||||
|
Bundle-Version: ${version}
|
||||||
|
Automatic-Module-Name: ${project.groupId}.${project.artifactId}
|
||||||
|
Import-Package: jakarta.*;resolution:=optional, \
|
||||||
|
*;
|
||||||
|
Export-Package: io.modelcontextprotocol.*;version="${version}";-noimport:=true
|
||||||
|
-noimportjava: true;
|
||||||
|
-nouses: true;
|
||||||
|
-removeheaders: Private-Package
|
||||||
|
]]>
|
||||||
|
</bnd>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
||||||
1
pom.xml
1
pom.xml
|
|
@ -91,6 +91,7 @@
|
||||||
<tomcat.version>11.0.2</tomcat.version>
|
<tomcat.version>11.0.2</tomcat.version>
|
||||||
<jakarta.servlet.version>6.1.0</jakarta.servlet.version>
|
<jakarta.servlet.version>6.1.0</jakarta.servlet.version>
|
||||||
<awaitility.version>4.2.0</awaitility.version>
|
<awaitility.version>4.2.0</awaitility.version>
|
||||||
|
<bnd-maven-plugin.version>7.1.0</bnd-maven-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue