pom.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <artifactId>tofly-parent</artifactId>
  8. <groupId>com.tofly</groupId>
  9. <version>1.0.4</version>
  10. </parent>
  11. <artifactId>swagger-bootstrap-ui</artifactId>
  12. <version>1.9.6</version>
  13. <name>swagger-bootstrap-ui</name>
  14. <description>Swagger-Bootstrap-UI is the front of the UI Swagger implementation, using jQuery+bootstrap implementation, the purpose is to replace the default UI Swagger implementation of the Swagger-UI, so that the document is more friendly...</description>
  15. <url>https://git.oschina.net/xiaoym/swagger-bootstrap-ui</url>
  16. <developers>
  17. <developer>
  18. <id>xiaoym</id>
  19. <name>肖玉民</name>
  20. <email>xiaoymin@foxmail.com</email>
  21. <roles>
  22. <role>Java Development Engineer</role>
  23. </roles>
  24. <timezone>2017-4-17 18:05:10</timezone>
  25. </developer>
  26. </developers>
  27. <properties>
  28. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  29. <java.version>1.8</java.version>
  30. <spring.version>5.1.0.RELEASE</spring.version>
  31. <springfox.version>2.9.2</springfox.version>
  32. <!-- 打包跳过单元测试 -->
  33. <skipTests>true</skipTests>
  34. <destDir>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${project.version}</destDir>
  35. </properties>
  36. <licenses>
  37. <license>
  38. <name>The Apache Software License, Version 2.0</name>
  39. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  40. </license>
  41. </licenses>
  42. <scm>
  43. <connection>scm:git@git.oschina.net:xiaoym/swagger-bootstrap-ui.git</connection>
  44. <developerConnection>scm:git@git.oschina.net:xiaoym/swagger-bootstrap-ui.git</developerConnection>
  45. <url>git@git.oschina.net:xiaoym/swagger-bootstrap-ui.git</url>
  46. </scm>
  47. <dependencies>
  48. <!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
  49. <dependency>
  50. <groupId>org.javassist</groupId>
  51. <artifactId>javassist</artifactId>
  52. <version>3.25.0-GA</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework</groupId>
  56. <artifactId>spring-web</artifactId>
  57. <version>${spring.version}</version>
  58. <scope>provided</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework</groupId>
  62. <artifactId>spring-webmvc</artifactId>
  63. <version>${spring.version}</version>
  64. <scope>provided</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>javax.servlet</groupId>
  68. <artifactId>javax.servlet-api</artifactId>
  69. <version>3.1.0</version>
  70. <scope>provided</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>io.springfox</groupId>
  74. <artifactId>springfox-swagger2</artifactId>
  75. <version>${springfox.version}</version>
  76. <scope>provided</scope>
  77. </dependency>
  78. </dependencies>
  79. <build>
  80. <resources>
  81. <resource>
  82. <directory>${project.basedir}/src/main/resources</directory>
  83. <targetPath>META-INF/resources/</targetPath>
  84. </resource>
  85. </resources>
  86. <plugins>
  87. <!-- java doc-->
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-javadoc-plugin</artifactId>
  91. <!--<version>2.9.1</version>-->
  92. <version>2.10.4</version>
  93. <configuration>
  94. <encoding>UTF-8</encoding>
  95. <charset>UTF-8</charset>
  96. <aggregate>true</aggregate>
  97. </configuration>
  98. <executions>
  99. <execution>
  100. <id>attach-javadocs</id>
  101. <phase>package</phase>
  102. <goals>
  103. <goal>jar</goal>
  104. </goals>
  105. <configuration>
  106. <additionalparam>-Xdoclint:none</additionalparam>
  107. </configuration>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <!-- 私服上传源码 -->
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-source-plugin</artifactId>
  115. <executions>
  116. <execution>
  117. <id>attach-sources</id>
  118. <goals>
  119. <goal>jar</goal>
  120. </goals>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. <!--maven 指定jdk版本 -->
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-compiler-plugin</artifactId>
  128. <configuration>
  129. <source>${java.version}</source>
  130. <target>${java.version}</target>
  131. <encoding>UTF-8</encoding>
  132. </configuration>
  133. </plugin>
  134. <plugin>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-surefire-plugin</artifactId>
  137. <version>2.18.1</version>
  138. <configuration>
  139. <skipTests>${skipTests}</skipTests>
  140. <argLine>-Dfile.encoding=UTF-8</argLine>
  141. </configuration>
  142. </plugin>
  143. </plugins>
  144. </build>
  145. <profiles>
  146. <profile>
  147. <id>release</id>
  148. <build>
  149. <plugins>
  150. <!-- Source -->
  151. <plugin>
  152. <groupId>org.apache.maven.plugins</groupId>
  153. <artifactId>maven-source-plugin</artifactId>
  154. <version>2.2.1</version>
  155. <executions>
  156. <execution>
  157. <phase>package</phase>
  158. <goals>
  159. <goal>jar-no-fork</goal>
  160. </goals>
  161. </execution>
  162. </executions>
  163. </plugin>
  164. <!-- Javadoc -->
  165. <plugin>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-javadoc-plugin</artifactId>
  168. <version>2.9.1</version>
  169. <executions>
  170. <execution>
  171. <phase>package</phase>
  172. <goals>
  173. <goal>jar</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. <!-- GPG -->
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-gpg-plugin</artifactId>
  182. <version>1.6</version>
  183. <executions>
  184. <execution>
  185. <phase>verify</phase>
  186. <goals>
  187. <goal>sign</goal>
  188. </goals>
  189. </execution>
  190. </executions>
  191. </plugin>
  192. </plugins>
  193. </build>
  194. </profile>
  195. </profiles>
  196. </project>