参考关于0.1版本的构建过程:http://blog.liuyingguang.cn/blog/post/lightingfire/build-%E5%B9%B6deploy-saiku-query0.1%E5%88%B0nexus
修改pom文件
其中,红色的为原有被注释的
绿色的为添加的
蓝色地方比较重要,在saiku-query的0.4版本中,居然依赖了0.1的版本,但是源码中却没有相关0.1的分支或者标签,所以此处可以注释,打包也成功了,但是是否存在不稳定或者不全的现象,尚未可知
修改后如下:
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.saiku</groupId>
<artifactId>saiku-query</artifactId>
<version>0.4-SNAPSHOT</version>
<packaging>jar</packaging>
<name>query</name>
<url>http://maven.apache.org</url>
<!-- <distributionManagement>
<repository>
<id>deployment</id>
<name>Internal Releases</name>
<url>http://repo.meteorite.bi/content/repositories/alabs-release-local/</url>
</repository>
<snapshotRepository>
<id>deployment</id>
<name>Internal Snapshots</name>
<url>http://repo.meteorite.bi/content/repositories/alabs-snapshot-local/</url>
</snapshotRepository>
</distributionManagement> -->
<distributionManagement>
<snapshotRepository>
<id>snapshots-host</id>
<url>http://192.168.10.140:8081/nexus/content/repositories/snapshots-host/</url>
</snapshotRepository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</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-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<argLine> -Xmx512m</argLine>
</configuration>
</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="lib/">
<include name="mondrian-data*.jar" />
</fileset>
</unzip>
<echo message="Unzipped!" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>mine</id>
<name>public Releases</name>
<url>http://192.168.10.140:8081/nexus/content/groups/public/</url>
</repository>
<!-- <repository>
<id>pentaho-third-party</id>
<url>http://nexus.pentaho.org/content/repositories/proxied-3rd-party-releases/</url>
</repository>
<repository>
<id>pentaho-public-release</id>
<url>http://nexus.pentaho.org/content/repositories/pentaho-public-release-repos/</url>
</repository> -->
</repositories>
<dependencies>
<dependency>
<groupId>org.olap4j</groupId>
<artifactId>olap4j</artifactId>
<version>1.2.0</version>
<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>
<version>3.9.0.2</version>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.17</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.saiku</groupId>
<artifactId>saiku-query</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>参考关于0.1版本的构建过程:http://blog.csdn.net/gsying1474/article/details/51361987
修改pom文件
其中,红色的为原有被注释的
绿色的为添加的
蓝色地方比较重要,在saiku-query的0.4版本中,居然依赖了0.1的版本,但是源码中却没有相关0.1的分支或者标签,所以此处可以注释,打包也成功了,但是是否存在不稳定或者不全的现象,尚未可知
修改后如下:
<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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.saiku</groupId> <artifactId>saiku-query</artifactId> <version>0.4-SNAPSHOT</version> <packaging>jar</packaging> <name>query</name> <url>http://maven.apache.org</url> <!-- <distributionManagement> <repository> <id>deployment</id> <name>Internal Releases</name> </repository> <snapshotRepository> <id>deployment</id> <name>Internal Snapshots</name> </snapshotRepository> </distributionManagement> --> <distributionManagement> <snapshotRepository> <id>snapshots-host</id> </snapshotRepository> </distributionManagement> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.6</maven.compiler.source> <maven.compiler.target>1.6</maven.compiler.target> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </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-surefire-plugin</artifactId> <version>2.12.4</version> <configuration> <argLine> -Xmx512m</argLine> </configuration> </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="lib/"> <include name="mondrian-data*.jar" /> </fileset> </unzip> <echo message="Unzipped!" /> </tasks> </configuration> </execution> </executions> </plugin> </plugins> </build> <repositories> <repository> <id>mine</id> <name>public Releases</name> </repository> <!-- <repository> <id>pentaho-third-party</id> </repository> <repository> <id>pentaho-public-release</id> </repository> --> </repositories> <dependencies> <dependency> <groupId>org.olap4j</groupId> <artifactId>olap4j</artifactId> <version>1.2.0</version> <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> <version>3.9.0.2</version> <exclusions> <exclusion> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.4</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.17</version> <scope>test</scope> </dependency> <dependency> <groupId>hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>1.8.0.10</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.saiku</groupId> <artifactId>saiku-query</artifactId> <version>0.1-SNAPSHOT</version> </dependency> </dependencies> </project> |
by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(==防止爬虫==):http://blog.liuyingguang.cn
lightingfire