saiku 3.7.4 构建过程

本文详细记录了saiku 3.7.4的构建过程,包括修改多个pom.xml文件的步骤,特别是依赖于mondrian-4.3.0.1-SPARK版本的设置。作者分享了构建经验,指出需将mondrian包放入自有的nexus仓库,并提供了源码地址和相关文章链接,帮助解决saiku 3.x构建难题。
摘要由CSDN通过智能技术生成
前段时间由于研究需要,并且发现大家对于saiku3.x的构建有些疑问,并且构建难度比较高,因此将自己的记录分享出来,以供大家参考

本构建依赖于saiku-query-0.4的构建,参考如下文章:

红色的为原有被注释的
绿色的为添加的
蓝色地方比较重要,为我修改的地方,与上方红色对照下

前提是需要下载mondrian-4.3.0.1-SPARK的包放到自己的nexus中

源码地址:
使用版本:
    tag:saiku-3.7.4


1、修改saiku根目录的pom.xml文件
<?xml version="1.0" encoding="UTF-8"?>
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.saikuanalytics</groupId>
    <artifactId>saiku</artifactId>
    <packaging>pom</packaging>
    <version>3.7.4</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>
         <!--modify by liuyg <module>saiku-bi-platform-plugin-p5</module>
        <module>saiku-bi-platform-plugin-p6</module> -->

        <!--        <module>saiku-web-tests</module>-->
    </modules>

    <!-- <distributionManagement>
        <repository>
            <id>utility</id>
            <name>utility-releases</name>
        </repository>
        <snapshotRepository>
            <id>utility</id>
            <name>utility-snapshots</name>
        </snapshotRepository>
    </distributionManagement> -->
    <distributionManagement>
        <snapshotRepository>
            <id>snapshots-host</id>
        </snapshotRepository>
    </distributionManagement>
    <properties>
        <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.1.6.RELEASE</spring.version>
        <spring.security.version>4.0.1.RELEASE</spring.security.version>
        <slf4j.version>1.6.4</slf4j.version>
        <jersey.version>1.19</jersey.version>
        <tomcat.version>apache-tomcat-7.0.62</tomcat.version>
        <tomcat.source>target/stage/tomcat/</tomcat.source>
        <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
         <!-- <calcite.version>0.9.2-incubating-SNAPSHOT</calcite.version> -->
         <calcite.version>0.9.2-incubating</calcite.version><!-- modify by liuyg -->
        <pentaho.libs.version>TRUNK-SNAPSHOT</pentaho.libs.version>
        <pentaho.platform.version>5.0.0</pentaho.platform.version>
        <serenity.version>1.0.58</serenity.version>
        <jbehave.version>3.9.3</jbehave.version>
    </properties>
     <!-- <pluginRepositories>
        <pluginRepository>
            <id>Analytical Labs Plugin Repo</id>
            <name>Analytical Labs Repo-releases</name>
        </pluginRepository>
    </pluginRepositories> -->

    <repositories>
         <!-- <repository>
            <id>Analytical Labs Repo</id>
            <name>Analytical Labs Repo-releases</name>
        </repository>
        <repository>
            <id>Analytical Labs snapshots</id>
            <name>Analytical Labs Repo-releases</name>
        </repository>
        <repository>
            <id>pentaho-third-party</id>
        </repository>
        <repository>
            <id>pentaho-public-release</id>
        </repository>
        <repository>
            <id>pentaho-snapshot</id>
        </repository>
        <repository>
            <id>atlassian2</id>
            <url>http://repository.opencastproject.org/</url>
        </repository>-->
         <repository>
            <id>mine</id>
            <name>public Releases</name>
            <layout>default</layout>
            <url>http://192.168.10.140:8081/nexus/content/groups/public/</url>
        </repository>
        <repository>
            <id>central</id>
            <name>Maven Repository Switchboard</name>
            <layout>default</layout>
            <url>http://repo1.maven.org/maven2</url>
        </repository>
         <!-- <repository>
            <id>apache</id>
            <name>Apache repo</name>
            <layout>default</layout>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository> -->

        <!-- <repository>
            <id>atlassian</id>
            <name>Atlassian Public</name>
            <layout>default</layout>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository> -->


    </repositories>
    <build>
        <plugins>
      <!--      <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changes-plugin</artifactId>
                <version>2.11</version>
                <executions>
                    <execution>
                        <id>include-announcement-file</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>announcement-generate</goal>
                        </goals>
                        <configuration>
                            <announcementFile>CHANGES.txt</announcementFile>
                            <announcementDirectory>${project.build.outputDirectory}/META-INF</announcementDirectory>
                        </configuration>
                    </execution>
                </executions>
                <configuration>
                    <issueManagementSystems>
                        <issueManagementSystem>JIRA</issueManagementSystem>
                    </issueManagementSystems>
                    <smtpHost>mail.yourhost.com</smtpHost>
                    <smtpPort implementation="java.lang.Integer">25</smtpPort>
                    <mailSender>
                        <name>Release Notification</name>
                        <email> build@example.com</email>
                    </mailSender>
                    <toAddresses>
                        <toAddress implementation="java.lang.String"> to@example.com</toAddress>
                    </toAddresses>
                    <useJql>true</useJql>
                    <onlyCurrentVersion>true</onlyCurrentVersion>
                    <resolutionIds>Fixed,Done</resolutionIds>
                    <statusIds>Closed,Resolved,Done</statusIds>
                    <columnNames>Type,Key,Summary,Priority,Status,Resolution,Fix Version,Assignee</columnNames>
                    <webUser>...</webUser>
                    <webPassword>...</webPassword>
                </configuration>
            </plugin>-->
            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
                <version>1.6.5</version>
                <executions>
                    <execution>
                        <id>default-deploy</id>
                        <phase>deploy</phase>
                        <goals>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <serverId>nexus</serverId>
                    <nexusUrl> http://repo.meteorite.bi</nexusUrl>
                    <skipStaging>true</skipStaging>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>license-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.rat</groupId>
                <artifactId>apache-rat-plugin</artifactId>
                <version>0.11</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>jar-no-fork</goal>
                            <goal>test-jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>external.atlassian.jgitflow</groupId>
                <artifactId>jgitflow-maven-plugin</artifactId>
                <version>1.0-m4.3</version>
                <configuration>
                    <flowInitContext>
                        <masterBranchName>master</masterBranchName>
                        <developBranchName>development</developBranchName>
                        <featureBranchPrefix>feature-</featureBranchPrefix>
                        <releaseBranchPrefix>release-</releaseBranchPrefix>
                        <hotfixBranchPrefix>hotfix-</hotfixBranchPrefix>
                        <versionTagPrefix>t the-</versionTagPrefix>
                    </flowInitContext>
                    <allowSnapshots>true</allowSnapshots>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <pushReleases>true</pushReleases>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
            <!--<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <executions>
                    <execution>
                        <id>validate</id>
                        <phase>validate</phase>
                        <configuration>
                            <configLocation>${top.dir}/src/main/config/checkstyle/checker.xml</configLocation>
                            <suppressionsLocation>${top.dir}/src/main/config/checkstyle/suppressions.xml</suppressionsLocation>
                            <consoleOutput>true</consoleOutput>
                            <headerLocation>${top.dir}/src/main/config/checkstyle/header.txt</headerLocation>
                            <failOnViolation>true</failOnViolation>
                            <includeTestSourceDirectory>true</includeTestSourceDirectory>
                        </configuration>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>-->

        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.3</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.1</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>1.9</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <version>2.12.1</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <issueManagement>
        <system>JIRA</system>
        <url> http://jira.meteorite.bi/browse/SKU</url>
    </issueManagement>
    <!--<reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changes-plugin</artifactId>
                <version>2.11</version>
            </plugin>
        </plugins>
    </reporting>-->
    <profiles>
            <profile>
                <id>ci</id>
                <modules>
                <module>saiku-core</module>
                <module>saiku-ui</module>
                <module>saiku-webapp</module>
                <module>saiku-server</module>
                <module>saiku-bi-platform-plugin-p5</module>
                <module>saiku-web-tests</module>
            </modules>
        </profile>
    </profiles>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.sun.jersey.jersey-test-framework</groupId>
                <artifactId>jersey-test-framework-core</artifactId>
                <version>${jersey.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.sun.jersey.jersey-test-framework</groupId>
                <artifactId>jersey-test-framework-external</artifactId>
                <version>${jersey.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>net.sourceforge.jtds</groupId>
                <artifactId>jtds</artifactId>
                <version>1.3.1</version>
            </dependency>
            <dependency>
                <groupId>org.postgresql</groupId>
                <artifactId>postgresql</artifactId>
                <version>9.3-1102-jdbc41</version>
            </dependency>
            <dependency>
                <groupId>org.apache.hive</groupId>
                <artifactId>hive-jdbc</artifactId>
                <version>0.13.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.hadoop</groupId>
                <artifactId>hadoop-common</artifactId>
                <version>2.4.0</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-cas</artifactId>
                <version>${spring.security.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jasig.cas.client</groupId>
                <artifactId>cas-client-core</artifactId>
                <version>3.3.2</version>
            </dependency>
            <dependency>
                <groupId>org.jasig.cas.client</groupId>
                <artifactId>cas-client-integration-tomcat-common</artifactId>
                <version>3.3.2</version>
            </dependency>
            <dependency>
                <groupId>org.jasig.cas.client</groupId>
                <artifactId>cas-client-integration-tomcat-v7</artifactId>
                <version>3.3.2</version>
            </dependency>
            <dependency>
                <groupId>org.mozilla</groupId>
                <artifactId>rhino</artifactId>
                <version>1.7R5</version>
            </dependency>
            <dependency>
                <groupId>org.apache.jackrabbit</groupId>
                <artifactId>jackrabbit-api</artifactId>
                <version>2.8.0</version>
            </dependency>
            <dependency>
                <groupId>org.jvnet.mimepull</groupId>
                <artifactId>mimepull</artifactId>
                <version>1.9.4</version>
            </dependency>
            <dependency>
                <groupId>org.apache.jackrabbit</groupId>
                <artifactId>jackrabbit-webdav</artifactId>
                <version>2.8.0</version>
            </dependency>
            <dependency>
                <groupId>org.apache.jackrabbit</groupId>
                <artifactId>jackrabbit-jcr-commons</artifactId>
                <version>2.8.0</version>
            </dependency>
            <dependency>
                <groupId>org.saikuanalytics</groupId>
                <artifactId>saiku-service</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.saikuanalytics</groupId>
                <artifactId>saiku-webapp</artifactId>
                <version>3.1-SNAPSHOT</version>
                <type>war</type>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>com.qmino</groupId>
                <artifactId>miredot-annotations</artifactId>
                <version>1.3.1</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>1.2.14</version>
            </dependency>
            <dependency>
                <groupId>org.olap4j</groupId>
                <artifactId>olap4j</artifactId>
                <version>TRUNK-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>org.mongodb</groupId>
                <artifactId>mongo-java-driver</artifactId>
                <version>2.12.3</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>2.5.1</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.jaxrs</groupId>
                <artifactId>jackson-jaxrs-json-provider</artifactId>
                <version>2.5.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi</artifactId>
                <version>3.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-ooxml</artifactId>
                <version>3.7</version>
            </dependency>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值