第一步 下载greenplum.jar
下载地址 http://download.youkuaiyun.com/download/enterings/10039723?web=web
第二步 在maven中手动添加本地jar包
在 cmd命令行中 运行
mvn install:install-file -Dfile=D:\maven\greenplum.jar -DgroupId=com.huicai -DartifactId=greenplum -Dversion=1.0 -Dpackaging=jar
上面的命令解释:
-Dfile:指明你下载的jar包的位置(就是本地存放jar的路径+jar包名);
-DgroupId, -DartifactId, -Dversion:三个参数,就是指明了存放maven仓库中的位置;
-Dpackaging :猜测就是指明文件类型;
第三步 pom.xml添加配置并重新 install maven
该jar包的引用即可:
<!-- greenplum -->
<dependency>
<groupId>com.huicai</groupId>
<artifactId>greenplum</artifactId>
<version>1.0</version>
</dependency>
第四步 配置 jdbc.properties
#greenplum
jdbc.greenPlum.driver=com.pivotal.jdbc.GreenplumDriver
jdbc.greenPlum.url=jdbc:pivotal:greenplum://10.10.10.10:5432;DatabaseName=mfg
jdbc.greenPlum.username=gpadmin
jdbc.greenP