|
1 |
| -<?xml version="1.0" encoding="UTF-8"?> |
2 |
| -<project xmlns="http://maven.apache.org/POM/4.0.0" |
3 |
| - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 |
| - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 1 | +<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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
5 | 2 | <modelVersion>4.0.0</modelVersion>
|
6 | 3 | <parent>
|
7 |
| - <artifactId>MassBank-Project</artifactId> |
8 | 4 | <groupId>de.ipb-halle.msbi</groupId>
|
9 |
| - <version>2.1.10</version> |
| 5 | + <artifactId>MassBank-Project</artifactId> |
| 6 | + <version>2.2</version> |
10 | 7 | </parent>
|
11 | 8 |
|
12 | 9 | <artifactId>MassBank-OpenAPI</artifactId>
|
13 |
| - <packaging>war</packaging> |
| 10 | + <packaging>jar</packaging> |
14 | 11 |
|
15 | 12 | <name>MassBank OpenAPI REST interface</name>
|
16 | 13 |
|
17 | 14 | <properties>
|
18 |
| - <swagger-codegen-version>3.0.30</swagger-codegen-version> |
19 |
| - <swagger-core-version>2.1.11</swagger-core-version> |
20 |
| - <jersey2-version>2.35</jersey2-version> |
21 |
| - <jackson-version>2.13.0</jackson-version> |
22 |
| - <jetty-version>9.4.24.v20191120</jetty-version> |
23 |
| - <logback-version>1.2.3</logback-version> |
24 | 15 | <yaml.file>${project.basedir}/src/main/resources/openapi.yaml</yaml.file>
|
25 |
| - <generated-sources-path>${project.build.directory}/generated-sources</generated-sources-path> |
26 |
| - <generated-sources-java-path>main/java</generated-sources-java-path> |
| 16 | + <springdoc.version>1.6.4</springdoc.version> |
27 | 17 | </properties>
|
28 | 18 |
|
29 | 19 | <build>
|
30 |
| - <!-- <finalName>${project.artifactId}</finalName> --> |
31 |
| - <!-- <sourceDirectory>src/main/java</sourceDirectory> --> |
32 | 20 | <plugins>
|
33 | 21 | <plugin>
|
34 |
| - <groupId>io.swagger.codegen.v3</groupId> |
35 |
| - <artifactId>swagger-codegen-maven-plugin</artifactId> |
36 |
| - <version>${swagger-codegen-version}</version> |
| 22 | + <groupId>org.openapitools</groupId> |
| 23 | + <artifactId>openapi-generator-maven-plugin</artifactId> |
37 | 24 | <executions>
|
38 | 25 | <execution>
|
39 | 26 | <goals>
|
40 | 27 | <goal>generate</goal>
|
41 | 28 | </goals>
|
42 | 29 | <configuration>
|
43 | 30 | <inputSpec>${yaml.file}</inputSpec>
|
44 |
| - <language>jaxrs-jersey</language> |
45 |
| - <!-- <generateSupportingFiles>false</generateSupportingFiles> --> |
| 31 | + <generatorName>spring</generatorName> |
46 | 32 | <configOptions>
|
47 |
| - <sourceFolder>${generated-sources-java-path}</sourceFolder> |
48 |
| - <hideGenerationTimestamp>true</hideGenerationTimestamp> |
| 33 | + <basePackage>massbank.openapi</basePackage> |
| 34 | + <configPackage>massbank.openapi.config</configPackage> |
| 35 | + <apiPackage>massbank.openapi.api</apiPackage> |
| 36 | + <modelPackage>massbank.openapi.model</modelPackage> |
| 37 | + <delegatePattern>true</delegatePattern> |
49 | 38 | </configOptions>
|
50 |
| - <output>${generated-sources-path}</output> |
51 | 39 | </configuration>
|
52 | 40 | </execution>
|
53 | 41 | </executions>
|
54 | 42 | </plugin>
|
55 | 43 | <plugin>
|
56 |
| - <groupId>org.apache.maven.plugins</groupId> |
57 |
| - <artifactId>maven-war-plugin</artifactId> |
58 |
| - <configuration> |
59 |
| - <failOnMissingWebXml>false</failOnMissingWebXml> |
60 |
| - </configuration> |
61 |
| - </plugin> |
62 |
| - <plugin> |
63 |
| - <groupId>org.apache.maven.plugins</groupId> |
64 |
| - <artifactId>maven-failsafe-plugin</artifactId> |
| 44 | + <groupId>org.springframework.boot</groupId> |
| 45 | + <artifactId>spring-boot-maven-plugin</artifactId> |
65 | 46 | <executions>
|
66 | 47 | <execution>
|
67 | 48 | <goals>
|
68 |
| - <goal>integration-test</goal> |
69 |
| - <goal>verify</goal> |
| 49 | + <goal>repackage</goal> |
70 | 50 | </goals>
|
71 | 51 | </execution>
|
72 | 52 | </executions>
|
73 | 53 | </plugin>
|
74 |
| - <plugin> |
75 |
| - <groupId>org.codehaus.mojo</groupId> |
76 |
| - <artifactId>build-helper-maven-plugin</artifactId> |
77 |
| - <executions> |
78 |
| - <execution> |
79 |
| - <id>add-generated-source</id> |
80 |
| - <phase>generate-sources</phase> |
81 |
| - <goals> |
82 |
| - <goal>add-source</goal> |
83 |
| - </goals> |
84 |
| - <configuration> |
85 |
| - <sources> |
86 |
| - <source>${generated-sources-path}/${generated-sources-java-path}</source> |
87 |
| - </sources> |
88 |
| - </configuration> |
89 |
| - </execution> |
90 |
| - </executions> |
91 |
| - </plugin> |
92 | 54 | </plugins>
|
93 | 55 | </build>
|
94 | 56 |
|
|
97 | 59 | <dependency>
|
98 | 60 | <groupId>de.ipb-halle.msbi</groupId>
|
99 | 61 | <artifactId>MassBank-lib</artifactId>
|
100 |
| - <version>${project.version}</version> |
101 | 62 | </dependency>
|
102 | 63 | <dependency>
|
103 |
| - <groupId>io.swagger.codegen.v3</groupId> |
104 |
| - <artifactId>swagger-codegen-maven-plugin</artifactId> |
105 |
| - <version>${swagger-codegen-version}</version> |
| 64 | + <groupId>org.springframework.boot</groupId> |
| 65 | + <artifactId>spring-boot-starter-web</artifactId> |
106 | 66 | </dependency>
|
107 | 67 | <dependency>
|
108 |
| - <groupId>io.swagger.core.v3</groupId> |
109 |
| - <artifactId>swagger-jaxrs2</artifactId> |
110 |
| - <scope>compile</scope> |
111 |
| - <version>${swagger-core-version}</version> |
| 68 | + <groupId>org.springframework.data</groupId> |
| 69 | + <artifactId>spring-data-commons</artifactId> |
112 | 70 | </dependency>
|
| 71 | + <!--SpringDoc dependencies --> |
113 | 72 | <dependency>
|
114 |
| - <groupId>javax.servlet</groupId> |
115 |
| - <artifactId>javax.servlet-api</artifactId> |
116 |
| - <version>${servlet-api-version}</version> |
| 73 | + <groupId>org.springdoc</groupId> |
| 74 | + <artifactId>springdoc-openapi-ui</artifactId> |
| 75 | + <version>${springdoc.version}</version> |
117 | 76 | </dependency>
|
| 77 | + <!-- @Nullable annotation --> |
118 | 78 | <dependency>
|
119 |
| - <groupId>org.glassfish.jersey.containers</groupId> |
120 |
| - <artifactId>jersey-container-servlet</artifactId> |
121 |
| - <version>${jersey2-version}</version> |
| 79 | + <groupId>com.google.code.findbugs</groupId> |
| 80 | + <artifactId>jsr305</artifactId> |
| 81 | + <version>3.0.2</version> |
122 | 82 | </dependency>
|
123 | 83 | <dependency>
|
124 |
| - <groupId>org.glassfish.jersey.media</groupId> |
125 |
| - <artifactId>jersey-media-multipart</artifactId> |
126 |
| - <version>${jersey2-version}</version> |
| 84 | + <groupId>com.fasterxml.jackson.dataformat</groupId> |
| 85 | + <artifactId>jackson-dataformat-yaml</artifactId> |
127 | 86 | </dependency>
|
128 | 87 | <dependency>
|
129 |
| - <groupId>org.glassfish.jersey.inject</groupId> |
130 |
| - <artifactId>jersey-hk2</artifactId> |
131 |
| - <version>${jersey2-version}</version> |
| 88 | + <groupId>com.fasterxml.jackson.datatype</groupId> |
| 89 | + <artifactId>jackson-datatype-jsr310</artifactId> |
132 | 90 | </dependency>
|
133 | 91 | <dependency>
|
134 |
| - <groupId>com.fasterxml.jackson.datatype</groupId> |
135 |
| - <artifactId>jackson-datatype-joda</artifactId> |
136 |
| - <version>${jackson-version}</version> |
| 92 | + <groupId>org.openapitools</groupId> |
| 93 | + <artifactId>jackson-databind-nullable</artifactId> |
| 94 | + <version>0.2.2</version> |
137 | 95 | </dependency>
|
| 96 | + <!-- Bean Validation API support --> |
138 | 97 | <dependency>
|
139 |
| - <groupId>com.fasterxml.jackson.jaxrs</groupId> |
140 |
| - <artifactId>jackson-jaxrs-json-provider</artifactId> |
141 |
| - <version>${jackson-version}</version> |
| 98 | + <groupId>org.springframework.boot</groupId> |
| 99 | + <artifactId>spring-boot-starter-validation</artifactId> |
142 | 100 | </dependency>
|
143 | 101 | <dependency>
|
144 |
| - <groupId>com.github.petitparser</groupId> |
145 |
| - <artifactId>petitparser-core</artifactId> |
146 |
| - <version>${petitparser-version}</version> |
| 102 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 103 | + <artifactId>jackson-databind</artifactId> |
147 | 104 | </dependency>
|
148 | 105 | <dependency>
|
149 |
| - <groupId>org.slf4j</groupId> |
150 |
| - <artifactId>slf4j-log4j12</artifactId> |
151 |
| - <version>1.7.32</version> |
| 106 | + <groupId>org.springframework.boot</groupId> |
| 107 | + <artifactId>spring-boot-devtools</artifactId> |
152 | 108 | </dependency>
|
153 | 109 | </dependencies>
|
| 110 | + |
| 111 | + <dependencyManagement> |
| 112 | + <dependencies> |
| 113 | + <dependency> |
| 114 | + <groupId>org.springframework.boot</groupId> |
| 115 | + <artifactId>spring-boot-dependencies</artifactId> |
| 116 | + <version>2.7.0</version> |
| 117 | + <type>pom</type> |
| 118 | + <scope>import</scope> |
| 119 | + </dependency> |
| 120 | + </dependencies> |
| 121 | + </dependencyManagement> |
154 | 122 | </project>
|
0 commit comments