pentaho-gis-plugins-1.4.0编译的问题
问题
1.编译pentaho-gis-plugins-1.4.0时报错Missing artifact com.oracle:ojdbc6:jar:11.2.0.1.0 解决办法。
(1)可能中央仓库中没有这个版本,需要改下版本号(2)换个仓库地址镜像(我使用了https://repo1.maven.org/maven2/)
<mirror>
<id>com.mvnrepository</id>
<name>mvnrepository</name>
<url>https://repo1.maven.org/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
(3)不嫌麻烦的话去https://mvnrepository.com/网站找你需要的对应版本的包下载下来。通过参考如下命令mvn命令将jar包加入到maven本地仓库
mvn install:install-file -Dfile=D:\ojdbc6-11.2.0.1.0.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar
参考:将下载到本地的JAR包手动添加到Maven仓库
(3)不嫌麻烦的话去https://mvnrepository.com/网站找你需要的对应版本的包下载下来。通过参考如下命令mvn命令将jar包加入到maven本地仓库
mvn install:install-file -Dfile=D:\ojdbc6-11.2.0.1.0.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar
参考:
将下载到本地的JAR包手动添加到Maven仓库
编译pentaho-gis-plugins
1.编译报错dxf模块, Malformed \uxxxx encoding.问题,elipse打开pom.xml报如下错误
An internal error occurred during: "reload maven project". java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
参考:Malformed \uxxxx encoding while mvn install
编译包每次下载的问题,不下载又下载不到对应的odbc.jar包
发现的问题,有些包需要pentaho-kettle-9.2.0.3-R\plugins\pentaho-gis-plugins-1.4.0\pentaho-gis-plugins中的pom.xml中的
<repositories>
<!-- Local repository -->
<repository>
<id>local-maven-repo</id>
<name>Local Maven Repo</name>
<url>file://${project.basedir}/../local-maven-repo</url>
</repository>
<!--repository>
<id>52north.org-releases</id>
<name>52north.org-releases</name>
<url>https://52north.org/maven/repo/releases/</url>
</repository-->
<repository>
<id>datanucleus</id>
<name>datanucleus</name>
<url>http://www.datanucleus.org/downloads/maven2/</url>
</repository>
<repository>
<id>jboss.org</id>
<name>jboss.org</name>
<url>https://repository.jboss.org</url>
</repository>
<repository>
<id>pentaho-releases</id>
<url>https://nexus.pentaho.org/content/groups/omni</url>
</repository>
<repository>
<id>lds-main</id>
<name>Main Approved LDS Repo</name>
<url>https://code.lds.org/nexus/content/groups/main-repo/artifactory/repo/</url>
</repository>
<repository>
<id>maven-us.nuxeo.org</id>
<name>maven-us.nuxeo.org</name>
<url>https://maven-us.nuxeo.org/nexus/content/groups/public/</url>
</repository>
<repository>
<id>axiomalaska</id>
<name>axiomalaska</name>
<url>http://nexus.axiomalaska.com/nexus/content/groups/public/</url>
</repository>
</repositories>
下载,有些包下载不到odbc.jar包,发现如果每个pom.xml有
下载,有些包下载不到odbc.jar包,发现如果每个pom.xml有
编译这个插件明明插件已经下载了,但是会重新下载所有的插件,然后可能因为这个库在中央仓库可能没有或远程库中也可能没有。
因为pentaho-gis-plugins-1.4.0中的pom.xml文件中有很多
因为内网环境使用私服。我们先在外网环境中编译好,然后把仓库拷贝到内网环境maven 仓库配置 pom中repositories属性本地maven仓库有jar包,但项目却找不到的解决办法
参考
尚硅谷Maven学习笔记
Maven报手动下载地址
1.https://mvnrepository.com/
Maven中央仓库地址
https://repo1.maven.org/maven2/
仓库配置
1.Maven 中央仓库地址大全
浙公网安备 33010602011771号