CAS (13) —— CAS 使用Maven Profile支持多环境编译

CAS (13) —— CAS 使用Maven Profile支持多环境编译

摘要

CAS 使用Maven Profile支持多环境编译


版本

tomcat版本: tomcat-8.0.29

jdk版本: jdk1.8.0_65

cas版本: 4.1.3

**cas4.1.3 (4.x还在开发过程中不是很稳定,迭代比较快,也会有些bug) **

cas-client-3.4.1

maven版本: 3.3.9

主要内容

准备

以项目github上CAS项目为例进行扩充

  • 参考文章

CAS (1) —— Mac下配置CAS到Tomcat(服务端)

配置

扩充不同环境下需要定制配置文件目录

Profile使用



local8433

local8433


true




src/main/resources

.bak



src/main/resources-config/local8433





local8443

local8443


true




src/main/resources

.bak



src/main/resources-config/local8443




local

local


true




src/main/resources

.bak



src/main/resources-config/local





dev

dev




src/main/resources

.bak



src/main/resources-config/dev





qa

qa




src/main/resources

.bak



src/main/resources-config/qa





prod

prod




src/main/resources

.bak



src/main/resources-config/prod





prod215

prod215




src/main/resources

.bak



src/main/resources-config/prod215





prod216

prod216




src/main/resources

.bak



src/main/resources-config/prod216




Filter使用



${basedir}/src/main/webapp-config/${env}/filters/cas.properties


${basedir}/src/main/webapp-config/${env}/filters/spring-configuration/authenticationEncoder.xml



org.apache.maven.plugins
maven-war-plugin

cas


${basedir}/src/main/webapp/WEB-INF
true
WEB-INF

/web.xml


.bak



${basedir}/src/main/webapp-config/${env}/filters
true
WEB-INF

.properties
**.xml



${basedir}/src/main/webapp-config/${env}/filters/spring-configuration
true
WEB-INF/spring-configuration

.properties
**.xml






org.eclipse.jetty
jetty-maven-plugin
${maven-jetty-plugin.version}


/cas



参考

Introduction to Build Profiles

CAS (7) —— Mac下配置CAS 4.x集群及JPATicketRegistry

结束

posted @ 2016-02-23 11:48  Richaaaard  阅读(1482)  评论(0)    收藏  举报