由于二次开发需要重新整理pom文件,而pom文件中的依赖关系比较难整理,故将整理好的pom文件发出来,以供参考
<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"> <modelVersion>4.0.0</modelVersion> <groupId>cn.firewarm</groupId> <artifactId>saiku3</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT</version> <name>saiku Maven Webapp</name> <url>http://maven.apache.org</url> <distributionManagement><!--add by liuyg --> <snapshotRepository> <id>snapshots-host</id> <url>http://nexus.firewarm.cn:8081/nexus/content/repositories/snapshots-host/</url> </snapshotRepository> </distributionManagement> <properties> <saiku.version>3.8-RC5</saiku.version> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> <top.dir>${project.basedir}</top.dir> <!-- <spring.version>4.0.1.RELEASE</spring.version> --> <spring.versi
参考原文,略作修改:http://www.cnblogs.com/avivaye/p/4881106.html
以上链接文章的思路是正确的,有略微的遗漏,saiku-beans.properties中也存在与用户相关的H2数据库配置,并且在id为“userDaoDataSource”的bean中有用到,为了避免出现问题,将其一并替换,并修改原文中部分配置到配置文件中
<code class="hljs"><context-<span class="hljs-built_in">param</span>> <<span class="hljs-built_in">param</span>-name>db.url</<span class="hljs-built_in">param</span>-name> <<span class="hljs-built_in">param</span>-<span class="hljs-built_in">value</span>>jdbc:h2:../../data/saiku;MODE=MySQL</<span class="hljs-built_in">param</span>-<span class="hljs-built_in">value</span>> </context-<span class="hljs-built_in">param</span>> <context-<span class="hljs-built_in">param</span>> <<span class="hljs-built_in">param</span>-name>db.user</<span class="hljs-built_in">param</span>-name> <<span class="hljs-built_in">param</span>-<span class="hljs-built_in">value</span>>sa</<span class="hljs-built_in">param</span>-<span class="hljs-built_in">value</span
<?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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.saikuanalytics</groupId> <artifactId>saiku</artifactId> <packaging>pom</packaging> <version>3.8-RC5</version> <name>Saiku Module Project</name> <scm> <developerConnection> scm:git:git@github.com:OSBI/saiku.git </developerConnection> <tag>saiku-3.1-SNAPSHOT</tag> </scm> <modules> <module>saiku-core</module> <module>saiku-ui</module> <module>saiku-webapp</module> <module>saiku-server</module> <module |
saiku提供了刷新缓存的方法:
by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(==防止爬虫==):http://blog.liuyingguang.cn
maven项目:
pom文件
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.firewarm</groupId>
<artifactId>testMondrian</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>testMondrian Maven Webapp</name>
<url>http://maven.apache.org</url>
<repositories>
<repository>
<id>mine</id>
<name>public Releases</name>
<layout>default</layout>
<url>http://nexus.liuyingguang.cn:8081/nexus/content/groups/public/</url>
</repository>
<repository>
<id>mine-meteorite-bi-release</id>
<name>pub