2.maven 手动安装 jar包
1.背景
有的时候,maven仓库无法下载,可以手动安装。本文以pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar为例。
2.预先准备
下载文件到本地指定位置。
2.1.安装pom
mvn install:install-file \-Dfile=/home/wind/tmp/pentaho-aggdesigner-5.1.5-jhyde.pom \-DgroupId=org.pentaho \-DartifactId=pentaho-aggdesigner \-Dversion=5.1.5-jhyde \-Dpackaging=pom
2.2 安装jar
mvn install:install-file \-DgroupId=org.pentaho \-DartifactId=pentaho-aggdesigner-algorithm \-Dversion=5.1.5-jhyde \-Dpackaging=jar \-Dfile=/home/wind/tmp/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar