近日整理了saiku(branch 3.8-release)的构建步骤,分享出来以供大家参考
红色的为原有被注释的
绿色的为添加的
蓝色地方比较重要,为我修改的地方,与上方红色对照下
前提是需要下载mondrian-4.3.0.1-SPARK的包放到自己的nexus中
源码地址:
使用版本:
branch:release-3.8
1、修改saiku根目录的pom.xml文件
<?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-bi-platform-plugin-p5</module> <module>saiku-bi-platform-plugin-p6</module> </modules> <!--add by liuyg <distributionManagement> <repository> <id>utility</id> <name>utility-releases</name> </repository> <snapshotRepository> <id>utility</id> <name>utility-snapshots</name> </snapshotRepository> </distributionManagement> --> <distributionManagement><!--add by liuyg for deploy project to nexus--> <repository> <id>releases-host</id> </repository> <snapshotRepository> <id>releases-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> <!--add by liuyg <pluginRepository> <id>Analytical Labs Plugin Repo</id> <name>Analytical Labs Repo-releases</name> </pluginRepository> --> <pluginRepository> <id>mine</id> <name>public Releases</name> <layout>default</layout> </pluginRepository> </pluginRepositories> <repositories> <!-- add by liuyg <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> </repository> <repository> <id>mine-meteorite-bi-release</id> <name>public Releases</name> <layout>default</layout> </repository> <repository> <id>central</id> <name>Maven Repository Switchboard</name> <layout>default</layout> <url>http://repo1.maven.org/maven2</url> <!-- <snapshots> modify by liuyg <enabled>false</enabled> </snapshots> --> </repository> <!--add by liuyg <repository> <id>apache</id> <name>Apache repo</name> <layout>default</layout> <snapshots> <enabled>true</enabled> </snapshots> </repository> --> <!-- add by liuyg<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> <dependency> <groupId>eigenbase</groupId> <artifactId>eigenbase-properties</artifactId> <version>1.1.0.10924</version> </dependency> <dependency> <groupId>eigenbase</groupId> <artifactId>eigenbase-resgen</artifactId> <version>1.3.0.11873</version> </dependency> <dependency> <groupId>eigenbase</groupId> <artifactId>eigenbase-xom</artifactId> <version>1.3.0.11999</version> </dependency> <!-- modify by liuyg <dependency> <groupId>org.olap4j</groupId> <artifactId>olap4j-xmla</artifactId> <version>TRUNK-SNAPSHOT</version> </dependency> --> <dependency> <groupId>org.olap4j</groupId> <artifactId>olap4j-xmla</artifactId> <version>1.2.0</version> </dependency> <dependency> <groupId>org.olap4j</groupId> <artifactId>olap4j-xmlaserver</artifactId> <version>1.2.0</version> </dependency> <dependency> <groupId>org.jdom</groupId> <artifactId>jdom</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>javax.jcr</groupId> <artifactId>jcr</artifactId> <version>2.0</version> </dependency> <dependency> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> <version>1.3.04</version> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>fop</artifactId> <version>1.1</version> <exclusions> <exclusion> <artifactId>avalon-framework-api</artifactId> <groupId>org.apache.avalon.framework</groupId> </exclusion> <exclusion> <artifactId>avalon-framework-impl</artifactId> <groupId>org.apache.avalon.framework</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>xmlgraphics-commons</artifactId> <version>1.5</version> </dependency> <!-- these two are to correct issues in fop dependency --> <dependency> <groupId>avalon-framework</groupId> <artifactId>avalon-framework-api</artifactId> <version>4.2.0</version> </dependency> <dependency> <groupId>avalon-framework</groupId> <artifactId>avalon-framework-impl</artifactId> <version>4.2.0</version> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> <version>1.7</version> </dependency> <dependency> <groupId>batik</groupId> <artifactId>batik-transcoder</artifactId> <version>1.7</version> </dependency> <dependency> <groupId>batik</groupId> <artifactId>batik-ext</artifactId> <version>1.7</version> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-core</artifactId> <version>2.8.0</version> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-jcr-server</artifactId> <version>2.8.0</version> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-jcr-servlet</artifactId> <version>2.8.0</version> </dependency> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest-all</artifactId> <version>1.3</version> </dependency> <dependency> <groupId>net.serenity-bdd</groupId> <artifactId>serenity-jbehave</artifactId> <version>1.0.23</version> </dependency> <dependency> <groupId>net.serenity-bdd</groupId> <artifactId>serenity-core</artifactId> <version>1.0.58</version> </dependency> <dependency> <groupId>net.serenity-bdd</groupId> <artifactId>serenity-jira-requirements-provider</artifactId> <version>1.0.1</version> </dependency> <dependency> <groupId>net.serenity-bdd</groupId> <artifactId>serenity-junit</artifactId> <version>1.0.58</version> </dependency> <dependency> <groupId>net.serenity-bdd</groupId> <artifactId>serenity-jira-plugin</artifactId> <version>1.0.1</version> </dependency> <dependency> <groupId>org.hibernate.javax.persistence</groupId> <artifactId>hibernate-jpa-2.1-api</artifactId> <version>1.0.0.Final</version> </dependency> <dependency> <groupId>org.jbehave</groupId> <artifactId>jbehave-core</artifactId> <version>${jbehave.version}</version> </dependency> <dependency> <groupId>mondrian-data-foodmart-hsql</groupId> <artifactId>mondrian-data-foodmart-hsql</artifactId> <version>0.1</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>net.sourceforge.htmlcleaner</groupId> <artifactId>htmlcleaner</artifactId> <version>2.10</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>3.5.6-Final</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>4.3.5.Final</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-web</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-ldap</artifactId> <version>${spring.version}</version> </dependency> <!-- Batik/SVG --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-transcoder</artifactId> <version>1.7</version> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-codec</artifactId> <version>1.7</version> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-bridge</artifactId> <version>1.7</version> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-svg-dom</artifactId> <version>1.7</version> </dependency> <dependency> <groupId>iText</groupId> <artifactId>iText</artifactId> <version>4.2.0</version> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-ui</artifactId> <version>${project.version}</version> <type>war</type> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-olap-util</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.saiku</groupId> <artifactId>saiku-query</artifactId> <version>0.1-SNAPSHOT</version> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>mondrian</artifactId> <version>4.3.0.1-SPARK</version> </dependency> <!-- Spring modules --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-taglibs</artifactId> <version>${spring.security.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-orm</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-core</artifactId> <version>${jersey.version}</version> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-spring</artifactId> <version>${jersey.version}</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-servlet</artifactId> <version>${jersey.version}</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-client</artifactId> <version>${jersey.version}</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-server</artifactId> <version>${jersey.version}</version> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-multipart</artifactId> <version>${jersey.version}</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-json</artifactId> <version>${jersey.version}</version> </dependency> <dependency> <groupId>javax.ws.rs</groupId> <artifactId>jsr311-api</artifactId> <version>1.1.1</version> </dependency> <dependency> <groupId>com.sun.grizzly</groupId> <artifactId>grizzly-servlet-webserver</artifactId> <version>1.9.18-i</version> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.8.5</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.8.2</version> </dependency> <dependency> <groupId>cglib</groupId> <artifactId>cglib</artifactId> <version>2.2</version> </dependency> <dependency> <groupId>org.codehaus.jettison</groupId> <artifactId>jettison</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>1.8.0.10</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.17</version> </dependency> <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>commons-pool</groupId> <artifactId>commons-pool</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>commons-vfs</groupId> <artifactId>commons-vfs</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>commons-math</groupId> <artifactId>commons-math</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.2.1</version> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>cpf-core</artifactId> <version>5.2.0.2-84</version> <exclusions> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>cpf-pentaho5</artifactId> <version>5.2.0.2-84</version> <exclusions> <exclusion> <groupId>pentaho</groupId> <artifactId>pentaho-user-console-package</artifactId> </exclusion> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> <exclusion> <groupId>pentaho-kettle</groupId> <artifactId>kettle-ui-swt</artifactId> </exclusion> <exclusion> <groupId>pentaho</groupId> <artifactId>pentaho-platform-extensions</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>pentaho-platform-api</artifactId> <version>${pentaho.platform.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>pentaho-platform-core</artifactId> <version>${pentaho.platform.version}</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>gnujaxp</groupId> <artifactId>gnujaxp</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> </exclusion> <exclusion> <groupId>org.apache.xbean</groupId> <artifactId>xbean</artifactId> </exclusion> <exclusion> <groupId>adaptx</groupId> <artifactId>adaptx</artifactId> </exclusion> <exclusion> <groupId>org.jvnet.staxex</groupId> <artifactId>stax-ex</artifactId> </exclusion> <exclusion> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> </exclusion> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> <exclusion> <groupId>xml-apis</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <artifactId>secondstring</artifactId> <groupId>secondstring</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>pentaho-platform-extensions</artifactId> <version>${pentaho.platform.version}</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> </exclusion> <exclusion> <groupId>org.apache.xbean</groupId> <artifactId>xbean</artifactId> </exclusion> <exclusion> <groupId>adaptx</groupId> <artifactId>adaptx</artifactId> </exclusion> <exclusion> <groupId>org.jvnet.staxex</groupId> <artifactId>stax-ex</artifactId> </exclusion> <exclusion> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> </exclusion> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> <exclusion> <groupId>xml-apis</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <artifactId>secondstring</artifactId> <groupId>secondstring</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox-app</artifactId> <!-- <version>2.0.0-SNAPSHOT</version> --> <version>2.1.0-SNAPSHOT</version><!-- modify by liuyg --> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>cda</artifactId> <version>TRUNK-SNAPSHOT</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> <version>${spring.security.version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId> <version>${spring.security.version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> <version>${spring.security.version}</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.4</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.4</version> </dependency> <dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> <version>20020423</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.1</version> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>1.4.188</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> <version>4.3-alpha1</version> </dependency> <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-cli</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>org.apache.calcite</groupId> <artifactId>calcite-core</artifactId> <version>${calcite.version}</version> </dependency> <dependency> <groupId>org.apache.calcite</groupId> <artifactId>calcite-avatica</artifactId> <version>${calcite.version}</version> </dependency> <dependency> <groupId>org.apache.calcite</groupId> <artifactId>calcite-mongodb</artifactId> <version>${calcite.version}</version> </dependency> <dependency> <groupId>com.cenqua.clover</groupId> <artifactId>clover</artifactId> <version>3.3.0</version> </dependency> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-java-client-api</artifactId> <version>2.0.0-m31</version> </dependency> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-java-client-core</artifactId> <version>2.0.0-m31</version> </dependency> </dependencies> </dependencyManagement> </project> |
2、修改saiku-core中的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"> <parent> <artifactId>saiku</artifactId> <groupId>org.saikuanalytics</groupId> <version>3.8-RC5</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>saiku-core</artifactId> <packaging>pom</packaging> <name>saiku - core libraries</name> <version>3.8-RC5</version> <modules> <module>saiku-olap-util</module> <module>saiku-service</module> <module>saiku-web</module> </modules> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.4</version> <configuration> <formats> <format>html</format> <format>xml</format> </formats> </configuration> <executions> <execution> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> <!-- modify by liuyg <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>2.7</version> <configuration> <charset>UTF-8</charset> <docencoding>UTF-8</docencoding> <encoding>UTF-8</encoding> <verbose>false</verbose> <quiet>true</quiet> </configuration> <executions> <execution> <id>attach-javadocs</id> <phase>package</phase> <goals> <goal>javadoc</goal> </goals> </execution> </executions> </plugin> --> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> <version>2.1</version> <configuration> <aggregate>true</aggregate> </configuration> </plugin> <!-- Unit tests report --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.3</version> </plugin> <!-- "Release Audit" report (checks license headers etc.) --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>rat-maven-plugin</artifactId> <version>1.0-alpha-3</version> </plugin> <!-- FindBugs Report --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>2.5.3</version> <configuration> <threshold>Normal</threshold> <effort>Default</effort> </configuration> </plugin> <!-- Checkstyle report --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.12</version> <configuration> <!--configLocation>checkstyle.xml</configLocation--> <configLocation>../pentaho_checkStyle.xml</configLocation> <enableRulesSummary>false</enableRulesSummary> </configuration> </plugin> <!-- Project website generation --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.0-beta-7</version> <configuration> <outputEncoding>UTF-8</outputEncoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.8</version> </plugin> </plugins> </reporting> </project> |
3、修改saiku-core中saiku-service的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"> <parent> <artifactId>saiku-core</artifactId> <groupId>org.saikuanalytics</groupId> <version>3.8-RC5</version> </parent> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> <artifactId>saiku-service</artifactId> <version>3.8-RC5</version> <name>saiku - services</name> <build> <plugins> <!-- <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.4.0</version> <extensions>true</extensions> <configuration> <instructions> <Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName> <Bundle-Name>${pom.artifactId}</Bundle-Name> <Bundle-Version>1.0.0</Bundle-Version> <Private-Package>org.saiku</Private-Package> <Bundle-Activator>org.saiku.Activator</Bundle-Activator> <Import-Package> org.osgi.framework, *;resolution:=optional </Import-Package> </instructions> </configuration> </plugin>--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <!-- modify by liuyg <version>2.12.4</version> <configuration> <argLine>-Xmx512m</argLine> </configuration> --> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>process-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>mondrian-data-foodmart-hsql</groupId> <artifactId>mondrian-data-foodmart-hsql</artifactId> <version>0.1</version> <type>jar</type> <outputDirectory>target/</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.2</version> <executions> <execution> <id>test</id> <phase>process-resources</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <echo message="Prepare Test. Unzipping foodmart" /> <unzip dest="target/test-classes/"> <fileset dir="target/"> <include name="mondrian-data*.jar" /> </fileset> </unzip> <echo message="Unzipped!" /> <unzip dest="target/test/"> <fileset dir="${basedir}/../../util/"> <include name="foodmart_hsql.script.zip" /> </fileset> </unzip> <copy todir="target/test/foodmart/"> <fileset dir="${basedir}/../../util/"> <include name="FoodMart.xml" /> </fileset> </copy> <copy todir="target/test-classes/org/saiku/" overwrite="true"> <fileset dir="target/test/"> <include name="foodmart_hsql.script" /> </fileset> </copy> </tasks> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.3</version> <!-- set encoding to something not platform dependent --> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <!--<plugin> <groupId>net.thucydides.maven.plugins</groupId> <artifactId>maven-thucydides-plugin</artifactId> <version>0.9.229</version> <executions> <execution> <id>thucydides-reports</id> <phase>post-integration-test</phase> <goals> <goal>aggregate</goal> </goals> </execution> </executions> </plugin>--> </plugins> </build> <dependencies> <dependency> <groupId>org.saiku</groupId> <artifactId>saiku-query</artifactId> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-olap-util</artifactId> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </exclusion> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.olap4j</groupId> <artifactId>olap4j-xmlaserver</artifactId> <version>1.2.0</version> </dependency> <dependency> <groupId>org.olap4j</groupId> <artifactId>olap4j</artifactId> <exclusions> <exclusion> <groupId>asm</groupId> <artifactId>asm</artifactId> </exclusion> <exclusion> <groupId>asm</groupId> <artifactId>asm-commons</artifactId> </exclusion> <exclusion> <groupId>retroweaver</groupId> <artifactId>retroweaver</artifactId> </exclusion> <exclusion> <groupId>retroweaver</groupId> <artifactId>retroweaver-rt</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>mondrian</artifactId> <exclusions> <exclusion> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> </exclusion> <exclusion> <groupId>com.sun</groupId> <artifactId>rt-jdk1.5</artifactId> </exclusion> <exclusion> <groupId>net.java.openjdk</groupId> <artifactId>rt-java6</artifactId> </exclusion> <exclusion> <artifactId>validation-api</artifactId> <groupId>javax.validation</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> </dependency> <dependency> <groupId>org.jdom</groupId> <artifactId>jdom</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </dependency> <dependency> <groupId>javax.jcr</groupId> <artifactId>jcr</artifactId> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> </dependency> <dependency> <groupId>net.serenity-bdd</groupId> <artifactId>serenity-jbehave</artifactId> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-core</artifactId> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-api</artifactId> </dependency> <dependency> <groupId>commons-vfs</groupId> <artifactId>commons-vfs</artifactId> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-webdav</artifactId> </dependency> <dependency> <groupId>org.hibernate.javax.persistence</groupId> <artifactId>hibernate-jpa-2.1-api</artifactId> </dependency> <!--<dependency> <groupId>net.thucydides</groupId> <artifactId>thucydides-core</artifactId> </dependency>--> <dependency> <groupId>net.serenity-bdd</groupId> <artifactId>serenity-core</artifactId> </dependency> <dependency> <groupId>org.jbehave</groupId> <artifactId>jbehave-core</artifactId> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-jcr-server</artifactId> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> </dependency> <dependency> <groupId>hsqldb</groupId> <artifactId>hsqldb</artifactId> </dependency> <dependency> <groupId>com.cenqua.clover</groupId> <artifactId>clover</artifactId> <scope>compile</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </dependency> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest-all</artifactId> <scope>test</scope> </dependency> <!--<dependency> <groupId>net.thucydides</groupId> <artifactId>thucydides-jbehave-plugin</artifactId> <scope>test</scope> </dependency>--> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> </dependency> <dependency> <groupId>org.apache.jackrabbit</groupId> <artifactId>jackrabbit-jcr-commons</artifactId> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> </dependency> <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> </dependency> <dependency> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> </dependency> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.osgi.core</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> </dependency> </dependencies> </project> |
4、修改saiku-webapp下的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"> <parent> <artifactId>saiku</artifactId> <groupId>org.saikuanalytics</groupId> <version>3.8-RC5</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>saiku-webapp</artifactId> <version>3.8-RC5</version> <name>saiku - webapp</name> <packaging>war</packaging> <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.3.7</version> <extensions>true</extensions> <configuration> <supportedProjectTypes> <supportedProjectType>war</supportedProjectType> </supportedProjectTypes> <manifestLocation>./src/main/webapp/META-INF</manifestLocation> <instructions> <_wab>src/main/webapp</_wab> <Export-Package>org.saiku</Export-Package> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Bundle-ClassPath>.,WEB-INF/classes,{maven-dependencies}</Bundle-ClassPath> <Embed-Directory>WEB-INF/lib</Embed-Directory> <Embed-Dependency>*;scope=compile|runtime;</Embed-Dependency> <Embed-Transitive>true</Embed-Transitive> <Web-ContextPath>/saiku</Web-ContextPath> <Webapp-Context /> </instructions> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>package</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-web</artifactId> <version>${project.version}</version> <type>jar</type> <classifier>sources</classifier> <outputDirectory>target/saiku-webapp-3.0.1-SNAPSHOT/WEB-INF/lib/</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <executions> <execution> <!-- First step is to disable the default-war build step. --> <id>default-war</id> <phase>none</phase> </execution> <execution> <!-- Second step is to create an exploded war. Done in prepare-package --> <id>war-exploded</id> <phase>prepare-package</phase> <goals> <goal>exploded</goal> </goals> </execution> <execution> <!-- Last step is to make sure that the war is built in the package phase --> <id>custom-war</id> <phase>package</phase> <goals> <goal>war</goal> </goals> </execution> </executions> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> </configuration> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.7</version> <executions> <execution> <id>copy-resources</id> <!-- here the phase you need --> <phase>prepare-package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${basedir}/target/saiku-webapp-${project.version}/WEB-INF</outputDirectory> <resources> <resource> <directory>src/main/webapp/WEB-INF</directory> <filtering>true</filtering> <includes> <include>saiku-beans.xml</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>deploy-ui</id> <phase>prepare-package</phase> <configuration> <tasks> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.3</version> <executions> <execution> <id>surefire-it</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>false</skip> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.10</version> </plugin> <plugin> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <configuration> <warSourceExcludes>WEB-INF/saiku-beans.xml</warSourceExcludes> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.jasig.cas.client</groupId> <artifactId>cas-client-integration-tomcat-common</artifactId> </dependency> <dependency> <groupId>org.jasig.cas.client</groupId> <artifactId>cas-client-integration-tomcat-v7</artifactId> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-cas</artifactId> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-taglibs</artifactId> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-service</artifactId> </dependency> <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> </dependency> <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-cli</artifactId> </dependency> <dependency><!-- add by liuyg --> <groupId>org.apache.calcite</groupId> <artifactId>calcite-core</artifactId> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-web</artifactId> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-olap-util</artifactId> </dependency> <dependency> <groupId>org.saiku</groupId> <artifactId>saiku-query</artifactId> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-spring</artifactId> <version>${jersey.version}</version> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-multipart</artifactId> </dependency> <!--<dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-json</artifactId> </dependency>--> <dependency> <groupId>org.jvnet.mimepull</groupId> <artifactId>mimepull</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> </dependency> <dependency> <groupId>hsqldb</groupId> <artifactId>hsqldb</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <dependency> <groupId>commons-math</groupId> <artifactId>commons-math</artifactId> </dependency> <dependency> <groupId>net.sourceforge.jtds</groupId> <artifactId>jtds</artifactId> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> </dependency> <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-common</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> </dependency> <dependency> <groupId>org.springframework.ldap</groupId> <artifactId>spring-ldap-core</artifactId> <version>2.0.4.RELEASE</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-ldap</artifactId> <version>4.0.1.RELEASE</version> </dependency> </dependencies> <reporting> <plugins> <!-- Produce Source cross references --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> <version>2.1</version> <configuration> <aggregate>true</aggregate> </configuration> </plugin> <!-- Unit tests report --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.3</version> </plugin> <!-- "Release Audit" report (checks license headers etc.) --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>rat-maven-plugin</artifactId> <version>1.0-alpha-3</version> </plugin> <!-- FindBugs Report --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>1.0.0</version> <configuration> <threshold>Normal</threshold> <effort>Default</effort> </configuration> </plugin> <!-- Checkstyle report --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.1</version> <configuration> <!--configLocation>checkstyle.xml</configLocation --> <enableRulesSummary>false</enableRulesSummary> </configuration> </plugin> <!-- Project website generation --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.0-beta-7</version> <configuration> <outputEncoding>UTF-8</outputEncoding> </configuration> </plugin> </plugins> </reporting> </project> |
5、修改saiku-ui中的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> <parent> <artifactId>saiku</artifactId> <groupId>org.saikuanalytics</groupId> <version>3.8-RC5</version> </parent> <artifactId>saiku-ui</artifactId> <packaging>pom</packaging> <version>3.8-RC5</version> <properties> <checkstyle.skip>true</checkstyle.skip> <build.prod>false</build.prod> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>com.samaxes.maven</groupId> <artifactId>minify-maven-plugin</artifactId> <version>1.7.4-modify</version> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>com.samaxes.maven</groupId> <artifactId>minify-maven-plugin</artifactId> <version>1.7.4-modify</version> <executions> <execution> <id>default-minify</id> <configuration> <closureExterns> <closureExtern>../externs/backbone_externs.js</closureExtern> <closureExtern>../externs/jquery_externs.js</closureExtern> <closureExtern>../externs/underscore_externs.js</closureExtern> </closureExterns> <closureUseDefaultExterns>true</closureUseDefaultExterns> <closureSortDependencies>false</closureSortDependencies> <jsEngine>CLOSURE</jsEngine> <closureLanguage>ECMASCRIPT5</closureLanguage> <jsFinalFile>saiku.js</jsFinalFile> <webappSourceDir>${basedir}/js/saiku/</webappSourceDir> <jsSourceDir>.</jsSourceDir> <jsSourceIncludes> <jsSourceInclude>models/SaikuOlapQuery.js</jsSourceInclude> <jsSourceInclude>models/DateFilter.js</jsSourceInclude> <jsSourceInclude>models/Level.js</jsSourceInclude> <jsSourceInclude>render/SaikuRenderer.js</jsSourceInclude> <jsSourceInclude>render/SaikuTableRenderer.js</jsSourceInclude> <jsSourceInclude>render/SaikuChartRenderer.js</jsSourceInclude> <jsSourceInclude>models/DataSources.js</jsSourceInclude> <jsSourceInclude>models/Dimension.js</jsSourceInclude> <jsSourceInclude>views/DimensionList.js</jsSourceInclude> <jsSourceInclude>views/Toolbar.js</jsSourceInclude> <jsSourceInclude>views/Upgrade.js</jsSourceInclude> <jsSourceInclude>views/Modal.js</jsSourceInclude> <jsSourceInclude>views/MDXModal.js</jsSourceInclude> <jsSourceInclude>views/SelectionsModal.js</jsSourceInclude> <jsSourceInclude>views/DrillthroughModal.js</jsSourceInclude> <jsSourceInclude>views/DrillAcrossModal.js</jsSourceInclude> <jsSourceInclude>views/PermissionsModal.js</jsSourceInclude> <jsSourceInclude>views/DemoLoginForm.js</jsSourceInclude> <jsSourceInclude>views/LoginForm.js</jsSourceInclude> <jsSourceInclude>views/AboutModal.js</jsSourceInclude> <jsSourceInclude>views/OverwriteModal.js</jsSourceInclude> <jsSourceInclude>views/AddFolderModal.js</jsSourceInclude> <jsSourceInclude>views/FilterModal.js</jsSourceInclude> <jsSourceInclude>views/StringFilterModal.js</jsSourceInclude> <jsSourceInclude>views/CustomFilterModal.js</jsSourceInclude> <jsSourceInclude>views/CalculatedMemberModal.js</jsSourceInclude> <jsSourceInclude>views/GrowthModal.js</jsSourceInclude> <jsSourceInclude>views/FormatAsPercentageModal.js</jsSourceInclude> <jsSourceInclude>views/ParentMemberSelectorModal.js</jsSourceInclude> <jsSourceInclude>views/DataSourcesModal.js</jsSourceInclude> <jsSourceInclude>views/QueryToolbar.js</jsSourceInclude> <jsSourceInclude>views/WorkspaceToolbar.js</jsSourceInclude> <jsSourceInclude>views/WorkspaceDropZone.js</jsSourceInclude> <jsSourceInclude>views/Table.js</jsSourceInclude> <jsSourceInclude>views/Workspace.js</jsSourceInclude> <jsSourceInclude>views/DeleteRepositoryObject.js</jsSourceInclude> <jsSourceInclude>views/MoveRepositoryObject.js</jsSourceInclude> <jsSourceInclude>views/OpenQuery.js</jsSourceInclude> <jsSourceInclude>views/SaveQuery.js</jsSourceInclude> <jsSourceInclude>views/OpenDialog.js</jsSourceInclude> <jsSourceInclude>views/Tab.js</jsSourceInclude> <jsSourceInclude>views/TabSet.js</jsSourceInclude> <jsSourceInclude>models/Repository.js</jsSourceInclude> <jsSourceInclude>models/Result.js</jsSourceInclude> <jsSourceInclude>models/QueryAction.js</jsSourceInclude> <jsSourceInclude>models/QueryScenario.js</jsSourceInclude> <jsSourceInclude>models/Query.js</jsSourceInclude> <jsSourceInclude>models/Session.js</jsSourceInclude> <jsSourceInclude>views/SessionErrorModal.js</jsSourceInclude> <jsSourceInclude>views/SplashScreen.js</jsSourceInclude> <jsSourceInclude>models/SessionWorkspace.js</jsSourceInclude> <jsSourceInclude>models/Member.js</jsSourceInclude> <jsSourceInclude>models/Plugin.js</jsSourceInclude> <jsSourceInclude>models/Settings.js</jsSourceInclude> <jsSourceInclude>models/License.js</jsSourceInclude> <jsSourceInclude>Saiku.js</jsSourceInclude> <jsSourceInclude>views/DateFilterModal.js</jsSourceInclude> <jsSourceInclude>views/WarningModal.js</jsSourceInclude> <jsSourceInclude>views/TitlesModal.js</jsSourceInclude> <jsSourceInclude>adapters/SaikuServer.js</jsSourceInclude> <jsSourceInclude>routers/QueryRouter.js</jsSourceInclude> <jsSourceInclude>views/Tour.js</jsSourceInclude> </jsSourceIncludes> <jsSourceExcludes> <jsSourceExclude>Settings.js</jsSourceExclude> <jsSourceExclude>**/plugins/**/*.js</jsSourceExclude> </jsSourceExcludes> </configuration> <goals> <goal>minify</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.7</version> <executions> <execution> <id>copy-resources</id> <phase>validate</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${basedir}/target/saiku-ui/js/saiku</outputDirectory> <resources> <resource> <directory>js/saiku</directory> <filtering>true</filtering> <includes> <include>Settings.js</include> </includes> </resource> </resources> </configuration> </execution> <execution> <id>copy-resources2</id> <phase>validate</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${basedir}/target/saiku-ui2/js/saiku</outputDirectory> <resources> <resource> <directory>js/saiku</directory> <filtering>true</filtering> <includes> <include>Settings.js</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.2</version> <dependencies> <dependency> <groupId>ant-contrib</groupId> <artifactId>ant-contrib</artifactId> <version>1.0b3</version> <exclusions> <exclusion> <groupId>ant</groupId> <artifactId>ant</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-nodeps</artifactId> <version>1.8.1</version> </dependency> </dependencies> <executions> <execution> <id>copy-package</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <mkdir dir="target/saiku-ui" /> <mkdir dir="target/saiku-ui2" /> <copy file="target/saiku-ui-${project.version}/saiku.min.js" tofile="target/saiku-ui/saiku.min.js" /> <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" /> <!--<if> <equals arg1="${build.prod}" arg2="true" /> <then>--> <copy todir="target/saiku-ui"> <fileset dir="${basedir}/"> <exclude name="js/saiku/" /> <exclude name="target/" /> <exclude name="pom.xml" /> <exclude name=".git/" /> <exclude name=".gitignore" /> <exclude name="utils/" /> </fileset> <fileset dir="${basedir}/"> <include name="js/saiku/plugins/" /> <include name="js/saiku/Settings.js" /> <include name="js/saiku/Saiku.js" /> <include name="js/saiku/embed/" /> <include name="js/saiku/render/" /> </fileset> </copy> <replaceregexp match="<!-- CUT HERE -->(.*)<!-- END CUT HERE -->" replace="<script type='text/javascript' src='saiku.min.js'><\/script>" flags="gs" byline="false"> <fileset dir="target/saiku-ui/" includes="index.html" /> </replaceregexp> <copy todir="target/saiku-ui2"> <fileset dir="${basedir}/"> <exclude name="target/" /> <exclude name="pom.xml" /> <exclude name=".git/" /> <exclude name=".gitignore" /> <exclude name="utils/" /> </fileset> <fileset dir="${basedir}/"> <include name="js/saiku/plugins/" /> <include name="js/saiku/Settings.js" /> <include name="js/saiku/Saiku.js" /> </fileset> </copy> <zip destfile="target/saiku-ui-nomunge-${project.version}.war"> <zipfileset dir="target/saiku-ui2/" /> </zip> <zip destfile="target/saiku-ui-${project.version}.zip"> <zipfileset dir="target/saiku-ui/" /> </zip> <zip destfile="target/saiku-ui-${project.version}.war"> <zipfileset dir="target/saiku-ui/" /> </zip> </tasks> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.7</version> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts> <artifact> <file>target/saiku-ui-${project.version}.war</file> <type>war</type> </artifact> <artifact> <file>target/saiku-ui-nomunge-${project.version}.war</file> <classifier>nomin</classifier> <type>war</type> </artifact> <artifact> <file>target/saiku-ui-${project.version}.zip</file> <type>zip</type> </artifact> </artifacts> </configuration> </execution> </executions> </plugin> </plugins> </build> <repositories> <!--modify by liuyg <repository> <id>jsdoctk1</id> </repository> --> <repository> <id>mine</id> <name>public Releases</name> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>mine</id> <name>public Releases</name> </pluginRepository><!-- add by liuyg --> <!-- <pluginRepository> <id>jsdoctk2</id> </pluginRepository> <pluginRepository> <name>oss.sonatype.org</name> <id>oss.sonatype.org</id> </pluginRepository> --> </pluginRepositories> </project> |
6、修改“saiku-bi-platform-plugin-p5“ 中pom.xml文件
<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"> <parent> <artifactId>saiku</artifactId> <groupId>org.saikuanalytics</groupId> <version>3.8-RC5</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>saiku-bi-platform-plugin-p5</artifactId> <packaging>jar</packaging> <version>3.8-RC5</version> <name>saiku biserver plugin</name> <build> <resources> <resource> <directory>src/main/plugin</directory> <targetPath>${basedir}/target/dist/saiku</targetPath> <filtering>true</filtering> <includes> <include>**/*.xml</include> <include>**/*.js</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>package</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.mozilla</groupId> <artifactId>rhino</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-ui</artifactId> <type>war</type> <outputDirectory>target/stage</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-web</artifactId> <type>jar</type> <classifier>sources</classifier> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-service</artifactId> <type>jar</type> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-web</artifactId> <type>jar</type> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-olap-util</artifactId> <type>jar</type> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saiku</groupId> <artifactId>saiku-query</artifactId> <type>jar</type> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.jvnet.mimepull</groupId> <artifactId>mimepull</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>pentaho</groupId> <artifactId>mondrian</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <!--<artifactItem> <groupId>org.olap4j</groupId> <artifactId>olap4j-xmla</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.olap4j</groupId> <artifactId>olap4j</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem>--> <artifactItem> <groupId>eigenbase</groupId> <artifactId>eigenbase-properties</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>eigenbase</groupId> <artifactId>eigenbase-resgen</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>eigenbase</groupId> <artifactId>eigenbase-xom</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.jdom</groupId> <artifactId>jdom</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>pentaho</groupId> <artifactId>cda</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>pentaho</groupId> <artifactId>cpf-core</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>pentaho</groupId> <artifactId>cpf-pentaho5</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <!-- Batik/SVG --> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-transcoder</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-codec</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <!--<artifactItem> <groupId>batik</groupId> <artifactId>batik-ext</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem>--> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-svg-dom</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-bridge</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-base</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-script</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <!--<artifactItem> <groupId>avalon-framework</groupId> <artifactId>avalon-framework</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem>--> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>xmlgraphics-commons</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>iText</groupId> <artifactId>iText</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.mozilla</groupId> <artifactId>rhino</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox-app</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>fop</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>net.sourceforge.htmlcleaner</groupId> <artifactId>htmlcleaner</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.2</version> <dependencies> <dependency> <groupId>ant-contrib</groupId> <artifactId>ant-contrib</artifactId> <version>1.0b3</version> <exclusions> <exclusion> <groupId>ant</groupId> <artifactId>ant</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-nodeps</artifactId> <version>1.8.1</version> </dependency> </dependencies> <executions> <execution> <id>copy-package</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <unzip dest="target/dist/saiku/ui/"> <fileset dir="target/stage/"> <include name="saiku-ui-${project.version}.war" /> </fileset> </unzip> <copy file="${basedir}/target/${project.artifactId}-${project.version}.jar" todir="target/dist/saiku/lib" /> <copy todir="target/dist/saiku/" overwrite="true"> <fileset dir="${basedir}/src/main/plugin/"> <include name="**/*.xml" /> <exclude name="**/version.xml" /> </fileset> </copy> <mkdir dir="target/dist/saiku/saiku-repository" /> <copy todir="target/dist/saiku/ui/" overwrite="true"> <fileset dir="${basedir}/src/main/plugin/"> <include name="*.properties" /> </fileset> </copy> <replaceregexp match="(REPOSITORY_LAZY: false,)" replace="REPOSITORY_LAZY: true," flags="gs" byline="false"> <fileset dir="target/dist/saiku/ui/js/saiku/" includes="Settings.js" /> </replaceregexp> <replaceregexp match="(<!-- Saiku plugins -->)" replace=" <script type='text/javascript' src='js/saiku/plugins/Statistics/plugin.js' defer></script>
 <script type='text/javascript' src='js/saiku/plugins/BIServer/plugin.js' defer></script>
 <script type='text/javascript' src='js/saiku/plugins/CCC_Chart/plugin.js'></script>
 <script type='text/javascript' src='js/saiku/plugins/Fullscreen/plugin.js' defer></script> " flags="gs" byline="false"> <fileset dir="target/dist/saiku/ui/" includes="index.html" /> </replaceregexp> <zip destfile="target/saiku-plugin-p5-${project.version}.zip"> <zipfileset dir="target/dist/" /> </zip> </tasks> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.3</version> <!-- set encoding to something not platform dependent --> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <!-- modify by liuyg <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.1</version> <executions> <execution> <id>attach-javadocs</id> Restrict execution of source compilation to install <phase>install</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> --> </plugins> </build> <repositories> <!-- add by liuyg <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>apache</id> <name>Apache repo</name> <layout>default</layout> <snapshots><enabled>true</enabled></snapshots> </repository> --> <repository> <id>mine</id> <name>public Releases</name> <layout>default</layout> </repository> <repository> <id>mine-meteorite-bi-release</id> <name>public Releases</name> <layout>default</layout> </repository> <repository> <id>central</id> <name>Maven Repository Switchboard</name> <layout>default</layout> <url>http://repo1.maven.org/maven2</url> <!-- <snapshots> modify by liuyg <enabled>false</enabled> </snapshots> --> </repository> </repositories> <dependencies> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-service</artifactId> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-web</artifactId> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-olap-util</artifactId> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>cpf-core</artifactId> <exclusions> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>cpf-pentaho5</artifactId> <exclusions> <exclusion> <groupId>pentaho</groupId> <artifactId>pentaho-user-console-package</artifactId> </exclusion> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> <exclusion> <groupId>pentaho-kettle</groupId> <artifactId>kettle-ui-swt</artifactId> </exclusion> <exclusion> <groupId>pentaho</groupId> <artifactId>pentaho-platform-extensions</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> </dependency> <!-- <dependency> <groupId>pentaho</groupId> <artifactId>cda</artifactId> <version>TRUNK-SNAPSHOT</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libloader</artifactId> <version>${pentaho.platform.version}</version> </dependency> --> <dependency> <groupId>pentaho</groupId> <artifactId>mondrian</artifactId> <version>3.6.7</version> </dependency> <dependency> <groupId>eigenbase</groupId> <artifactId>eigenbase-properties</artifactId> </dependency> <dependency> <groupId>eigenbase</groupId> <artifactId>eigenbase-resgen</artifactId> </dependency> <dependency> <groupId>eigenbase</groupId> <artifactId>eigenbase-xom</artifactId> </dependency> <dependency> <groupId>org.olap4j</groupId> <artifactId>olap4j-xmla</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>pentaho-platform-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>pentaho-platform-core</artifactId> <scope>provided</scope> <exclusions> <exclusion> <groupId>gnujaxp</groupId> <artifactId>gnujaxp</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> </exclusion> <exclusion> <groupId>org.apache.xbean</groupId> <artifactId>xbean</artifactId> </exclusion> <exclusion> <groupId>adaptx</groupId> <artifactId>adaptx</artifactId> </exclusion> <exclusion> <groupId>org.jvnet.staxex</groupId> <artifactId>stax-ex</artifactId> </exclusion> <exclusion> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> </exclusion> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> <exclusion> <groupId>xml-apis</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <artifactId>secondstring</artifactId> <groupId>secondstring</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>pentaho-platform-extensions</artifactId> <scope>provided</scope> <exclusions> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> </exclusion> <exclusion> <groupId>org.apache.xbean</groupId> <artifactId>xbean</artifactId> </exclusion> <exclusion> <groupId>adaptx</groupId> <artifactId>adaptx</artifactId> </exclusion> <exclusion> <groupId>org.jvnet.staxex</groupId> <artifactId>stax-ex</artifactId> </exclusion> <exclusion> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> </exclusion> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> <exclusion> <groupId>xml-apis</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <artifactId>secondstring</artifactId> <groupId>secondstring</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-core</artifactId> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-server</artifactId> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-multipart</artifactId> </dependency> <dependency> <groupId>org.jvnet.mimepull</groupId> <artifactId>mimepull</artifactId> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-servlet</artifactId> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-spring</artifactId> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-base</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-client</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> <version>2.0.5.RELEASE</version> </dependency> <!-- Batik/SVG --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-transcoder</artifactId> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-codec</artifactId> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency> <!-- <dependency> <groupId>batik</groupId> <artifactId>batik-ext</artifactId> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency>--> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-svg-dom</artifactId> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-bridge</artifactId> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-script</artifactId> <version>1.7</version> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>xmlgraphics-commons</artifactId> </dependency> <dependency> <groupId>iText</groupId> <artifactId>iText</artifactId> </dependency> <dependency> <groupId>org.mozilla</groupId> <artifactId>rhino</artifactId> </dependency> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox-app</artifactId> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>fop</artifactId> </dependency> <dependency> <groupId>net.sourceforge.htmlcleaner</groupId> <artifactId>htmlcleaner</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency> <dependency> <groupId>com.orientechnologies</groupId> <artifactId>orientdb-core</artifactId> <version>1.3.0</version> </dependency> </dependencies> </project> |
7、修改“saiku-bi-platform-plugin-p6”中的pom.xml文件
<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"> <parent> <artifactId>saiku</artifactId> <groupId>org.saikuanalytics</groupId> <version>3.8-RC5</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>saiku-bi-platform-plugin-p6</artifactId> <packaging>jar</packaging> <version>3.8-RC5</version> <name>saiku biserver plugin</name> <build> <resources> <resource> <directory>src/main/plugin</directory> <targetPath>${basedir}/../saiku-bi-platform-plugin-p5/target/dist/saiku</targetPath> <filtering>true</filtering> <includes> <include>**/*.xml</include> <include>**/*.js</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>package</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.mozilla</groupId> <artifactId>rhino</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-ui</artifactId> <type>war</type> <outputDirectory>target/stage</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-web</artifactId> <type>jar</type> <classifier>sources</classifier> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-service</artifactId> <type>jar</type> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-bi-platform-plugin-p5</artifactId> <type>jar</type> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-web</artifactId> <type>jar</type> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-olap-util</artifactId> <type>jar</type> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.saiku</groupId> <artifactId>saiku-query</artifactId> <type>jar</type> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>eigenbase</groupId> <artifactId>eigenbase-properties</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>eigenbase</groupId> <artifactId>eigenbase-resgen</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>eigenbase</groupId> <artifactId>eigenbase-xom</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>pentaho</groupId> <artifactId>mondrian</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.jvnet.mimepull</groupId> <artifactId>mimepull</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.jdom</groupId> <artifactId>jdom</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>pentaho</groupId> <artifactId>cda</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>pentaho</groupId> <artifactId>cpf-core</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>pentaho</groupId> <artifactId>cpf-pentaho5</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <!-- Batik/SVG --> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-transcoder</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-codec</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <!--<artifactItem> <groupId>batik</groupId> <artifactId>batik-ext</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem>--> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-svg-dom</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-bridge</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-base</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-script</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <!--<artifactItem> <groupId>avalon-framework</groupId> <artifactId>avalon-framework</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem>--> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>xmlgraphics-commons</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>iText</groupId> <artifactId>iText</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.mozilla</groupId> <artifactId>rhino</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox-app</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>org.apache.xmlgraphics</groupId> <artifactId>fop</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> <artifactItem> <groupId>net.sourceforge.htmlcleaner</groupId> <artifactId>htmlcleaner</artifactId> <outputDirectory>target/dist/saiku/lib</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.2</version> <dependencies> <dependency> <groupId>ant-contrib</groupId> <artifactId>ant-contrib</artifactId> <version>1.0b3</version> <exclusions> <exclusion> <groupId>ant</groupId> <artifactId>ant</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-nodeps</artifactId> <version>1.8.1</version> </dependency> </dependencies> <executions> <execution> <id>copy-package</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <unzip dest="target/dist/saiku/ui/"> <fileset dir="target/stage/"> <include name="saiku-ui-${project.version}.war" /> </fileset> </unzip> <copy file="${basedir}/target/${project.artifactId}-${project.version}.jar" todir="target/dist/saiku/lib" /> <copy todir="target/dist/saiku/" overwrite="true"> <fileset dir="${basedir}/../saiku-bi-platform-plugin-p5/src/main/plugin/"> <include name="**/*.xml" /> <exclude name="**/version.xml" /> </fileset> </copy> <mkdir dir="target/dist/saiku/saiku-repository" /> <copy todir="target/dist/saiku/ui/" overwrite="true"> <fileset dir="${basedir}/../saiku-bi-platform-plugin-p5/src/main/plugin/"> <include name="*.properties" /> </fileset> </copy> <replaceregexp match="(<!-- Saiku plugins -->)" replace=" <script type='text/javascript' src='js/saiku/plugins/Statistics/plugin.js' defer></script>
 <script type='text/javascript' src='js/saiku/plugins/BIServer/plugin.js' defer></script>
 <script type='text/javascript' src='js/saiku/plugins/CCC_Chart/plugin.js'></script>
 <script type='text/javascript' src='js/saiku/plugins/Fullscreen/plugin.js' defer></script> " flags="gs" byline="false"> <fileset dir="target/dist/saiku/ui/" includes="index.html" /> </replaceregexp> <replaceregexp match="(REPOSITORY_LAZY: false,)" replace="REPOSITORY_LAZY: true," flags="gs" byline="false"> <fileset dir="target/dist/saiku/ui/js/saiku/" includes="Settings.js" /> </replaceregexp> <zip destfile="target/saiku-plugin-p6-${project.version}.zip"> <zipfileset dir="target/dist/" /> </zip> </tasks> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.3</version> <!-- set encoding to something not platform dependent --> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.1</version> <executions> <execution> <id>attach-javadocs</id> <!-- Restrict execution of source compilation to install --> <phase>install</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <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>mine</id> <name>public Releases</name> <layout>default</layout> </repository> <repository> <id>mine-meteorite-bi-release</id> <name>public Releases</name> <layout>default</layout> </repository> <repository> <id>central</id> <name>Maven Repository Switchboard</name> <layout>default</layout> <url>http://repo1.maven.org/maven2</url> <!-- <snapshots> modify by liuyg <enabled>false</enabled> </snapshots> --> </repository> <!-- <repository> <id>apache</id> <name>Apache repo</name> <layout>default</layout> <snapshots><enabled>true</enabled></snapshots> </repository> --> </repositories> <dependencies> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-bi-platform-plugin-p5</artifactId> <version>${pom.version}</version> <exclusions> <exclusion> <groupId>pentaho</groupId> <artifactId>mondrian</artifactId> </exclusion> <exclusion> <groupId>eigenbase</groupId> <artifactId>eigenbase-properties</artifactId> </exclusion> <exclusion> <groupId>eigenbase</groupId> <artifactId>eigenbase-resgen</artifactId> </exclusion> <exclusion> <groupId>eigenbase</groupId> <artifactId>eigenbase-xom</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-service</artifactId> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-web</artifactId> </dependency> <dependency> <groupId>org.saikuanalytics</groupId> <artifactId>saiku-olap-util</artifactId> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>cpf-core</artifactId> <exclusions> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> </exclusions> <version>6.0.0.0-353</version> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>cpf-pentaho5</artifactId> <exclusions> <exclusion> <groupId>pentaho</groupId> <artifactId>pentaho-user-console-package</artifactId> </exclusion> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> <exclusion> <groupId>pentaho-kettle</groupId> <artifactId>kettle-ui-swt</artifactId> </exclusion> <exclusion> <groupId>pentaho</groupId> <artifactId>pentaho-platform-extensions</artifactId> </exclusion> </exclusions> <version>6.0.0.0-353</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> </dependency> <!-- <dependency> <groupId>pentaho</groupId> <artifactId>cda</artifactId> <version>TRUNK-SNAPSHOT</version> </dependency> <dependency> <groupId>pentaho-library</groupId> <artifactId>libloader</artifactId> <version>${pentaho.platform.version}</version> </dependency> --> <!-- <dependency> <groupId>pentaho</groupId> <artifactId>mondrian</artifactId> <version>3.6.7</version> </dependency> <dependency> <groupId>eigenbase</groupId> <artifactId>eigenbase-properties</artifactId> </dependency> <dependency> <groupId>eigenbase</groupId> <artifactId>eigenbase-resgen</artifactId> </dependency> <dependency> <groupId>eigenbase</groupId> <artifactId>eigenbase-xom</artifactId> </dependency>--> <dependency> <groupId>org.olap4j</groupId> <artifactId>olap4j-xmla</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>pentaho-platform-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>pentaho-platform-core</artifactId> <scope>provided</scope> <exclusions> <exclusion> <groupId>gnujaxp</groupId> <artifactId>gnujaxp</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> </exclusion> <exclusion> <groupId>org.apache.xbean</groupId> <artifactId>xbean</artifactId> </exclusion> <exclusion> <groupId>adaptx</groupId> <artifactId>adaptx</artifactId> </exclusion> <exclusion> <groupId>org.jvnet.staxex</groupId> <artifactId>stax-ex</artifactId> </exclusion> <exclusion> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> </exclusion> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> <exclusion> <groupId>xml-apis</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <artifactId>secondstring</artifactId> <groupId>secondstring</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>pentaho</groupId> <artifactId>pentaho-platform-extensions</artifactId> <scope>provided</scope> <exclusions> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> </exclusion> <exclusion> <groupId>org.apache.xbean</groupId> <artifactId>xbean</artifactId> </exclusion> <exclusion> <groupId>adaptx</groupId> <artifactId>adaptx</artifactId> </exclusion> <exclusion> <groupId>org.jvnet.staxex</groupId> <artifactId>stax-ex</artifactId> </exclusion> <exclusion> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifactId> </exclusion> <exclusion> <groupId>janino</groupId> <artifactId>janino</artifactId> </exclusion> <exclusion> <groupId>xml-apis</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xmlParserAPIs</artifactId> </exclusion> <exclusion> <artifactId>secondstring</artifactId> <groupId>secondstring</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-core</artifactId> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-server</artifactId> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-multipart</artifactId> </dependency> <dependency> <groupId>org.jvnet.mimepull</groupId> <artifactId>mimepull</artifactId> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-servlet</artifactId> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-spring</artifactId> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-base</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-client</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> <version>2.0.5.RELEASE</version> </dependency> <!-- Batik/SVG --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-transcoder</artifactId> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-codec</artifactId> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency> <!-- <dependency> <groupId>batik</groupId> <artifactId>batik-ext</artifactId> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency>--> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-svg-dom</artifactId> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-bridge</artifactId> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-script</artifactId> <version>1.7</version> <exclusions> <exclusion> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>xmlgraphics-commons</artifactId> </dependency> <dependency> <groupId>iText</groupId> <artifactId>iText</artifactId> </dependency> <dependency> <groupId>org.mozilla</groupId> <artifactId>rhino</artifactId> </dependency> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox-app</artifactId> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>fop</artifactId> </dependency> <dependency> <groupId>net.sourceforge.htmlcleaner</groupId> <artifactId>htmlcleaner</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency> <dependency> <groupId>com.orientechnologies</groupId> <artifactId>orientdb-core</artifactId> <version>1.3.0</version> </dependency> <!-- <dependency> <groupId>pentaho</groupId> <artifactId>mondrian</artifactId> <version>3.11.0.0-353</version> </dependency> --> <dependency> <groupId>pentaho</groupId> <artifactId>mondrian</artifactId> <version>3.11.0.0-353</version> <exclusions><!-- add by liuyg --> <exclusion> <artifactId>commons-vfs2</artifactId> <groupId>org.apache.commons</groupId> </exclusion> </exclusions> </dependency> <dependency><!-- add by liuyg --> <groupId>org.apache.commons</groupId> <artifactId>commons-vfs2</artifactId> <version>2.0</version> </dependency> </dependencies> </project> |
8、如果nexus仓库没问题,那么修改过如上步奏后,就可以完成构建了
by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(防止爬虫):http://blog.liuyingguang.cn
OpenBI问答社区:http://openbi.liuyingguang.cn/