|
32 | 32 | <poi.version>5.2.1</poi.version>
|
33 | 33 | <tika.version>2.4.1</tika.version>
|
34 | 34 | <netcdf.version>5.5.3</netcdf.version>
|
35 |
| - |
36 |
| - <smallrye.schemaFilename>dataverse_openapi</smallrye.schemaFilename> |
37 |
| - <smallrye.infoTitle>Dataverse API</smallrye.infoTitle> |
38 |
| - <smallrye.outputDirectory>src/main/resources/edu/harvard/iq/dataverse/openapi</smallrye.outputDirectory> |
| 35 | + |
| 36 | + <openapi.infoTitle>Dataverse API</openapi.infoTitle> |
| 37 | + <openapi.infoVersion>${project.version}</openapi.infoVersion> |
| 38 | + <openapi.infoDescription>Dataverse is an open source publication repository software with an API first approach.</openapi.infoDescription> |
| 39 | + <!-- https://download.eclipse.org/microprofile/microprofile-open-api-3.1.1/microprofile-openapi-spec-3.1.1.html#_location_and_formats --> |
| 40 | + <openapi.outputDirectory>${project.build.outputDirectory}/META-INF</openapi.outputDirectory> |
39 | 41 | </properties>
|
40 | 42 |
|
41 | 43 | <!-- Versions of dependencies used both directly and transitive are managed here.
|
|
686 | 688 | <include>**/firstNames/*.*</include>
|
687 | 689 | <include>**/*.xsl</include>
|
688 | 690 | <include>**/services/*</include>
|
689 |
| - <include>**/openapi/*</include> |
690 | 691 | </includes>
|
691 | 692 | </resource>
|
692 | 693 | <resource>
|
|
699 | 700 | </resource>
|
700 | 701 | </resources>
|
701 | 702 | <plugins>
|
702 |
| - <plugin> |
703 |
| - <artifactId>smallrye-open-api-maven-plugin</artifactId> |
704 |
| - <groupId>io.smallrye</groupId> |
705 |
| - <executions> |
706 |
| - <execution> |
707 |
| - <goals> |
708 |
| - <goal>generate-schema</goal> |
709 |
| - </goals> |
710 |
| - </execution> |
711 |
| - </executions> |
712 |
| - <configuration> |
713 |
| - <schemaFilename>${smallrye.schemaFilename}</schemaFilename> |
714 |
| - <infoTitle>${smallrye.infoTitle}</infoTitle> |
715 |
| - <outputDirectory>${smallrye.outputDirectory}</outputDirectory> |
716 |
| - </configuration> |
717 |
| - </plugin> |
718 | 703 | <plugin>
|
719 | 704 | <groupId>org.apache.maven.plugins</groupId>
|
720 | 705 | <artifactId>maven-compiler-plugin</artifactId>
|
|
907 | 892 | <consoleOutput>true</consoleOutput>
|
908 | 893 | </configuration>
|
909 | 894 | </plugin>
|
| 895 | + <plugin> |
| 896 | + <groupId>io.smallrye</groupId> |
| 897 | + <artifactId>smallrye-open-api-maven-plugin</artifactId> |
| 898 | + <version>3.10.0</version> |
| 899 | + <executions> |
| 900 | + <execution> |
| 901 | + <goals> |
| 902 | + <goal>generate-schema</goal> |
| 903 | + </goals> |
| 904 | + <!-- Plugin scans class files, not sources. Execute after compile phase but before package --> |
| 905 | + <phase>prepare-package</phase> |
| 906 | + <configuration> |
| 907 | + <outputDirectory>${openapi.outputDirectory}</outputDirectory> |
| 908 | + <schemaFilename>openapi</schemaFilename> |
| 909 | + <infoTitle>${openapi.infoTitle}</infoTitle> |
| 910 | + <infoVersion>${openapi.infoVersion}</infoVersion> |
| 911 | + <infoDescription>${openapi.infoDescription}</infoDescription> |
| 912 | + <operationIdStrategy>CLASS_METHOD</operationIdStrategy> |
| 913 | + <scanPackages>edu.harvard.iq.dataverse</scanPackages> |
| 914 | + <scanDependenciesDisable>true</scanDependenciesDisable> |
| 915 | + </configuration> |
| 916 | + </execution> |
| 917 | + </executions> |
| 918 | + </plugin> |
910 | 919 | </plugins>
|
911 | 920 | </build>
|
912 | 921 | <profiles>
|
|
0 commit comments