123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- <?xml version="1.0" encoding="UTF-8"?>
- <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/xsd/maven-4.0.0.xsd ">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apereo.cas</groupId>
- <artifactId>cas-overlay</artifactId>
- <packaging>war</packaging>
- <version>1.0</version>
- <dependencies>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid-spring-boot-starter</artifactId>
- <version>1.2.1</version>
- </dependency>
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>3.5.2</version>
- <exclusions>
- <exclusion>
- <artifactId>spring-boot-starter</artifactId>
- <groupId>org.springframework.boot</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>1.18.16</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.apereo.cas</groupId>
- <artifactId>cas-server-support-rest</artifactId>
- <version>${cas.version}</version>
- </dependency>
- <!-- Custom Authentication -->
- <dependency>
- <groupId>org.apereo.cas</groupId>
- <artifactId>cas-server-core-authentication-api</artifactId>
- <version>${cas.version}</version>
- </dependency>
- <!-- Custom Configuration -->
- <dependency>
- <groupId>org.apereo.cas</groupId>
- <artifactId>cas-server-core-configuration-api</artifactId>
- <version>${cas.version}</version>
- </dependency>
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-all</artifactId>
- <version>5.7.16</version> <!-- 请使用最新的版本号 -->
- </dependency>
- <!--数据库认证相关 start-->
- <dependency>
- <groupId>org.apereo.cas</groupId>
- <artifactId>cas-server-support-jdbc</artifactId>
- <version>5.3.16</version>
- </dependency>
- <dependency>
- <groupId>org.apereo.cas</groupId>
- <artifactId>cas-server-support-jdbc-drivers</artifactId>
- <version>5.3.16</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>8.0.33</version>
- </dependency>
- <dependency>
- <groupId>org.apereo.cas</groupId>
- <artifactId>cas-server-core-authentication-attributes</artifactId>
- <version>5.3.16</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>com.rimerosolutions.maven.plugins</groupId>
- <artifactId>wrapper-maven-plugin</artifactId>
- <version>0.0.5</version>
- <configuration>
- <verifyDownload>true</verifyDownload>
- <checksumAlgorithm>MD5</checksumAlgorithm>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${springboot.version}</version>
- <configuration>
- <mainClass>${mainClassName}</mainClass>
- <addResources>true</addResources>
- <executable>${isExecutable}</executable>
- <layout>WAR</layout>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.6</version>
- <configuration>
- <warName>cas</warName>
- <failOnMissingWebXml>false</failOnMissingWebXml>
- <recompressZippedFiles>false</recompressZippedFiles>
- <archive>
- <compress>false</compress>
- <manifestFile>${manifestFileToUse}</manifestFile>
- </archive>
- <overlays>
- <overlay>
- <groupId>org.apereo.cas</groupId>
- <artifactId>cas-server-webapp${app.server}</artifactId>
- </overlay>
- </overlays>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.3</version>
- </plugin>
- </plugins>
- <finalName>cas</finalName>
- </build>
- <properties>
- <cas.version>5.3.16</cas.version>
- <springboot.version>1.5.18.RELEASE</springboot.version>
- <!-- app.server could be -jetty, -undertow, -tomcat, or blank if you plan to provide appserver -->
- <app.server>-tomcat</app.server>
- <mainClassName>org.springframework.boot.loader.WarLauncher</mainClassName>
- <isExecutable>false</isExecutable>
- <manifestFileToUse>${project.build.directory}/war/work/org.apereo.cas/cas-server-webapp${app.server}/META-INF/MANIFEST.MF</manifestFileToUse>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <repositories>
- <repository>
- <id>sonatype-releases</id>
- <url>http://oss.sonatype.org/content/repositories/releases/</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>sonatype-snapshots</id>
- <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
- <repository>
- <id>shibboleth-releases</id>
- <url>https://build.shibboleth.net/nexus/content/repositories/releases</url>
- </repository>
- </repositories>
- <profiles>
- <profile>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <id>default</id>
- <dependencies>
- <dependency>
- <groupId>org.apereo.cas</groupId>
- <artifactId>cas-server-webapp${app.server}</artifactId>
- <version>${cas.version}</version>
- <type>war</type>
- <scope>runtime</scope>
- </dependency>
- <!--
- ...Additional dependencies may be placed here...
- -->
- </dependencies>
- </profile>
- <profile>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <id>exec</id>
- <properties>
- <mainClassName>org.apereo.cas.web.CasWebApplication</mainClassName>
- <isExecutable>true</isExecutable>
- <manifestFileToUse></manifestFileToUse>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>com.soebes.maven.plugins</groupId>
- <artifactId>echo-maven-plugin</artifactId>
- <version>0.3.0</version>
- <executions>
- <execution>
- <phase>prepare-package</phase>
- <goals>
- <goal>echo</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <echos>
- <echo>Executable profile to make the generated CAS web application executable.</echo>
- </echos>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <id>bootiful</id>
- <properties>
- <app.server>-tomcat</app.server>
- <isExecutable>false</isExecutable>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.apereo.cas</groupId>
- <artifactId>cas-server-webapp${app.server}</artifactId>
- <version>${cas.version}</version>
- <type>war</type>
- <scope>runtime</scope>
- </dependency>
- <!--数据库认证相关 end-->
- </dependencies>
- </profile>
- <profile>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <id>pgp</id>
- <build>
- <plugins>
- <plugin>
- <groupId>com.github.s4u.plugins</groupId>
- <artifactId>pgpverify-maven-plugin</artifactId>
- <version>1.1.0</version>
- <executions>
- <execution>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <pgpKeyServer>hkp://pool.sks-keyservers.net</pgpKeyServer>
- <pgpKeysCachePath>${settings.localRepository}/pgpkeys-cache</pgpKeysCachePath>
- <scope>test</scope>
- <verifyPomFiles>true</verifyPomFiles>
- <failNoSignature>false</failNoSignature>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|