pom.xml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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">
  5. <parent>
  6. <artifactId>service-redscarf</artifactId>
  7. <groupId>com.crunii.microservice</groupId>
  8. <version>${micro.version}</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>service-redscarf-biz</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.crunii.microservice</groupId>
  19. <artifactId>service-redscarf-api</artifactId>
  20. <version>${micro.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.crunii.microservice</groupId>
  24. <artifactId>micro-core</artifactId>
  25. </dependency>
  26. </dependencies>
  27. <!-- 不使用自动生成代码 -->
  28. <!--<build>
  29. <plugins>
  30. <plugin>
  31. <groupId>org.openapitools</groupId>
  32. <artifactId>openapi-generator-maven-plugin</artifactId>
  33. <version>6.6.0</version>
  34. <executions>
  35. <execution>
  36. <goals>
  37. <goal>generate</goal>
  38. </goals>
  39. <configuration>
  40. <templateDirectory>${session.executionRootDirectory}/openapi/template</templateDirectory>
  41. <inputSpec>openapi/hlj.yaml</inputSpec>
  42. <generatorName>spring</generatorName>
  43. <apiPackage>com.crunii.micro.service.redscarf.controller</apiPackage>
  44. <modelPackage>com.crunii.micro.service.redscarf.dto</modelPackage>
  45. <generateModelDocumentation>true</generateModelDocumentation>
  46. <skipValidateSpec>false</skipValidateSpec>
  47. <configOptions>
  48. <delegatePattern>true</delegatePattern>
  49. <title>swagger</title>
  50. <serializableModel>true</serializableModel>
  51. </configOptions>
  52. &lt;!&ndash; https://github.com/OpenAPITools/openapi-generator/issues/4680#issuecomment-656199687&ndash;&gt;
  53. <importMappings>
  54. <importMapping>Request=javax.servlet.http.HttpServletRequest</importMapping>
  55. </importMappings>
  56. </configuration>
  57. </execution>
  58. </executions>
  59. </plugin>
  60. &lt;!&ndash; 指定多个源代码目录、多个资源文件目录 &ndash;&gt;
  61. <plugin>
  62. <groupId>org.codehaus.mojo</groupId>
  63. <artifactId>build-helper-maven-plugin</artifactId>
  64. <version>3.3.0</version>
  65. <executions>
  66. <execution>
  67. <id>add-source</id>
  68. <phase>generate-sources</phase>
  69. <goals>
  70. <goal>add-source</goal>
  71. </goals>
  72. <configuration>
  73. <sources>
  74. <source>src/java/main</source>
  75. <source>
  76. ${project.build.directory}/generated-sources/openapi/src/java/main</source>
  77. </sources>
  78. </configuration>
  79. </execution>
  80. </executions>
  81. </plugin>
  82. </plugins>
  83. </build>-->
  84. </project>