pom.xml 11 KB

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