buji-pac4j-4.0.0.pom 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the bujiio organization of the Shiro project under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  21. <modelVersion>4.0.0</modelVersion>
  22. <artifactId>buji-pac4j</artifactId>
  23. <version>4.0.0</version>
  24. <packaging>jar</packaging>
  25. <name>pac4j implementation for Shiro</name>
  26. <description>Security library for Shiro based on pac4j</description>
  27. <url>https://github.com/bujiio/buji-pac4j</url>
  28. <parent>
  29. <groupId>io.buji</groupId>
  30. <artifactId>buji-parent</artifactId>
  31. <version>1</version>
  32. </parent>
  33. <repositories>
  34. <repository>
  35. <id>sonatype-nexus-snapshots</id>
  36. <name>Sonatype Nexus Snapshots</name>
  37. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  38. <releases>
  39. <enabled>false</enabled>
  40. </releases>
  41. <snapshots>
  42. <enabled>true</enabled>
  43. </snapshots>
  44. </repository>
  45. <repository>
  46. <id>apache-snapshots</id>
  47. <name>Apache Snapshots</name>
  48. <url>https://repository.apache.org/snapshots/</url>
  49. <releases>
  50. <enabled>false</enabled>
  51. </releases>
  52. <snapshots>
  53. <enabled>true</enabled>
  54. </snapshots>
  55. </repository>
  56. <!--repository>
  57. <id>apache-staging-repo</id>
  58. <name>Apache Staging Repository</name>
  59. <url>https://repository.apache.org/content/repositories/orgapacheshiro-1018/</url>
  60. <releases>
  61. <enabled>true</enabled>
  62. </releases>
  63. <snapshots>
  64. <enabled>false</enabled>
  65. </snapshots>
  66. </repository-->
  67. </repositories>
  68. <licenses>
  69. <license>
  70. <name>The Apache Software License, Version 2.0</name>
  71. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  72. <distribution>repo</distribution>
  73. </license>
  74. </licenses>
  75. <scm>
  76. <connection>scm:git:git@github.com:bujiio/buji-pac4j.git</connection>
  77. <developerConnection>scm:git:git@github.com:bujiio/buji-pac4j.git</developerConnection>
  78. <url>https://github.com/bujiio/buji-pac4j</url>
  79. </scm>
  80. <properties>
  81. <pac4j.version>3.0.2</pac4j.version>
  82. <java.version>1.8</java.version>
  83. <shiro.version>1.4.0</shiro.version>
  84. <servlet.version>3.1.0</servlet.version>
  85. </properties>
  86. <dependencies>
  87. <dependency>
  88. <groupId>org.apache.shiro</groupId>
  89. <artifactId>shiro-web</artifactId>
  90. <version>${shiro.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.pac4j</groupId>
  94. <artifactId>pac4j-core</artifactId>
  95. <version>${pac4j.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>javax.servlet</groupId>
  99. <artifactId>javax.servlet-api</artifactId>
  100. <version>${servlet.version}</version>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>junit</groupId>
  105. <artifactId>junit</artifactId>
  106. <version>4.12</version>
  107. <scope>test</scope>
  108. </dependency>
  109. </dependencies>
  110. <build>
  111. <plugins>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-compiler-plugin</artifactId>
  115. <version>3.7.0</version>
  116. <configuration>
  117. <source>${java.version}</source>
  118. <target>${java.version}</target>
  119. <encoding>UTF-8</encoding>
  120. </configuration>
  121. </plugin>
  122. <plugin>
  123. <groupId>org.apache.felix</groupId>
  124. <artifactId>maven-bundle-plugin</artifactId>
  125. <version>3.5.1</version>
  126. <extensions>true</extensions>
  127. <configuration>
  128. <instructions>
  129. <Bundle-SymbolicName>io.buji.pac4j</Bundle-SymbolicName>
  130. <Export-Package>io.buji.pac4j*;version=${project.version}</Export-Package>
  131. <Import-Package>
  132. org.apache.shiro*;version="[1.2, 2)",
  133. org.pac4j*;version="[3.0, 4.0)",
  134. org.scribe*;version="[5.0, 6.0)",
  135. *
  136. </Import-Package>
  137. </instructions>
  138. </configuration>
  139. </plugin>
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-source-plugin</artifactId>
  143. <version>3.0.1</version>
  144. <executions>
  145. <execution>
  146. <id>attach-sources</id>
  147. <goals>
  148. <goal>jar</goal>
  149. </goals>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-javadoc-plugin</artifactId>
  156. <version>3.0.1</version>
  157. <configuration>
  158. <charset>UTF-8</charset>
  159. <encoding>UTF-8</encoding>
  160. <docencoding>UTF-8</docencoding>
  161. </configuration>
  162. <executions>
  163. <execution>
  164. <id>attach-javadocs</id>
  165. <goals>
  166. <goal>jar</goal>
  167. </goals>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.codehaus.mojo</groupId>
  173. <artifactId>findbugs-maven-plugin</artifactId>
  174. <version>3.0.5</version>
  175. <configuration>
  176. <effort>Low</effort>
  177. <threshold>Max</threshold>
  178. <failOnError>true</failOnError>
  179. <includeTests>true</includeTests>
  180. </configuration>
  181. <executions>
  182. <execution>
  183. <id>run-findbugs</id>
  184. <phase>compile</phase>
  185. <goals>
  186. <goal>check</goal>
  187. </goals>
  188. </execution>
  189. </executions>
  190. </plugin>
  191. <plugin>
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-pmd-plugin</artifactId>
  194. <version>3.10.0</version>
  195. <configuration>
  196. <includeTests>true</includeTests>
  197. <printFailingErrors>true</printFailingErrors>
  198. </configuration>
  199. <executions>
  200. <execution>
  201. <id>run-pmd</id>
  202. <phase>compile</phase>
  203. <goals>
  204. <goal>check</goal>
  205. </goals>
  206. </execution>
  207. </executions>
  208. </plugin>
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-surefire-plugin</artifactId>
  212. <version>2.22.0</version>
  213. <configuration>
  214. <includes>
  215. <include>**/*Tests.java</include>
  216. </includes>
  217. </configuration>
  218. </plugin>
  219. </plugins>
  220. </build>
  221. </project>