Skip to content

Commit 5d7f3c4

Browse files
authored
Merge pull request #354 from MassBank/release-2.2
Release 2.2
2 parents 1a09049 + 6aa5973 commit 5d7f3c4

File tree

123 files changed

+93182
-735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+93182
-735
lines changed

Documentation/MassBankRecordFormat.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# MassBank Record Format 2.5.2
2-
MassBank Consortium (September 22, 2021)
1+
# MassBank Record Format 2.6.0
2+
MassBank Consortium (May 13, 2022)
33

44
#### Updated
5+
- **May 2022**: With version 2.6.0 MassBank introduces a new ACCESSION scheme.ch offers more freedom for contributors in the naming of their records. The new scheme consists of three fields separated by 'minus' signs and follows the format ID-[A-Z0–9_]{1,32}-[A-Z0–9_]{1,64}. The field ID will always be MSBNK for official MassBank releases. The second field is the contributor ID and is usually assigned by MassBank staff. Now it can be up to 32 characters long and is comprised of letters, digits and the '_' sign. The third field is the ID assigned by the contributor and can be up to 64 characters long and is also comprised of letters, digits and the '_' sign.
56
- **July 2021**: Move to a semantic versioning scheme X.Y.Z with Z increases for changes in the description or fixing of typos, Y increases for changes that also change the Validator software and X increases with changes that break compatibility with older versions of the software.
67
- **March 2020**: Add new tag for the inlet type.
78
- **October 2019**: Add UVPD dissociation method and some undocumented or new tags.
@@ -356,17 +357,18 @@ Identifier of the MassBank Record. Mandatory
356357

357358
Example:
358359
```
359-
ACCESSION: ZMS00006
360+
ACCESSION: MSBNK-AAFC-AC000101
360361
```
362+
The MassBank accession consists of three fields separated by `-` signs and follows the format ID-[A-Z0–9_]{1,32}-[A-Z0–9_]{1,64}. The field ID will always be MSBNK for official MassBank releases. The second field is the contributor ID and is usually assigned by MassBank staff. It can be up to 32 characters long and is comprised of letters, digits and the `_` sign. The third field is the ID assigned by the contributor and an be up to 64 characters long and is also comprised of letters, digits and the `_` sign.
361363

362-
8-character fix-length string. Prefix two or three alphabetical capital characters specify the site, database or contributor, where the record was submitted or who has contributed. Prefixes currently used are listed in the “Prefix of ID” column of the MassBank "List of contributors, prefixes and projects" (https://github.com/MassBank/MassBank-data/blob/master/List_of_Contributors_Prefixes_and_Projects.md). Rest of the field are decimal letters which are the identifier of the record at each site.
364+
The list of List of contributors and projects is maintained at https://github.com/MassBank/MassBank-data/blob/master/List_of_Contributors_Prefixes_and_Projects.md.
363365

364366
A deprecated record is marked with the tag `DEPRECATED: ` followed by date and reason on the second line. The content of a deprecated record may not be valid.
365367

366368
Example:
367369
```
368-
ACCESSION: XY000010
369-
DEPRECATED: 2019-05-03 considered noisy
370+
ACCESSION: MSBNK-ISAS_Dortmund-IA000311
371+
DEPRECATED: 2019-11-25 Wrong MS measurement assigned
370372
```
371373

372374

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
4+
<mirrors>
5+
<mirror>
6+
<id>releases-http-unblocker</id>
7+
<name>Fiehnlab Public Maven Repository</name>
8+
<mirrorOf>releases</mirrorOf>
9+
<url>http://gose.fiehnlab.ucdavis.edu:55000/content/groups/public</url>
10+
<blocked>false</blocked>
11+
</mirror>
12+
</mirrors>
13+
</settings>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM maven:3.8-jdk-11 as build
2+
COPY ./MassBank-lib/ /build/MassBank-lib/
3+
COPY ./MassBank-OpenAPI/pom.xml /build/MassBank-OpenAPI/pom.xml
4+
COPY ./MassBank-web /build/MassBank-web/
5+
COPY ./pom.xml /build/
6+
COPY ./.mvn/* /build/.mvn/
7+
WORKDIR /build/
8+
RUN mvn verify -pl MassBank-OpenAPI --fail-never --settings ./.mvn/local-settings.xml
9+
ADD ./MassBank-OpenAPI/ /build/MassBank-OpenAPI/
10+
RUN mvn package -pl MassBank-OpenAPI -am --settings ./.mvn/local-settings.xml
11+
12+
FROM openjdk:11-jdk-slim
13+
ARG JAR_FILE=/build/MassBank-OpenAPI/target/*.jar
14+
COPY --from=build ${JAR_FILE} /
15+
EXPOSE 8080/tcp
16+
ENTRYPOINT java -jar *.jar
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
#wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.4.0/openapi-generator-cli-5.4.0.jar -O openapi-generator-cli.jar
3+
java -jar openapi-generator-cli.jar generate -g spring -i src/main/resources/openapi.yaml -c openapi-generator-config.json -o ../spring-boot-codegenerator
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"basePackage": "massbank.openapi",
3+
"configPackage": "massbank.openapi.config",
4+
"apiPackage": "massbank.openapi.api",
5+
"modelPackage": "massbank.openapi.model",
6+
"parentArtifactId": "MassBank-Project",
7+
"parentGroupId": "de.ipb-halle.msbi",
8+
"parentVersion": "2.1.11-SNAPSHOT",
9+
"artifactId": "MassBank-OpenAPI",
10+
"groupId": "de.ipb-halle.msbi",
11+
"artifactVersion": "2.1.11-SNAPSHOT",
12+
"delegatePattern": true
13+
14+
}
15+
Lines changed: 54 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,56 @@
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">
52
<modelVersion>4.0.0</modelVersion>
63
<parent>
7-
<artifactId>MassBank-Project</artifactId>
84
<groupId>de.ipb-halle.msbi</groupId>
9-
<version>2.1.10</version>
5+
<artifactId>MassBank-Project</artifactId>
6+
<version>2.2</version>
107
</parent>
118

129
<artifactId>MassBank-OpenAPI</artifactId>
13-
<packaging>war</packaging>
10+
<packaging>jar</packaging>
1411

1512
<name>MassBank OpenAPI REST interface</name>
1613

1714
<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>
2415
<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>
2717
</properties>
2818

2919
<build>
30-
<!-- <finalName>${project.artifactId}</finalName> -->
31-
<!-- <sourceDirectory>src/main/java</sourceDirectory> -->
3220
<plugins>
3321
<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>
3724
<executions>
3825
<execution>
3926
<goals>
4027
<goal>generate</goal>
4128
</goals>
4229
<configuration>
4330
<inputSpec>${yaml.file}</inputSpec>
44-
<language>jaxrs-jersey</language>
45-
<!-- <generateSupportingFiles>false</generateSupportingFiles> -->
31+
<generatorName>spring</generatorName>
4632
<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>
4938
</configOptions>
50-
<output>${generated-sources-path}</output>
5139
</configuration>
5240
</execution>
5341
</executions>
5442
</plugin>
5543
<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>
6546
<executions>
6647
<execution>
6748
<goals>
68-
<goal>integration-test</goal>
69-
<goal>verify</goal>
49+
<goal>repackage</goal>
7050
</goals>
7151
</execution>
7252
</executions>
7353
</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>
9254
</plugins>
9355
</build>
9456

@@ -97,58 +59,64 @@
9759
<dependency>
9860
<groupId>de.ipb-halle.msbi</groupId>
9961
<artifactId>MassBank-lib</artifactId>
100-
<version>${project.version}</version>
10162
</dependency>
10263
<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>
10666
</dependency>
10767
<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>
11270
</dependency>
71+
<!--SpringDoc dependencies -->
11372
<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>
11776
</dependency>
77+
<!-- @Nullable annotation -->
11878
<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>
12282
</dependency>
12383
<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>
12786
</dependency>
12887
<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>
13290
</dependency>
13391
<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>
13795
</dependency>
96+
<!-- Bean Validation API support -->
13897
<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>
142100
</dependency>
143101
<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>
147104
</dependency>
148105
<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>
152108
</dependency>
153109
</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>
154122
</project>

MassBank-Project/MassBank-OpenAPI/src/main/java/io/swagger/api/factories/RecordApiServiceFactory.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

MassBank-Project/MassBank-OpenAPI/src/main/java/io/swagger/api/impl/RecordApiServiceImpl.java

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)