pom.xml 8.7 KB

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