File tree Expand file tree Collapse file tree
mcp-server-jdbc/mcp-server-jdbc-annotated-sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,12 +32,13 @@ Default database configuration:
3232Run the server:
3333
3434``` powershell
35- .\mvnw.cmd -pl mcp-server-jdbc/mcp-server-jdbc-annotated-sdk -am compile exec:java -Dexec.mainClass=com.github.thought2code.mcp.server.jdbc.annotated.JdbcMcpServer
35+ .\mvnw.cmd -pl mcp-server-jdbc/mcp-server-jdbc-annotated-sdk -am package
36+ java -jar mcp-server-jdbc\mcp-server-jdbc-annotated-sdk\target\mcp-server-jdbc-annotated-sdk-1.0.0.jar
3637```
3738
3839Run with a custom SQLite database:
3940
4041``` powershell
4142$env:JDBC_URL = "jdbc:sqlite:C:\path\to\database.db"
42- .\mvnw.cmd -pl mcp-server-jdbc/ mcp-server-jdbc-annotated-sdk -am compile exec:java -Dexec.mainClass=com.github.thought2code. mcp. server. jdbc. annotated.JdbcMcpServer
43+ java -jar mcp-server-jdbc\ mcp-server-jdbc-annotated-sdk\target\ mcp- server- jdbc- annotated-sdk-1.0.0.jar
4344```
Original file line number Diff line number Diff line change 2929 <artifactId >mcp-server-jdbc-common</artifactId >
3030 </dependency >
3131 </dependencies >
32+
33+ <build >
34+ <plugins >
35+ <plugin >
36+ <groupId >org.apache.maven.plugins</groupId >
37+ <artifactId >maven-shade-plugin</artifactId >
38+ <version >${maven-shade-plugin.version} </version >
39+ <configuration >
40+ <createDependencyReducedPom >false</createDependencyReducedPom >
41+ <transformers >
42+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
43+ <mainClass >com.github.thought2code.mcp.server.jdbc.annotated.JdbcMcpServer</mainClass >
44+ </transformer >
45+ </transformers >
46+ </configuration >
47+ <executions >
48+ <execution >
49+ <id >shade-fat-jar</id >
50+ <goals >
51+ <goal >shade</goal >
52+ </goals >
53+ <phase >package</phase >
54+ </execution >
55+ </executions >
56+ </plugin >
57+ </plugins >
58+ </build >
3259</project >
Original file line number Diff line number Diff line change 2525 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
2626 <!-- ==================== maven plugin versions ====================-->
2727 <maven-enforcer-plugin .version>3.6.3</maven-enforcer-plugin .version>
28+ <maven-shade-plugin .version>3.6.2</maven-shade-plugin .version>
2829 <sortpom-maven-plugin .version>4.0.0</sortpom-maven-plugin .version>
2930 <spotbugs-maven-plugin .version>4.10.2.0</spotbugs-maven-plugin .version>
3031 <spotless-maven-plugin .version>3.6.0</spotless-maven-plugin .version>
You can’t perform that action at this time.
0 commit comments