S++Core systems, human-reviewable
SDK DOCUMENTATION ยท 1.0-SNAPSHOTStart the tutorial

pom.xml

sdk-tools/samples/custom-services/pom.xml

1<?xml version="1.0" encoding="UTF-8"?>2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">3  <modelVersion>4.0.0</modelVersion>4  <parent><groupId>com.servpp</groupId><artifactId>spplang</artifactId><version>1.0-SNAPSHOT</version><relativePath>../../../pom.xml</relativePath></parent>5  <artifactId>spp-custom-services-example</artifactId>6  <name>S++ basic custom technical service example</name>7  <properties><sample.spp.source>${project.basedir}/src/main/spp</sample.spp.source></properties>8  <dependencies>9    <dependency><groupId>com.servpp</groupId><artifactId>generator</artifactId><version>1.0-SNAPSHOT</version></dependency>10    <dependency><groupId>com.servpp</groupId><artifactId>appframe</artifactId><version>1.0-SNAPSHOT</version></dependency>11    <dependency><groupId>com.servpp</groupId><artifactId>spp-sdk-java-project</artifactId><version>${project.version}</version><scope>test</scope></dependency>12    <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><version>3.1.5</version></dependency>13    <dependency><groupId>org.openapitools</groupId><artifactId>jackson-databind-nullable</artifactId><version>0.2.6</version></dependency>14    <dependency><groupId>io.swagger.core.v3</groupId><artifactId>swagger-annotations</artifactId><version>2.2.17</version></dependency>15    <dependency><groupId>jakarta.validation</groupId><artifactId>jakarta.validation-api</artifactId><version>3.0.2</version></dependency>16    <dependency><groupId>jakarta.annotation</groupId><artifactId>jakarta.annotation-api</artifactId><version>2.1.1</version></dependency>17    <dependency><groupId>org.mybatis</groupId><artifactId>mybatis</artifactId><version>3.5.17</version></dependency>18    <dependency><groupId>com.h2database</groupId><artifactId>h2</artifactId><version>2.2.224</version><scope>test</scope></dependency>19    <dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.13.2</version><scope>test</scope></dependency>20  </dependencies>21  <build>22    <resources>23      <resource><directory>src/main/resources</directory></resource>24      <resource><directory>target/generated-sources/openapi/src/main/resources</directory><includes><include>META-INF/spp/**</include></includes></resource>25    </resources>26    <plugins>27      <plugin>28        <groupId>com.servpp</groupId><artifactId>generator</artifactId><version>1.0-SNAPSHOT</version>29        <configuration>30          <sppSourceDirectory>${sample.spp.source}</sppSourceDirectory>31          <yamlOutputDirectory>${project.build.directory}/spp/src/main/resources</yamlOutputDirectory>32          <javaOutputDirectory>${project.build.directory}/generated-sources/openapi/src/main/java</javaOutputDirectory>33          <basePackage>example.generated</basePackage>34        </configuration>35        <executions><execution><goals><goal>sppcompile</goal></goals></execution></executions>36      </plugin>37      <plugin>38        <groupId>org.openapitools</groupId><artifactId>openapi-generator-maven-plugin</artifactId><version>7.1.0</version>39        <dependencies><dependency><groupId>com.github.ben-manes.caffeine</groupId><artifactId>caffeine</artifactId><version>3.2.3</version></dependency></dependencies>40        <executions><execution><goals><goal>generate</goal></goals><configuration>41          <inputSpec>${project.build.directory}/spp/src/main/resources/ledger.spp.yaml</inputSpec>42          <configurationFile>${project.build.directory}/spp/src/main/resources/ledger.numeric-codegen.json</configurationFile>43          <generatorName>spring</generatorName><skipValidateSpec>true</skipValidateSpec>44          <apiPackage>example.generated.ledger.handler</apiPackage>45          <modelPackage>example.generated.ledger.model</modelPackage>46          <invokerPackage>example.generated.ledger.handler</invokerPackage>47          <templateDirectory>${project.build.directory}/spp/src/main/resources/JavaSpring</templateDirectory>48          <configOptions><useSpringBoot3>true</useSpringBoot3></configOptions>49          <addTestCompileSourceRoot>false</addTestCompileSourceRoot>50        </configuration></execution>51                <execution><id>generate-positions</id><goals><goal>generate</goal></goals><configuration>52          <inputSpec>${project.build.directory}/spp/src/main/resources/positions.spp.yaml</inputSpec>53          <configurationFile>${project.build.directory}/spp/src/main/resources/positions.numeric-codegen.json</configurationFile>54          <generatorName>spring</generatorName><skipValidateSpec>true</skipValidateSpec>55          <apiPackage>example.generated.positions.handler</apiPackage>56          <modelPackage>example.generated.positions.model</modelPackage>57          <invokerPackage>example.generated.positions.handler</invokerPackage>58          <templateDirectory>${project.build.directory}/spp/src/main/resources/JavaSpring</templateDirectory>59          <configOptions><useSpringBoot3>true</useSpringBoot3></configOptions>60          <addTestCompileSourceRoot>false</addTestCompileSourceRoot>61        </configuration></execution>62                <execution><id>generate-reserves</id><goals><goal>generate</goal></goals><configuration>63          <inputSpec>${project.build.directory}/spp/src/main/resources/reserves.spp.yaml</inputSpec>64          <configurationFile>${project.build.directory}/spp/src/main/resources/reserves.numeric-codegen.json</configurationFile>65          <generatorName>spring</generatorName><skipValidateSpec>true</skipValidateSpec>66          <apiPackage>example.generated.reserves.handler</apiPackage>67          <modelPackage>example.generated.reserves.model</modelPackage>68          <invokerPackage>example.generated.reserves.handler</invokerPackage>69          <templateDirectory>${project.build.directory}/spp/src/main/resources/JavaSpring</templateDirectory>70          <configOptions><useSpringBoot3>true</useSpringBoot3></configOptions>71          <addTestCompileSourceRoot>false</addTestCompileSourceRoot>72        </configuration></execution>73        </executions>74      </plugin>75      <plugin><artifactId>maven-compiler-plugin</artifactId><version>3.14.0</version></plugin>76      <plugin><artifactId>maven-surefire-plugin</artifactId><version>3.5.4</version></plugin>7778    </plugins>79  </build>80</project>