Saiku的编译与CAS集成

Saiku的编译真是比较艰难,很多软件包缺失,改名或者格式不对,修改了2天才终于编译成功,希望可以帮到大家。

1 下载与编译
1.1 源码下载

1.1.1 saiku 源码下载

git clone https://github.com/OSBI/saiku.git

1.1.2 saiku-query 源码下载

由于saiku依赖saiku-query,而目前saiku-query作为另一个独立项目并且没有加入maven仓库所以必须自行下载编译。

git clone https://github.com/OSBI/saiku-query.git

1.2 源码编译

1.2.1 添加maven仓库

由于项目maven仓库源配置不完整,需要在saiku和saiku-query的pom.xml添加如下仓库配置。


jasperreports
jasperreports Public
default
http://jasperreports.sourceforge.net/maven2


jboss
jboss Public
default
https://repository.jboss.org/


pentaho
pentaho Public
default
http://repo.pentaho.org/content/groups/omni/


jackpinetech
jackpinetech Public
default
https://nexus.jackpinetech.com/nexus/content/groups/public/

并且将central仓库提到仓库列表开头,优先使用。

1.2.2 修改pom.xml

1.saiku原本使用的pentaho.libs版本为TRUNK-SNAPSHOT不但经常变动而且目前仓库里这个版本损坏。 修改saiku

Spring Security CAS

cas.service=http://localhost:8080/saiku/login/cas
cas.ssoserver.loginurl=https://login.hand-china.com/sso/login
cas.ssoserver.url=https://login.hand-china.com/sso
cas.ssoserver.logouturl=https://login.hand-china.com/sso/logout?service=http://localhost:3000/api/defaultCasTarget
cas.defaultUrl=http://localhost:3000/#/app/index
cas.auth.provider.key=hand_hap_cas_key_prod
2.2 启用saiku CAS 配置

修改 applicationContext-spring-security.xml



2.3 修改saiku CAS配置

修改applicationContext-spring-security-cas.xml文件

2.3.1 引入属性配置文件

添加xmlns配置xmlns:context=”http://www.springframework.org/schema/context” 并且添加如下属性文件引入

猜你喜欢

转载自blog.csdn.net/www_hl/article/details/78592139