pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. <groupId>org.apereo.cas</groupId>
  7. <artifactId>cas-overlay</artifactId>
  8. <packaging>war</packaging>
  9. <version>1.0</version>
  10. <dependencies>
  11. <dependency>
  12. <groupId>com.alibaba</groupId>
  13. <artifactId>druid-spring-boot-starter</artifactId>
  14. <version>1.2.1</version>
  15. </dependency>
  16. <dependency>
  17. <groupId>com.baomidou</groupId>
  18. <artifactId>mybatis-plus-boot-starter</artifactId>
  19. <version>3.5.2</version>
  20. <exclusions>
  21. <exclusion>
  22. <artifactId>spring-boot-starter</artifactId>
  23. <groupId>org.springframework.boot</groupId>
  24. </exclusion>
  25. </exclusions>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.projectlombok</groupId>
  29. <artifactId>lombok</artifactId>
  30. <version>1.18.16</version>
  31. <scope>compile</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.apereo.cas</groupId>
  35. <artifactId>cas-server-support-rest</artifactId>
  36. <version>${cas.version}</version>
  37. </dependency>
  38. <!-- Custom Authentication -->
  39. <dependency>
  40. <groupId>org.apereo.cas</groupId>
  41. <artifactId>cas-server-core-authentication-api</artifactId>
  42. <version>${cas.version}</version>
  43. </dependency>
  44. <!-- Custom Configuration -->
  45. <dependency>
  46. <groupId>org.apereo.cas</groupId>
  47. <artifactId>cas-server-core-configuration-api</artifactId>
  48. <version>${cas.version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>cn.hutool</groupId>
  52. <artifactId>hutool-all</artifactId>
  53. <version>5.7.16</version> <!-- 请使用最新的版本号 -->
  54. </dependency>
  55. <!--数据库认证相关 start-->
  56. <dependency>
  57. <groupId>org.apereo.cas</groupId>
  58. <artifactId>cas-server-support-jdbc</artifactId>
  59. <version>5.3.16</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apereo.cas</groupId>
  63. <artifactId>cas-server-support-jdbc-drivers</artifactId>
  64. <version>5.3.16</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>mysql</groupId>
  68. <artifactId>mysql-connector-java</artifactId>
  69. <version>8.0.33</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apereo.cas</groupId>
  73. <artifactId>cas-server-core-authentication-attributes</artifactId>
  74. <version>5.3.16</version>
  75. </dependency>
  76. </dependencies>
  77. <build>
  78. <plugins>
  79. <plugin>
  80. <groupId>com.rimerosolutions.maven.plugins</groupId>
  81. <artifactId>wrapper-maven-plugin</artifactId>
  82. <version>0.0.5</version>
  83. <configuration>
  84. <verifyDownload>true</verifyDownload>
  85. <checksumAlgorithm>MD5</checksumAlgorithm>
  86. </configuration>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-maven-plugin</artifactId>
  91. <version>${springboot.version}</version>
  92. <configuration>
  93. <mainClass>${mainClassName}</mainClass>
  94. <addResources>true</addResources>
  95. <executable>${isExecutable}</executable>
  96. <layout>WAR</layout>
  97. </configuration>
  98. <executions>
  99. <execution>
  100. <goals>
  101. <goal>repackage</goal>
  102. </goals>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. <plugin>
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-war-plugin</artifactId>
  109. <version>2.6</version>
  110. <configuration>
  111. <warName>cas</warName>
  112. <failOnMissingWebXml>false</failOnMissingWebXml>
  113. <recompressZippedFiles>false</recompressZippedFiles>
  114. <archive>
  115. <compress>false</compress>
  116. <manifestFile>${manifestFileToUse}</manifestFile>
  117. </archive>
  118. <overlays>
  119. <overlay>
  120. <groupId>org.apereo.cas</groupId>
  121. <artifactId>cas-server-webapp${app.server}</artifactId>
  122. </overlay>
  123. </overlays>
  124. </configuration>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-compiler-plugin</artifactId>
  129. <version>3.3</version>
  130. </plugin>
  131. </plugins>
  132. <finalName>cas</finalName>
  133. </build>
  134. <properties>
  135. <cas.version>5.3.16</cas.version>
  136. <springboot.version>1.5.18.RELEASE</springboot.version>
  137. <!-- app.server could be -jetty, -undertow, -tomcat, or blank if you plan to provide appserver -->
  138. <app.server>-tomcat</app.server>
  139. <mainClassName>org.springframework.boot.loader.WarLauncher</mainClassName>
  140. <isExecutable>false</isExecutable>
  141. <manifestFileToUse>${project.build.directory}/war/work/org.apereo.cas/cas-server-webapp${app.server}/META-INF/MANIFEST.MF</manifestFileToUse>
  142. <maven.compiler.source>1.8</maven.compiler.source>
  143. <maven.compiler.target>1.8</maven.compiler.target>
  144. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  145. </properties>
  146. <repositories>
  147. <repository>
  148. <id>sonatype-releases</id>
  149. <url>http://oss.sonatype.org/content/repositories/releases/</url>
  150. <snapshots>
  151. <enabled>false</enabled>
  152. </snapshots>
  153. <releases>
  154. <enabled>true</enabled>
  155. </releases>
  156. </repository>
  157. <repository>
  158. <id>sonatype-snapshots</id>
  159. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  160. <snapshots>
  161. <enabled>true</enabled>
  162. </snapshots>
  163. <releases>
  164. <enabled>false</enabled>
  165. </releases>
  166. </repository>
  167. <repository>
  168. <id>shibboleth-releases</id>
  169. <url>https://build.shibboleth.net/nexus/content/repositories/releases</url>
  170. </repository>
  171. </repositories>
  172. <profiles>
  173. <profile>
  174. <activation>
  175. <activeByDefault>true</activeByDefault>
  176. </activation>
  177. <id>default</id>
  178. <dependencies>
  179. <dependency>
  180. <groupId>org.apereo.cas</groupId>
  181. <artifactId>cas-server-webapp${app.server}</artifactId>
  182. <version>${cas.version}</version>
  183. <type>war</type>
  184. <scope>runtime</scope>
  185. </dependency>
  186. <!--
  187. ...Additional dependencies may be placed here...
  188. -->
  189. </dependencies>
  190. </profile>
  191. <profile>
  192. <activation>
  193. <activeByDefault>false</activeByDefault>
  194. </activation>
  195. <id>exec</id>
  196. <properties>
  197. <mainClassName>org.apereo.cas.web.CasWebApplication</mainClassName>
  198. <isExecutable>true</isExecutable>
  199. <manifestFileToUse></manifestFileToUse>
  200. </properties>
  201. <build>
  202. <plugins>
  203. <plugin>
  204. <groupId>com.soebes.maven.plugins</groupId>
  205. <artifactId>echo-maven-plugin</artifactId>
  206. <version>0.3.0</version>
  207. <executions>
  208. <execution>
  209. <phase>prepare-package</phase>
  210. <goals>
  211. <goal>echo</goal>
  212. </goals>
  213. </execution>
  214. </executions>
  215. <configuration>
  216. <echos>
  217. <echo>Executable profile to make the generated CAS web application executable.</echo>
  218. </echos>
  219. </configuration>
  220. </plugin>
  221. </plugins>
  222. </build>
  223. </profile>
  224. <profile>
  225. <activation>
  226. <activeByDefault>false</activeByDefault>
  227. </activation>
  228. <id>bootiful</id>
  229. <properties>
  230. <app.server>-tomcat</app.server>
  231. <isExecutable>false</isExecutable>
  232. </properties>
  233. <dependencies>
  234. <dependency>
  235. <groupId>org.apereo.cas</groupId>
  236. <artifactId>cas-server-webapp${app.server}</artifactId>
  237. <version>${cas.version}</version>
  238. <type>war</type>
  239. <scope>runtime</scope>
  240. </dependency>
  241. <!--数据库认证相关 end-->
  242. </dependencies>
  243. </profile>
  244. <profile>
  245. <activation>
  246. <activeByDefault>false</activeByDefault>
  247. </activation>
  248. <id>pgp</id>
  249. <build>
  250. <plugins>
  251. <plugin>
  252. <groupId>com.github.s4u.plugins</groupId>
  253. <artifactId>pgpverify-maven-plugin</artifactId>
  254. <version>1.1.0</version>
  255. <executions>
  256. <execution>
  257. <goals>
  258. <goal>check</goal>
  259. </goals>
  260. </execution>
  261. </executions>
  262. <configuration>
  263. <pgpKeyServer>hkp://pool.sks-keyservers.net</pgpKeyServer>
  264. <pgpKeysCachePath>${settings.localRepository}/pgpkeys-cache</pgpKeysCachePath>
  265. <scope>test</scope>
  266. <verifyPomFiles>true</verifyPomFiles>
  267. <failNoSignature>false</failNoSignature>
  268. </configuration>
  269. </plugin>
  270. </plugins>
  271. </build>
  272. </profile>
  273. </profiles>
  274. </project>